pub enum SampleChannelLayout {
Mono,
LinkedStereo {
channel: StereoChannel,
linked_sample_id: u64,
},
InterleavedStereo,
}Expand description
PCM layout needed to decode one materialized SoundFont sample region.
SF2 stores linked stereo samples as two independent mono ranges. SF3 may
instead store one interleaved Ogg/Vorbis stream. A host can therefore use
ResolvedPresetZoneMetadata::decode_channels without reparsing RIFF
tables, while LinkedStereo identifies the other mono region to combine.
Variants§
Implementations§
Source§impl SampleChannelLayout
impl SampleChannelLayout
Sourcepub const fn decode_channels(self) -> u8
pub const fn decode_channels(self) -> u8
Number of PCM channels carried by this region’s own source payload.
Trait Implementations§
Source§impl Clone for SampleChannelLayout
impl Clone for SampleChannelLayout
impl Copy for SampleChannelLayout
Source§impl Debug for SampleChannelLayout
impl Debug for SampleChannelLayout
impl Eq for SampleChannelLayout
Source§impl PartialEq for SampleChannelLayout
impl PartialEq for SampleChannelLayout
Source§impl Serialize for SampleChannelLayout
impl Serialize for SampleChannelLayout
impl StructuralPartialEq for SampleChannelLayout
Auto Trait Implementations§
impl Freeze for SampleChannelLayout
impl RefUnwindSafe for SampleChannelLayout
impl Send for SampleChannelLayout
impl Sync for SampleChannelLayout
impl Unpin for SampleChannelLayout
impl UnsafeUnpin for SampleChannelLayout
impl UnwindSafe for SampleChannelLayout
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