pub struct WavMuxOptions { /* private fields */ }Expand description
Optional muxer configuration: write a WAVE_FORMAT_EXTENSIBLE
(wFormatTag = 0xFFFE) header with the supplied dwChannelMask,
wValidBitsPerSample, and SubFormat GUID. See
docs/container/riff/waveformatextensible/README.md §“Channel-mask”
for the standard layouts.
When valid_bits_per_sample is None the muxer reuses the
container wBitsPerSample (computed from the codec’s
SampleFormat). When subformat is None the muxer picks the
well-known KSDATAFORMAT_SUBTYPE_* GUID for the codec id (PCM /
IEEE_FLOAT / ALAW / MULAW).
Implementations§
Source§impl WavMuxOptions
impl WavMuxOptions
Sourcepub fn with_extensible(self, channel_mask: u32) -> Self
pub fn with_extensible(self, channel_mask: u32) -> Self
Opt into WAVE_FORMAT_EXTENSIBLE muxing with the supplied
dwChannelMask. The muxer derives wValidBitsPerSample and
SubFormat from the codec-id automatically; use the
finer-grained setters to override.
Sourcepub fn with_valid_bits_per_sample(self, valid_bps: u16) -> Self
pub fn with_valid_bits_per_sample(self, valid_bps: u16) -> Self
Override wValidBitsPerSample for an extensible stream. Has no
effect unless Self::with_extensible was also called.
Sourcepub fn with_subformat(self, guid: [u8; 16]) -> Self
pub fn with_subformat(self, guid: [u8; 16]) -> Self
Override the 16-byte SubFormat GUID. Has no effect unless
Self::with_extensible was also called.
Trait Implementations§
Source§impl Clone for WavMuxOptions
impl Clone for WavMuxOptions
Source§fn clone(&self) -> WavMuxOptions
fn clone(&self) -> WavMuxOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more