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.
Source§impl Default for DecodedAudioSources
impl Default for DecodedAudioSources
Source§impl ProjectAudioSources for DecodedAudioSources
Available on crate feature engine only.
impl ProjectAudioSources for DecodedAudioSources
Available on crate feature
engine only.Source§fn prepare(
&mut self,
_needs: &[AudioNeed],
_cancel: &CancelToken,
) -> Result<(), AudioWindowError>
fn prepare( &mut self, _needs: &[AudioNeed], _cancel: &CancelToken, ) -> Result<(), AudioWindowError>
Makes ready what
needs reads, before the block that reads it renders. Audio decoded
whole needs nothing. Read moreAuto Trait Implementations§
impl Forget for DecodedAudioSources
impl Freeze for DecodedAudioSources
impl Move for DecodedAudioSources
impl RefUnwindSafe for DecodedAudioSources
impl Send for DecodedAudioSources
impl Sync for DecodedAudioSources
impl Unpin for DecodedAudioSources
impl UnsafeUnpin for DecodedAudioSourceswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<((SourceId, Option<u32>), AudioBlock)>: UnsafeUnpin,
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