pub struct WavFileWriter<S: Sample> { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl<S: Sample> Writer<S> for WavFileWriter<S>
impl<S: Sample> Writer<S> for WavFileWriter<S>
Source§fn sample_rate(&self) -> f64
fn sample_rate(&self) -> f64
Get the sample rate of the writer.
Source§fn num_channels(&self) -> usize
fn num_channels(&self) -> usize
Get the number of channels of the writer.
Source§fn can_write(&self) -> bool
fn can_write(&self) -> bool
Check whether the writer can write to audio an audio file. This
is useful for particular audio files that use closing byte signatures,
unlike WAV files which can usually be appended with more audio data
at any time.
Auto Trait Implementations§
impl<S> Freeze for WavFileWriter<S>
impl<S> RefUnwindSafe for WavFileWriter<S>where
S: RefUnwindSafe,
impl<S> Send for WavFileWriter<S>
impl<S> Sync for WavFileWriter<S>
impl<S> Unpin for WavFileWriter<S>where
S: Unpin,
impl<S> UnwindSafe for WavFileWriter<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more