Struct dsp::Settings
[−]
[src]
pub struct Settings {
pub sample_hz: SampleHz,
pub frames: Frames,
pub channels: Channels,
}Settings required for SoundStream.
Fields
sample_hz: SampleHz
The number of samples per second.
frames: Frames
How many samples per channel requested at a time in the buffer.
The more frames, the less likely to make glitches, but this gives slower response.
channels: Channels
Number of channels, for example 2 for stereo sound (left + right speaker).
Methods
impl Settings[src]
fn new(sample_hz: SampleHz, frames: Frames, channels: Channels) -> Settings
Custom constructor for the Settings.
fn cd_quality() -> Settings
Default, standard constructor for Settings.
fn buffer_size(&self) -> usize
Return the length of a SoundBuffer that would use Settings.
Trait Implementations
impl PartialEq for Settings[src]
fn eq(&self, __arg_0: &Settings) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Settings) -> bool
This method tests for !=.
impl Debug for Settings[src]
impl Clone for Settings[src]
fn clone(&self) -> Settings
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more