pub struct AudioRenderStatus {
pub start_sample: i64,
pub frames: usize,
pub missing_sources: Vec<SourceId>,
}Expand description
Outcome of mixing one block.
Fields§
§start_sample: i64Sample index of the first mixed sample.
frames: usizeNumber of mixed samples per channel.
missing_sources: Vec<SourceId>Sources an audible clip needed but the provider could not supply.
Those clips contributed silence and the block was not metered. Decode them and render the
block again. With AudioRenderer::set_hold_incomplete_blocks the whole block was silent,
nothing advanced, and the retry gives the uninterrupted mix; otherwise it gives the mix
after a seek.
Implementations§
Source§impl AudioRenderStatus
impl AudioRenderStatus
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns whether every audible clip was mixed from real samples.
Trait Implementations§
Source§impl Clone for AudioRenderStatus
impl Clone for AudioRenderStatus
Source§impl Debug for AudioRenderStatus
impl Debug for AudioRenderStatus
impl Eq for AudioRenderStatus
Source§impl PartialEq for AudioRenderStatus
impl PartialEq for AudioRenderStatus
impl StructuralPartialEq for AudioRenderStatus
Auto Trait Implementations§
impl Freeze for AudioRenderStatus
impl RefUnwindSafe for AudioRenderStatus
impl Send for AudioRenderStatus
impl Sync for AudioRenderStatus
impl Unpin for AudioRenderStatus
impl UnsafeUnpin for AudioRenderStatus
impl UnwindSafe for AudioRenderStatus
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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