[][src]Struct miniaudio::Frames

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

Methods

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

pub fn wrap(data: &'s [u8], format: Format, channels: u32) -> Frames<'s>[src]

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

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

pub fn data(&self) -> &[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 Frames<'s>

impl<'s> Send for Frames<'s>

impl<'s> Sync for Frames<'s>

impl<'s> Unpin for Frames<'s>

impl<'s> UnwindSafe for Frames<'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.