Enum ctru::services::ndsp::AudioFormat
source · #[repr(u8)]pub enum AudioFormat {
PCM8Mono = 1,
PCM16Mono = 5,
PCM8Stereo = 2,
PCM16Stereo = 6,
}
Expand description
PCM formats supported by the audio engine.
Variants§
PCM8Mono = 1
PCM 8bit single-channel.
PCM16Mono = 5
PCM 16bit single-channel.
PCM8Stereo = 2
PCM 8bit interleaved dual-channel.
PCM16Stereo = 6
PCM 16bit interleaved dual-channel.
Implementations§
Trait Implementations§
source§impl Clone for AudioFormat
impl Clone for AudioFormat
source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AudioFormat
impl Debug for AudioFormat
source§impl From<AudioFormat> for u16
impl From<AudioFormat> for u16
source§fn from(v: AudioFormat) -> Self
fn from(v: AudioFormat) -> Self
Converts to this type from the input type.
source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
impl Copy for AudioFormat
impl Eq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnwindSafe for AudioFormat
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more