pub struct EncoderInput {
pub format: AudioFormat,
pub sample_rate: u32,
pub channels: u32,
}Expand description
PCM layout the caller hands to Encoder::encode_f32 /
AudioProducer::write.
Fields§
§format: AudioFormat§sample_rate: u32§channels: u32Trait Implementations§
Source§impl Clone for EncoderInput
impl Clone for EncoderInput
Source§fn clone(&self) -> EncoderInput
fn clone(&self) -> EncoderInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncoderInput
impl Debug for EncoderInput
Auto Trait Implementations§
impl Freeze for EncoderInput
impl RefUnwindSafe for EncoderInput
impl Send for EncoderInput
impl Sync for EncoderInput
impl Unpin for EncoderInput
impl UnsafeUnpin for EncoderInput
impl UnwindSafe for EncoderInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more