[−][src]Struct miniaudio::Frames
Methods
impl<'s> Frames<'s>
[src]
pub fn wrap(data: &'s [u8], format: Format, channels: u32) -> Frames<'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_bytes(&self) -> &[u8]
[src]
pub fn as_samples<'t, S: Sample>(&'t self) -> &'t [S]
[src]
pub fn frames<'t, S: 'static + Sample>(
&'t self
) -> impl 't + Iterator<Item = &[S]>
[src]
&'t self
) -> impl 't + Iterator<Item = &[S]>
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]
T: 'static + ?Sized,
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> 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>,