pub struct DualPcm<'a, T> {
pub left: &'a [T],
pub right: &'a [T],
}Expand description
PCM data represented by two channels.
Number of samples must be equal between left and right channels.
If you want to feed encoder single PCM data, then use MonoPcm In case length of channels is not equal, it will always feed encoder minimum of both length. In debug mode it will panic in this case also to warn you of error.
Fields§
§left: &'a [T]left channel PCM data
right: &'a [T]right channel PCM data
Trait Implementations§
Source§impl EncoderInput for DualPcm<'_, f32>
impl EncoderInput for DualPcm<'_, f32>
Source§impl EncoderInput for DualPcm<'_, f64>
impl EncoderInput for DualPcm<'_, f64>
Source§impl EncoderInput for DualPcm<'_, i16>
impl EncoderInput for DualPcm<'_, i16>
Source§impl EncoderInput for DualPcm<'_, c_int>
impl EncoderInput for DualPcm<'_, c_int>
Auto Trait Implementations§
impl<'a, T> Freeze for DualPcm<'a, T>
impl<'a, T> RefUnwindSafe for DualPcm<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DualPcm<'a, T>where
T: Sync,
impl<'a, T> Sync for DualPcm<'a, T>where
T: Sync,
impl<'a, T> Unpin for DualPcm<'a, T>
impl<'a, T> UnwindSafe for DualPcm<'a, T>where
T: RefUnwindSafe,
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