Struct pix_engine::audio::AudioSpec
source · pub struct AudioSpec {
pub freq: i32,
pub format: AudioFormat,
pub channels: u8,
pub samples: u16,
pub size: u32,
}
Expand description
Audio device specification.
Fields§
§freq: i32
DSP frequency (samples per second) in Hz.
format: AudioFormat
AudioFormat
for the generic sample type.
channels: u8
Number of separate sound channels.
samples: u16
The audio buffer size in samples (power of 2).
size: u32
The audio buffer size in bytes.
Trait Implementations§
source§impl<'de> Deserialize<'de> for AudioSpec
impl<'de> Deserialize<'de> for AudioSpec
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for AudioSpec
impl PartialEq for AudioSpec
impl Copy for AudioSpec
impl Eq for AudioSpec
impl StructuralEq for AudioSpec
impl StructuralPartialEq for AudioSpec
Auto Trait Implementations§
impl RefUnwindSafe for AudioSpec
impl Send for AudioSpec
impl Sync for AudioSpec
impl Unpin for AudioSpec
impl UnwindSafe for AudioSpec
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more