pub struct DecodedAudioSources { /* private fields */ }Expand description
Decoded, project-rate planar audio held per source audio stream for offline mixing; one whole-stream block each, indexed 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 default audio stream, replacing any earlier block.
Sourcepub fn insert_stream(
&mut self,
source: SourceId,
stream: Option<u32>,
block: AudioBlock,
)
pub fn insert_stream( &mut self, source: SourceId, stream: Option<u32>, block: AudioBlock, )
Retains audio stream stream of a source (AudioProperties::stream), replacing any
earlier block.
Trait Implementations§
Source§impl AudioBlockProvider for DecodedAudioSources
Each block is its source’s entire audio; outside it the source is silent.
impl AudioBlockProvider for DecodedAudioSources
Each block is its source’s entire audio; outside 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more