pub enum SoundFormat {
Show 13 variants
LinearPcmPlatformEndian = 0,
Adpcm = 1,
Mp3 = 2,
LinearPcmLittleEndian = 3,
Nellymoser16khzMono = 4,
Nellymoser8KhzMono = 5,
Nellymoser = 6,
G711AlawLogarithmicPcm = 7,
G711MuLawLogarithmicPcm = 8,
Aac = 10,
Speex = 11,
Mp3_8khz = 14,
DeviceSpecificSound = 15,
}Expand description
Audio format(codec) identifier.
Variants§
LinearPcmPlatformEndian = 0
Linear PCM,platform endian
Adpcm = 1
ADPCM
Mp3 = 2
MP3
LinearPcmLittleEndian = 3
Linear PCM, little endian
Nellymoser16khzMono = 4
Nellymoser 16-kHz mono
Nellymoser8KhzMono = 5
Nellymoser 8-kHz mono
Nellymoser = 6
Nellymoser
G711AlawLogarithmicPcm = 7
G.711 A-law logarithmic PCM
G711MuLawLogarithmicPcm = 8
G.711 mu-law logarithmic PCM
Aac = 10
AAC
Speex = 11
Speex
Mp3_8khz = 14
MP3 8-kHz
DeviceSpecificSound = 15
Device-specific sound
Trait Implementations§
Source§impl Clone for SoundFormat
impl Clone for SoundFormat
Source§fn clone(&self) -> SoundFormat
fn clone(&self) -> SoundFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SoundFormat
impl Debug for SoundFormat
Source§impl Hash for SoundFormat
impl Hash for SoundFormat
Source§impl PartialEq for SoundFormat
impl PartialEq for SoundFormat
impl Copy for SoundFormat
impl Eq for SoundFormat
impl StructuralPartialEq for SoundFormat
Auto Trait Implementations§
impl Freeze for SoundFormat
impl RefUnwindSafe for SoundFormat
impl Send for SoundFormat
impl Sync for SoundFormat
impl Unpin for SoundFormat
impl UnwindSafe for SoundFormat
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