[−][src]Struct miniaudio::FramesMut
Implementations
impl<'s> FramesMut<'s>
[src]
pub fn wrap<S: Sample>(
data: &'s mut [S],
format: Format,
channels: u32
) -> FramesMut<'s>
[src]
data: &'s mut [S],
format: Format,
channels: u32
) -> FramesMut<'s>
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]
&'t self
) -> impl 't + Iterator<Item = &[S]>
pub fn frames_mut<'t, S: 'static + Sample>(
&'t mut self
) -> impl 't + Iterator<Item = &mut [S]>
[src]
&'t mut self
) -> impl 't + Iterator<Item = &mut [S]>
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]
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>,