Struct rsynth::backend::combined::TestAudioWriter [−][src]
An audio writer, useful for testing.
Implementations
impl<'w, T, S> TestAudioWriter<'w, T, S> where
T: AudioWriter<S>,
S: Copy,
[src]
T: AudioWriter<S>,
S: Copy,
pub fn new(writer: &'w mut T, expected_chunks: Vec<AudioChunk<S>>) -> Self
[src]
Create a new TestAudioWriter
.
The newly created will panic when the audio that is written to it does not match
with expected_chunks
.
Trait Implementations
impl<'w, T, S> AudioWriter<S> for TestAudioWriter<'w, T, S> where
T: AudioWriter<S>,
S: Debug + PartialEq + Copy,
[src]
T: AudioWriter<S>,
S: Debug + PartialEq + Copy,
type Err = <T as AudioWriter<S>>::Err
The type of the error that occurs when reading data.
fn write_buffer(
&mut self,
chunk: &AudioBufferIn<'_, '_, S>
) -> Result<(), Self::Err>
[src]
&mut self,
chunk: &AudioBufferIn<'_, '_, S>
) -> Result<(), Self::Err>
fn specifies_number_of_channels(&self) -> bool
[src]
fn number_of_channels(&self) -> usize
[src]
Auto Trait Implementations
impl<'w, T, S> RefUnwindSafe for TestAudioWriter<'w, T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<'w, T, S> Send for TestAudioWriter<'w, T, S> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<'w, T, S> Sync for TestAudioWriter<'w, T, S> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<'w, T, S> Unpin for TestAudioWriter<'w, T, S> where
S: Unpin,
S: Unpin,
impl<'w, T, S> !UnwindSafe for TestAudioWriter<'w, T, S>
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>,