pub struct DecodedAudioSources { /* private fields */ }Expand description
Decoded, project-rate planar audio held per source for offline mixing.
The native decoder produces whole-stream planar audio, so one retained block per source is enough; the renderer indexes it by absolute source position.
Implementations§
Source§impl DecodedAudioSources
impl DecodedAudioSources
Sourcepub fn insert(&mut self, source: SourceId, block: AudioBlock)
pub fn insert(&mut self, source: SourceId, block: AudioBlock)
Retains one source’s decoded audio, replacing any earlier block.
Trait Implementations§
Source§impl AudioBlockProvider for DecodedAudioSources
Each source is decoded once from end to end, so a block is its source’s
entire audio: before and after it the source is silent.
impl AudioBlockProvider for DecodedAudioSources
Each source is decoded once from end to end, so a block is its source’s entire audio: before and after it the source is silent.
Auto Trait Implementations§
impl Freeze for DecodedAudioSources
impl RefUnwindSafe for DecodedAudioSources
impl Send for DecodedAudioSources
impl Sync for DecodedAudioSources
impl Unpin for DecodedAudioSources
impl UnsafeUnpin for DecodedAudioSources
impl UnwindSafe for DecodedAudioSources
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