pub struct AudioStream<T: FloatType + Float> { /* private fields */ }Expand description
Shared pointer to an audio stream. NOTE: This is a virtual in-runtime object, not a system-level stream.
Trait Implementations§
Source§impl<T: FloatType + Float + 'static> AudioStreamImpl<T> for AudioStream<T>
impl<T: FloatType + Float + 'static> AudioStreamImpl<T> for AudioStream<T>
Source§fn use_normalization(&mut self, norm: bool)
fn use_normalization(&mut self, norm: bool)
Enables or disables normalization.
Source§fn is_using_normalization(&self) -> bool
fn is_using_normalization(&self) -> bool
Checks if normalization is enabled.
Source§fn get_timestamp(&self) -> f64
fn get_timestamp(&self) -> f64
Gets the current timestamp in seconds.
Source§fn get_resample_quality(&self) -> ResamplerQuality
fn get_resample_quality(&self) -> ResamplerQuality
Gets the resampler quality.
Source§fn set_resample_quality(&mut self, quality: ResamplerQuality)
fn set_resample_quality(&mut self, quality: ResamplerQuality)
Sets the resampler quality.
Source§fn get_volume(&self) -> f32
fn get_volume(&self) -> f32
Gets the volume level.
Source§fn set_volume(&self, volume: f32)
fn set_volume(&self, volume: f32)
Sets the volume level (clamped between 0.0 and 1.0).
Source§fn use_filter(&mut self, filter: bool)
fn use_filter(&mut self, filter: bool)
Enables or disables the filter.
Source§fn is_using_filter(&self) -> bool
fn is_using_filter(&self) -> bool
Checks if the filter is enabled.
Source§fn get_low_cut(&self) -> f32
fn get_low_cut(&self) -> f32
Gets the low-cut frequency.
Source§fn set_low_cut(&mut self, low_cut: f32)
fn set_low_cut(&mut self, low_cut: f32)
Sets the low-cut frequency (clamped between 10.0 and 22050.0 Hz).
Source§fn get_high_cut(&self) -> f32
fn get_high_cut(&self) -> f32
Gets the high-cut frequency.
Source§fn set_high_cut(&mut self, high_cut: f32)
fn set_high_cut(&mut self, high_cut: f32)
Sets the high-cut frequency (clamped between 10.0 and 22050.0 Hz).
Source§fn get_sample_rate(&self) -> f32
fn get_sample_rate(&self) -> f32
Gets the sample rate.
Source§fn set_sample_rate(&mut self, sample_rate: f32)
fn set_sample_rate(&mut self, sample_rate: f32)
Sets the sample rate (clamped between 1000.0 and 192000.0 Hz).
Source§fn get_processor(&self) -> AudioProcessor<T>
fn get_processor(&self) -> AudioProcessor<T>
Gets a clone of the shared processor.
Source§fn get_channel_layout(&self) -> AudioChannelLayout
fn get_channel_layout(&self) -> AudioChannelLayout
Gets the channel layout.
Source§fn set_channel_layout(&mut self, layout: AudioChannelLayout)
fn set_channel_layout(&mut self, layout: AudioChannelLayout)
Sets the channel layout.
Source§impl<T: Clone + FloatType + Float> Clone for AudioStream<T>
impl<T: Clone + FloatType + Float> Clone for AudioStream<T>
Source§fn clone(&self) -> AudioStream<T>
fn clone(&self) -> AudioStream<T>
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<T> Freeze for AudioStream<T>
impl<T> RefUnwindSafe for AudioStream<T>
impl<T> !Send for AudioStream<T>
impl<T> !Sync for AudioStream<T>
impl<T> Unpin for AudioStream<T>
impl<T> UnwindSafe for AudioStream<T>
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