[−][src]Struct nannou_audio::buffer::Buffer
An interleaved PCM buffer yielded by either an input or output stream processing function.
Methods
impl<S> Buffer<S>
[src]
pub const DEFAULT_LEN_FRAMES: usize
[src]
The default number of frames per buffer.
This can be overridden by specifying your own buffer size using the
stream::output::Builder::buffer_size
builder method.
pub fn sample_rate(&self) -> u32
[src]
The sampling rate of the audio frames stored within the buffer.
pub fn channels(&self) -> usize
[src]
The number of channels of audio per-frame within the buffer.
pub fn len_frames(&self) -> usize
[src]
The length of the buffer as a number of audio frames (i.e. len / channels).
ⓘImportant traits for Frames<'a, S>pub fn frames(&self) -> Frames<S>
[src]
ⓘImportant traits for Frames<'a, S>
Produce an iterator yielding each frame from the buffer in order.
ⓘImportant traits for FramesMut<'a, S>pub fn frames_mut(&mut self) -> FramesMut<S>
[src]
ⓘImportant traits for FramesMut<'a, S>
Trait Implementations
impl<S: Debug> Debug for Buffer<S>
[src]
impl<S> Deref for Buffer<S>
[src]
impl<S> DerefMut for Buffer<S>
[src]
Auto Trait Implementations
impl<S> Sync for Buffer<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Buffer<S>
impl<S> Send for Buffer<S> where
S: Send,
S: Send,
impl<S> UnwindSafe for Buffer<S> where
S: UnwindSafe,
S: UnwindSafe,
impl<S> RefUnwindSafe for Buffer<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S> FromSample<S> for S
[src]
fn from_sample_(s: S) -> S
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(self) -> U
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,