Struct sndfile::WriteOptions
source · [−]pub struct WriteOptions { /* private fields */ }
Expand description
Options for writing audio files.
Implementations
sourceimpl WriteOptions
impl WriteOptions
sourcepub fn new(
major_format: MajorFormat,
subtype_format: SubtypeFormat,
endian: Endian,
samplerate: usize,
channels: usize
) -> Self
pub fn new(
major_format: MajorFormat,
subtype_format: SubtypeFormat,
endian: Endian,
samplerate: usize,
channels: usize
) -> Self
Create new WriteOptions.
major_format
: Audio container format, e.g.,SubtypeFormat::WAV
,SubtypeFormat::FLAC
, etcsubtype_format
: Audio encoding format, e.g.,SubtypeFormat::PCM_S16
,SubtypeFormat::VORBIS
, etcendian
: UsuallyEndian::File
samplerate
: A positive numberchannels
: A positive number
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnwindSafe for WriteOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more