#[repr(C)]pub enum SoundFormat {
Show 18 variants
None = 0,
PCM8 = 1,
PCM16 = 2,
PCM24 = 3,
PCM32 = 4,
PCMFloat = 5,
GCADPCM = 6,
IMAADPCM = 7,
VAG = 8,
HEVAG = 9,
XMA = 10,
MPEG = 11,
CELT = 12,
AT9 = 13,
XWMA = 14,
VORBIS = 15,
Max = 16,
ForceInt = 65_536,
}
Expand description
These definitions describe the native format of the hardware or software buffer that will be used.
Variants§
None = 0
Uninitialized / unknown.
PCM8 = 1
8bit integer PCM data.
PCM16 = 2
16bit integer PCM data.
PCM24 = 3
24bit integer PCM data.
PCM32 = 4
32bit integer PCM data.
PCMFloat = 5
32bit floating point PCM data.
GCADPCM = 6
Compressed Nintendo 3DS/Wii DSP data.
IMAADPCM = 7
Compressed IMA ADPCM data.
VAG = 8
Compressed PlayStation Portable ADPCM data.
HEVAG = 9
Compressed PSVita ADPCM data.
XMA = 10
Compressed Xbox360 XMA data.
MPEG = 11
Compressed MPEG layer 2 or 3 data.
CELT = 12
Compressed CELT data.
AT9 = 13
Compressed PSVita ATRAC9 data.
XWMA = 14
Compressed Xbox360 xWMA data.
VORBIS = 15
Compressed Vorbis data.
Max = 16
Maximum number of sound formats supported.
ForceInt = 65_536
Makes sure this enum is signed 32bit.
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 PartialEq for SoundFormat
impl PartialEq for SoundFormat
Source§impl PartialOrd for SoundFormat
impl PartialOrd for SoundFormat
impl Copy 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