pub struct SoundBuffer {
pub looping: bool,
pub streamed: bool,
pub source: String,
pub stream_entry: String,
pub length_seconds: f32,
pub format: WaveFormat,
pub format_bytes: Vec<u8>,
pub packet_table: Vec<u8>,
pub data: Vec<u8>,
}Expand description
A sound: its format, its loop flag, its length, and its data in xWMA (or the entry of its stream).
Fields§
§looping: boolWhether the sound loops.
streamed: boolStreamed sounds keep their packets in a raw .str package entry named by stream_entry.
source: StringOriginal source file, e.g. Audio\Animal\Chicken0.wav.
stream_entry: StringThe package entry of a streamed sound’s packets.
length_seconds: f32The length in seconds.
format: WaveFormatThe format header.
format_bytes: Vec<u8>Raw WAVEFORMATEX(TENSIBLE) bytes (40).
packet_table: Vec<u8>xWMA dpds table: cumulative decoded bytes per packet, u32 LE.
data: Vec<u8>xWMA packets (empty when streamed).
Implementations§
Trait Implementations§
Source§impl Clone for SoundBuffer
impl Clone for SoundBuffer
Source§fn clone(&self) -> SoundBuffer
fn clone(&self) -> SoundBuffer
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 moreAuto Trait Implementations§
impl Freeze for SoundBuffer
impl RefUnwindSafe for SoundBuffer
impl Send for SoundBuffer
impl Sync for SoundBuffer
impl Unpin for SoundBuffer
impl UnsafeUnpin for SoundBuffer
impl UnwindSafe for SoundBuffer
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