pub enum Encoding {
Pcm,
PcmU8,
PcmFloat32,
DoP,
DsdNative {
bit_rate: u32,
},
}Expand description
How the audio is carried.
Variants§
Pcm
Linear PCM.
PcmU8
Type I unsigned 8-bit PCM; silence is 0x80, one byte per sample.
PcmFloat32
Type I IEEE-754 binary32 PCM; exact little-endian bits, including NaN payloads.
DoP
DSD over PCM: 16 DSD bits per channel per PCM frame, with the 0x05/0xFA
marker byte owned by the library. sample_rate of the request is the
carrier rate (DSD bit rate / 16: 176400 for DSD64).
DsdNative
Native DSD alternate setting; bit_rate is the 1-bit rate per channel
(2822400 for DSD64).
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Forget for Encoding
impl Freeze for Encoding
impl Move for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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