Struct rsynth::backend::combined::memory::AudioBufferWriter [−][src]
An AudioWriter
that appends to a given AudioChunk
.
The generic parameter type S
represents the sample type.
Note about using in a real-time context
Because this appends to an AudioChunk
, it may allocate memory
when the capacity of the AudioChunk
is exceeded.
Implementations
impl<'b, S> AudioBufferWriter<'b, S>
[src]
pub fn new(buffer: &'b mut AudioChunk<S>) -> Self
[src]
Trait Implementations
impl<'b, S> AudioWriter<S> for AudioBufferWriter<'b, 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<'b, S> RefUnwindSafe for AudioBufferWriter<'b, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'b, S> Send for AudioBufferWriter<'b, S> where
S: Send,
S: Send,
impl<'b, S> Sync for AudioBufferWriter<'b, S> where
S: Sync,
S: Sync,
impl<'b, S> Unpin for AudioBufferWriter<'b, S>
impl<'b, S> !UnwindSafe for AudioBufferWriter<'b, 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>,