pub struct Sound {
pub channels: u16,
pub sample_rate: u32,
}Expand description
A sound file’s header: what the engine knows of a sound before the
platform plays it. Every one is mono or stereo, at
SAMPLE_RATE.
Fields§
§channels: u161 or 2.
sample_rate: u32Samples a second.
Trait Implementations§
impl Copy for Sound
Source§impl<'de> Deserialize<'de> for Sound
impl<'de> Deserialize<'de> for Sound
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
impl Eq for Sound
impl StructuralPartialEq for Sound
Auto Trait Implementations§
impl Freeze for Sound
impl RefUnwindSafe for Sound
impl Send for Sound
impl Sync for Sound
impl Unpin for Sound
impl UnsafeUnpin for Sound
impl UnwindSafe for Sound
Blanket Implementations§
impl<K> Bakeable for K
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