#[repr(C)]pub struct AudioStream {
pub buffer: uintptr_t,
pub processor: uintptr_t,
pub sample_rate: c_uint,
pub sample_size: c_uint,
pub channels: c_uint,
}Expand description
AudioStream, custom audio stream
Fields§
§buffer: uintptr_tPointer to internal data used by the audio system
processor: uintptr_tPointer to internal data processor, useful for audio effects
sample_rate: c_uintFrequency (samples per second)
sample_size: c_uintBit detph (bits per sample): 8, 16, 32 (24 not supported)
channels: c_uintNumber of channels (1-mono, 2-stereo, …)
Trait Implementations§
Source§impl Clone for AudioStream
impl Clone for AudioStream
Source§fn clone(&self) -> AudioStream
fn clone(&self) -> AudioStream
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AudioStream
impl RefUnwindSafe for AudioStream
impl Send for AudioStream
impl Sync for AudioStream
impl Unpin for AudioStream
impl UnwindSafe for AudioStream
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