Enum bevy_retrograde::audio::kira::mixer::TrackIndex [−]
pub enum TrackIndex { Main, Sub(SubTrackId), Send(SendTrackId), }
Expand description
An identifier for a mixer track.
Variants
The main track.
All sub-tracks are sent to the main track as input, and the output of the main track is what you hear.
Sub(SubTrackId)
A sub-track.
Sub-tracks are useful for adjusting the volumes of and applying effects to certain kinds of sounds. For example, in a game, you may have one sub-track for sound effects and another for music.
Send(SendTrackId)
A send track.
Send tracks are useful for routing multiple sub-tracks into the same set of effects. This can save processing power and avoid redundant effect configuration.
Trait Implementations
impl Clone for TrackIndex
impl Clone for TrackIndex
pub fn clone(&self) -> TrackIndex
pub fn clone(&self) -> TrackIndex
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for TrackIndex
impl Debug for TrackIndex
impl Default for TrackIndex
impl Default for TrackIndex
pub fn default() -> TrackIndex
pub fn default() -> TrackIndex
Returns the “default value” for a type. Read more
impl<'_> From<&'_ SendTrackHandle> for TrackIndex
impl<'_> From<&'_ SendTrackHandle> for TrackIndex
pub fn from(handle: &SendTrackHandle) -> TrackIndex
pub fn from(handle: &SendTrackHandle) -> TrackIndex
Performs the conversion.
impl<'_> From<&'_ SubTrackHandle> for TrackIndex
impl<'_> From<&'_ SubTrackHandle> for TrackIndex
pub fn from(handle: &SubTrackHandle) -> TrackIndex
pub fn from(handle: &SubTrackHandle) -> TrackIndex
Performs the conversion.
impl From<SendTrackId> for TrackIndex
impl From<SendTrackId> for TrackIndex
pub fn from(id: SendTrackId) -> TrackIndex
pub fn from(id: SendTrackId) -> TrackIndex
Performs the conversion.
impl From<SubTrackId> for TrackIndex
impl From<SubTrackId> for TrackIndex
pub fn from(id: SubTrackId) -> TrackIndex
pub fn from(id: SubTrackId) -> TrackIndex
Performs the conversion.
impl From<TrackIndex> for InstanceTrackIndex
impl From<TrackIndex> for InstanceTrackIndex
pub fn from(index: TrackIndex) -> InstanceTrackIndex
pub fn from(index: TrackIndex) -> InstanceTrackIndex
Performs the conversion.
impl Hash for TrackIndex
impl Hash for TrackIndex
impl PartialEq<TrackIndex> for TrackIndex
impl PartialEq<TrackIndex> for TrackIndex
pub fn eq(&self, other: &TrackIndex) -> bool
pub fn eq(&self, other: &TrackIndex) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &TrackIndex) -> bool
pub fn ne(&self, other: &TrackIndex) -> bool
This method tests for !=
.
impl Copy for TrackIndex
impl Eq for TrackIndex
impl StructuralEq for TrackIndex
impl StructuralPartialEq for TrackIndex
Auto Trait Implementations
impl RefUnwindSafe for TrackIndex
impl Send for TrackIndex
impl Sync for TrackIndex
impl Unpin for TrackIndex
impl UnwindSafe for TrackIndex
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
impl<T> DynHash for T where
T: DynEq + Hash,
impl<T> DynHash for T where
T: DynEq + Hash,
Compare self to key
and return true
if they are equal.
impl<T> FromWorld for T where
T: Default,
impl<T> FromWorld for T where
T: Default,
pub fn from_world(_world: &mut World) -> T
pub fn from_world(_world: &mut World) -> T
Creates Self
using data from the given [World]
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V