[][src]Struct miniaudio::FramesMut

pub struct FramesMut<'s> { /* fields omitted */ }

Implementations

impl<'s> FramesMut<'s>[src]

pub fn wrap<S: Sample>(
    data: &'s mut [S],
    format: Format,
    channels: u32
) -> FramesMut<'s>
[src]

pub fn convert(&self, dest: &mut FramesMut, dither_mode: DitherMode)[src]

Convert this frames samples into another format, placing the new converted frames into dest.

pub fn as_samples<S: Sample>(&self) -> &[S][src]

pub fn as_samples_mut<S: Sample>(&mut self) -> &mut [S][src]

pub fn frames<'t, S: 'static + Sample>(
    &'t self
) -> impl 't + Iterator<Item = &[S]>
[src]

pub fn frames_mut<'t, S: 'static + Sample>(
    &'t mut self
) -> impl 't + Iterator<Item = &mut [S]>
[src]

pub fn as_bytes(&self) -> &[u8][src]

pub fn as_bytes_mut(&mut self) -> &mut [u8][src]

pub fn byte_count(&self) -> usize[src]

pub fn frame_count(&self) -> usize[src]

Returns the number of frames contained.

pub fn sample_count(&self) -> usize[src]

Returns the number of samples contained.

pub fn format(&self) -> Format[src]

pub fn channels(&self) -> u32[src]

Auto Trait Implementations

impl<'s> RefUnwindSafe for FramesMut<'s>

impl<'s> Send for FramesMut<'s>

impl<'s> Sync for FramesMut<'s>

impl<'s> Unpin for FramesMut<'s>

impl<'s> !UnwindSafe for FramesMut<'s>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.