#[repr(C)]pub struct FIFOSampleBuffer {
pub _base: FIFOSamplePipe,
pub buffer: *mut SAMPLETYPE,
pub bufferUnaligned: *mut SAMPLETYPE,
pub sizeInBytes: uint,
pub samplesInBuffer: uint,
pub channels: uint,
pub bufferPos: uint,
}Expand description
Sample buffer working in FIFO (first-in-first-out) principle. The class takes care of storage size adjustment and data moving during input/output operations.
Notice that in case of stereo audio, one sample is considered to consist of both channel data.
Fields§
§_base: FIFOSamplePipe§buffer: *mut SAMPLETYPESample buffer.
bufferUnaligned: *mut SAMPLETYPE§sizeInBytes: uintSample buffer size in bytes
samplesInBuffer: uintHow many samples are currently in buffer.
channels: uintChannels, 1=mono, 2=stereo.
bufferPos: uintCurrent position pointer to the buffer. This pointer is increased when samples are removed from the pipe so that it’s necessary to actually rewind buffer (move data) only new data when is put to the pipe.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for FIFOSampleBuffer
impl !Sync for FIFOSampleBuffer
impl Freeze for FIFOSampleBuffer
impl RefUnwindSafe for FIFOSampleBuffer
impl Unpin for FIFOSampleBuffer
impl UnsafeUnpin for FIFOSampleBuffer
impl UnwindSafe for FIFOSampleBuffer
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