pub enum Format {
Unspecified = 0,
I16 = 1,
F32 = 2,
}Expand description
A sample format.
Variants§
Unspecified = 0
I16 = 1
This format uses the i16 data type. The maximum range of the data is -32768 to 32767.
F32 = 2
This format uses the float data type. The nominal range of the data is [-1.0f32, 1.0f32). Values outside that range may be clipped.
See also ‘floatData’ at https://developer.android.com/reference/android/media/AudioTrack#write(float[],%20int,%20int,%20int)
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more