SoundMode

Enum SoundMode 

Source
#[repr(u32)]
pub enum SoundMode {
Show 28 variants Mono8bit5000 = 0, Mono8bit8000 = 1, Mono8bit11025 = 2, Mono8bit16000 = 3, Mono8bit22050 = 4, Mono8bit32000 = 5, Mono8bit44100 = 6, Mono16Bit5000 = 7, Mono16Bit8000 = 8, Mono16Bit11025 = 9, Mono16Bit16000 = 10, Mono16Bit22050 = 11, Mono16Bit32000 = 12, Mono16Bit44100 = 13, Stereo8Bit5000 = 14, Stereo8Bit8000 = 15, Stereo8Bit11025 = 16, Stereo8Bit16000 = 17, Stereo8Bit22050 = 18, Stereo8Bit32000 = 19, Stereo8Bit44100 = 20, Stereo16Bit5000 = 21, Stereo16Bit8000 = 22, Stereo16Bit11025 = 23, Stereo16Bit16000 = 24, Stereo16Bit22050 = 25, Stereo16Bit32000 = 26, Stereo16Bit44100 = 27,
}
Expand description

A sound mode.

This type maps each variant to the soundmode_t enum in the original framework, with idiomatic naming.

Variants§

§

Mono8bit5000 = 0

8-bit mono, 5000 Hz

§

Mono8bit8000 = 1

8-bit mono, 8000 Hz

§

Mono8bit11025 = 2

8-bit mono, 11025 Hz

§

Mono8bit16000 = 3

8-bit mono, 16000 Hz

§

Mono8bit22050 = 4

8-bit mono, 22050 Hz

§

Mono8bit32000 = 5

8-bit mono, 32000 Hz

§

Mono8bit44100 = 6

8-bit mono, 44100 Hz

§

Mono16Bit5000 = 7

16-bit mono, 5000 Hz

§

Mono16Bit8000 = 8

16-bit mono, 8000 Hz

§

Mono16Bit11025 = 9

16-bit mono, 11025 Hz

§

Mono16Bit16000 = 10

16-bit mono, 16000 Hz

§

Mono16Bit22050 = 11

16-bit mono, 22050 Hz

§

Mono16Bit32000 = 12

16-bit mono, 32000 Hz

§

Mono16Bit44100 = 13

16-bit mono, 44100 Hz

§

Stereo8Bit5000 = 14

8-bit stereo, 5000 Hz

§

Stereo8Bit8000 = 15

8-bit stereo, 8000 Hz

§

Stereo8Bit11025 = 16

8-bit stereo, 11025 Hz

§

Stereo8Bit16000 = 17

8-bit stereo, 16000 Hz

§

Stereo8Bit22050 = 18

8-bit stereo, 22050 Hz

§

Stereo8Bit32000 = 19

8-bit stereo, 32000 Hz

§

Stereo8Bit44100 = 20

8-bit stereo, 44100 Hz

§

Stereo16Bit5000 = 21

16-bit stereo, 5000 Hz

§

Stereo16Bit8000 = 22

16-bit stereo, 8000 Hz

§

Stereo16Bit11025 = 23

16-bit stereo, 11025 Hz

§

Stereo16Bit16000 = 24

16-bit stereo, 16000 Hz

§

Stereo16Bit22050 = 25

16-bit stereo, 22050 Hz

§

Stereo16Bit32000 = 26

16-bit stereo, 32000 Hz

§

Stereo16Bit44100 = 27

16-bit stereo, 44100 Hz

Trait Implementations§

Source§

impl Clone for SoundMode

Source§

fn clone(&self) -> SoundMode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SoundMode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for SoundMode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for SoundMode

Source§

fn eq(&self, other: &SoundMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for SoundMode

Source§

impl Eq for SoundMode

Source§

impl StructuralPartialEq for SoundMode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.