Struct pix_engine::audio::AudioSpecDesired
source · pub struct AudioSpecDesired {
pub freq: Option<i32>,
pub channels: Option<u8>,
pub samples: Option<u16>,
}
Expand description
Desired audio device specification.
Fields§
§freq: Option<i32>
DSP frequency (samples per second) in Hz. Set to None for the device’s fallback frequency.
channels: Option<u8>
Number of separate sound channels. Set to None for the device’s fallback number of channels.
samples: Option<u16>
The audio buffer size in samples (power of 2). Set to None for the device’s fallback sample size.
Trait Implementations§
source§impl Clone for AudioSpecDesired
impl Clone for AudioSpecDesired
source§fn clone(&self) -> AudioSpecDesired
fn clone(&self) -> AudioSpecDesired
Returns a copy 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 AudioSpecDesired
impl Debug for AudioSpecDesired
source§impl Default for AudioSpecDesired
impl Default for AudioSpecDesired
source§fn default() -> AudioSpecDesired
fn default() -> AudioSpecDesired
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AudioSpecDesired
impl<'de> Deserialize<'de> for AudioSpecDesired
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 Hash for AudioSpecDesired
impl Hash for AudioSpecDesired
source§impl PartialEq for AudioSpecDesired
impl PartialEq for AudioSpecDesired
source§fn eq(&self, other: &AudioSpecDesired) -> bool
fn eq(&self, other: &AudioSpecDesired) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AudioSpecDesired
impl Serialize for AudioSpecDesired
impl Copy for AudioSpecDesired
impl Eq for AudioSpecDesired
impl StructuralEq for AudioSpecDesired
impl StructuralPartialEq for AudioSpecDesired
Auto Trait Implementations§
impl RefUnwindSafe for AudioSpecDesired
impl Send for AudioSpecDesired
impl Sync for AudioSpecDesired
impl Unpin for AudioSpecDesired
impl UnwindSafe for AudioSpecDesired
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