Struct rsynth::backend::combined::dummy::AudioDummy [−][src]
Dummy backend that does nothing, useful for testing and e.g. for offline renderers that have no audio input or output.
Implementations
impl<S> AudioDummy<S>
[src]
pub fn with_sample_rate_and_length(
frames_per_second: u32,
length_in_frames: usize
) -> Self
[src]
frames_per_second: u32,
length_in_frames: usize
) -> Self
Create a new AudioDummy
with the given sample rate, in frames per second.
pub fn new() -> Self
[src]
👎 Deprecated since 0.1.2:
Use with_sample_rate_and_length
instead.
Create a new AudioDummy
with the “default” sample rate
of 44100 frames per second (CD quality) and a length of 0 samples.
Trait Implementations
impl<S> AudioReader<S> for AudioDummy<S> where
S: Copy,
[src]
S: Copy,
type Err = Infallible
The type of the error that occurs when reading data.
fn number_of_channels(&self) -> usize
[src]
fn frames_per_second(&self) -> u64
[src]
fn fill_buffer(
&mut self,
output: &mut AudioBufferOut<'_, '_, S>
) -> Result<usize, Self::Err>
[src]
&mut self,
output: &mut AudioBufferOut<'_, '_, S>
) -> Result<usize, Self::Err>
impl<S> AudioWriter<S> for AudioDummy<S> where
S: Copy,
[src]
S: Copy,
type Err = Infallible
The type of the error that occurs when reading data.
fn write_buffer(
&mut self,
_buffer: &AudioBufferIn<'_, '_, S>
) -> Result<(), Self::Err>
[src]
&mut self,
_buffer: &AudioBufferIn<'_, '_, S>
) -> Result<(), Self::Err>
fn specifies_number_of_channels(&self) -> bool
[src]
fn number_of_channels(&self) -> usize
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for AudioDummy<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for AudioDummy<S> where
S: Send,
S: Send,
impl<S> Sync for AudioDummy<S> where
S: Sync,
S: Sync,
impl<S> Unpin for AudioDummy<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for AudioDummy<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
T: FromSample<S> + ToSample<S>,
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
pub fn from_sample_(s: S) -> S
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
U: FromSample<T>,
pub fn to_sample_(self) -> U
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,