#[repr(C)]pub struct Wave {
pub frameCount: c_uint,
pub sampleRate: c_uint,
pub sampleSize: c_uint,
pub channels: c_uint,
pub data: *mut c_void,
}
Expand description
Wave, audio wave data
Fields§
§frameCount: c_uint
Total number of frames (considering channels)
sampleRate: c_uint
Frequency (samples per second)
sampleSize: c_uint
Bit depth (bits per sample): 8, 16, 32 (24 not supported)
channels: c_uint
Number of channels (1-mono, 2-stereo, …)
data: *mut c_void
Buffer data pointer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Wave
impl RefUnwindSafe for Wave
impl !Send for Wave
impl !Sync for Wave
impl Unpin for Wave
impl UnwindSafe for Wave
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