pub struct WaveFormat {
pub tag: u16,
pub channels: u16,
pub sample_rate: u32,
pub avg_bytes_per_sec: u32,
pub block_align: u16,
pub bits_per_sample: u16,
}Expand description
WAVEFORMATEX header carried by every sound. All shipped audio is xWMA (tag == 0x161).
Fields§
§tag: u16The format tag: 0x161, WMA v2, for every sound of the game.
channels: u16The number of channels.
sample_rate: u32The sample rate.
avg_bytes_per_sec: u32The average data rate, in bytes per second.
block_align: u16The packet size in bytes.
bits_per_sample: u16The bits per sample.
Trait Implementations§
Source§impl Clone for WaveFormat
impl Clone for WaveFormat
Source§fn clone(&self) -> WaveFormat
fn clone(&self) -> WaveFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WaveFormat
Auto Trait Implementations§
impl Freeze for WaveFormat
impl RefUnwindSafe for WaveFormat
impl Send for WaveFormat
impl Sync for WaveFormat
impl Unpin for WaveFormat
impl UnsafeUnpin for WaveFormat
impl UnwindSafe for WaveFormat
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