pub struct Sequential<T: Sample> { /* private fields */ }Expand description
Use de-interleaved output packets for a PacketResampler.
Trait Implementations§
Source§impl<T: Sample> PacketResamplerBuffer<T> for Sequential<T>
impl<T: Sample> PacketResamplerBuffer<T> for Sequential<T>
type Output = SequentialOwned<T>
fn new(channels: usize, input_frames: usize, output_frames: usize) -> Self
fn output(&self, _frames: usize) -> &Self::Output
fn resample( &mut self, indexing: Option<&Indexing>, resampler: &mut Box<dyn Resampler<T>>, ) -> ResampleResult<(usize, usize)>
Source§fn copy_from_other_to_input_channel(
&mut self,
other: &dyn Adapter<'_, T>,
other_channel: usize,
self_channel: usize,
other_skip: usize,
self_skip: usize,
take: usize,
) -> Option<usize>
fn copy_from_other_to_input_channel( &mut self, other: &dyn Adapter<'_, T>, other_channel: usize, self_channel: usize, other_skip: usize, self_skip: usize, take: usize, ) -> Option<usize>
Copy values from a channel of another Adapter.
The
self_skip and other_skip arguments are the offsets
in frames for where copying starts in the two channels.
The method copies take values. Read moreSource§fn input_fill_frames_with(
&mut self,
start: usize,
count: usize,
value: &T,
) -> Option<usize>
fn input_fill_frames_with( &mut self, start: usize, count: usize, value: &T, ) -> Option<usize>
Write the provided value to every sample in a range of frames.
Can be used to clear a range of frames by writing zeroes,
or to initialize each sample to a certain value.
Returns
None if called with a too large range.Source§fn input_fill_with(&mut self, value: &T)
fn input_fill_with(&mut self, value: &T)
Write the provided value to every sample in the entire buffer.
Can be used to clear a buffer by writing zeroes,
or to initialize each sample to a certain value.
Source§fn output_copy_frames_within(&mut self, src: usize, dest: usize, count: usize)
fn output_copy_frames_within(&mut self, src: usize, dest: usize, count: usize)
Copy frames within the buffer.
Copying is performed for all channels.
Copies
count frames, from the range src..src+count,
to the range dest..dest+count.
The two regions are allowed to overlap.
The default implementation copies by calling the read and write methods,
while type specific implementations can use more efficient methods.Auto Trait Implementations§
impl<T> Freeze for Sequential<T>
impl<T> RefUnwindSafe for Sequential<T>where
T: RefUnwindSafe,
impl<T> Send for Sequential<T>
impl<T> Sync for Sequential<T>
impl<T> Unpin for Sequential<T>where
T: Unpin,
impl<T> UnsafeUnpin for Sequential<T>
impl<T> UnwindSafe for Sequential<T>where
T: UnwindSafe,
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