Trait rsynth::AudioHandler[][src]

pub trait AudioHandler {
    fn set_sample_rate(&mut self, sample_rate: f64);
}

Define how sample-rate changes are handled.

Required methods

fn set_sample_rate(&mut self, sample_rate: f64)[src]

Called when the sample-rate changes. The backend should ensure that this function is called before any other method.

Parameters

sample_rate: The new sample rate in frames per second (Hz). Common sample rates are 44100 Hz (CD quality) and 48000 Hz.

Loading content...

Implementors

impl<S, E, M> AudioHandler for TestPlugin<S, E, M> where
    M: AudioHandler
[src]

Loading content...