Struct bevy_rrise::sound_engine::AkCallbackType
pub struct AkCallbackType(pub i32);
Expand description
Type of callback. Used as a bitfield in methods AK::SoundEngine::PostEvent() and AK::SoundEngine::DynamicSequence::Open().
Tuple Fields
0: i32
Implementations
impl AkCallbackType
impl AkCallbackType
pub const AK_EndOfEvent: AkCallbackType = root::AkCallbackType(1)
pub const AK_EndOfEvent: AkCallbackType = root::AkCallbackType(1)
Callback triggered when reaching the end of an event. AkCallbackInfo can be cast to AkEventCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_EndOfDynamicSequenceItem: AkCallbackType = root::AkCallbackType(2)
pub const AK_EndOfDynamicSequenceItem: AkCallbackType = root::AkCallbackType(2)
Callback triggered when reaching the end of a dynamic sequence item. AkCallbackInfo can be cast to AkDynamicSequenceItemCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_Marker: AkCallbackType = root::AkCallbackType(4)
pub const AK_Marker: AkCallbackType = root::AkCallbackType(4)
Callback triggered when encountering a marker during playback. AkCallbackInfo can be cast to AkMarkerCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_Duration: AkCallbackType = root::AkCallbackType(8)
pub const AK_Duration: AkCallbackType = root::AkCallbackType(8)
Callback triggered when the duration of the sound is known by the sound engine. AkCallbackInfo can be cast to AkDurationCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_SpeakerVolumeMatrix: AkCallbackType = root::AkCallbackType(16)
pub const AK_SpeakerVolumeMatrix: AkCallbackType = root::AkCallbackType(16)
Callback triggered at each frame, letting the client modify the speaker volume matrix. AkCallbackInfo can be cast to AkSpeakerVolumeMatrixCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_Starvation: AkCallbackType = root::AkCallbackType(32)
pub const AK_Starvation: AkCallbackType = root::AkCallbackType(32)
Callback triggered when playback skips a frame due to stream starvation. AkCallbackInfo can be cast to AkEventCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicPlaylistSelect: AkCallbackType = root::AkCallbackType(64)
pub const AK_MusicPlaylistSelect: AkCallbackType = root::AkCallbackType(64)
Callback triggered when music playlist container must select the next item to play. AkCallbackInfo can be cast to AkMusicPlaylistCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicPlayStarted: AkCallbackType = root::AkCallbackType(128)
pub const AK_MusicPlayStarted: AkCallbackType = root::AkCallbackType(128)
Callback triggered when a “Play” or “Seek” command has been executed (“Seek” commands are issued from AK::SoundEngine::SeekOnEvent()). Applies to objects of the Interactive-Music Hierarchy only. AkCallbackInfo can be cast to AkEventCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicSyncBeat: AkCallbackType = root::AkCallbackType(256)
pub const AK_MusicSyncBeat: AkCallbackType = root::AkCallbackType(256)
Enable notifications on Music Beat. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicSyncBar: AkCallbackType = root::AkCallbackType(512)
pub const AK_MusicSyncBar: AkCallbackType = root::AkCallbackType(512)
Enable notifications on Music Bar. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicSyncEntry: AkCallbackType = root::AkCallbackType(1024)
pub const AK_MusicSyncEntry: AkCallbackType = root::AkCallbackType(1024)
Enable notifications on Music Entry Cue. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicSyncExit: AkCallbackType = root::AkCallbackType(2048)
pub const AK_MusicSyncExit: AkCallbackType = root::AkCallbackType(2048)
Enable notifications on Music Exit Cue. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicSyncGrid: AkCallbackType = root::AkCallbackType(4096)
pub const AK_MusicSyncGrid: AkCallbackType = root::AkCallbackType(4096)
Enable notifications on Music Grid. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicSyncUserCue: AkCallbackType = root::AkCallbackType(8192)
pub const AK_MusicSyncUserCue: AkCallbackType = root::AkCallbackType(8192)
Enable notifications on Music Custom Cue. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicSyncPoint: AkCallbackType = root::AkCallbackType(16384)
pub const AK_MusicSyncPoint: AkCallbackType = root::AkCallbackType(16384)
Enable notifications on Music switch transition synchronization point. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_MusicSyncAll: AkCallbackType = root::AkCallbackType(32512)
pub const AK_MusicSyncAll: AkCallbackType = root::AkCallbackType(32512)
Use this flag if you want to receive all notifications concerning AK_MusicSync registration.
impl AkCallbackType
impl AkCallbackType
pub const AK_MIDIEvent: AkCallbackType = root::AkCallbackType(65536)
pub const AK_MIDIEvent: AkCallbackType = root::AkCallbackType(65536)
Enable notifications for MIDI events. AkCallbackInfo can be cast to AkMIDIEventCallbackInfo.
impl AkCallbackType
impl AkCallbackType
pub const AK_CallbackBits: AkCallbackType = root::AkCallbackType(1048575)
pub const AK_CallbackBits: AkCallbackType = root::AkCallbackType(1048575)
Bitmask for all callback types.
impl AkCallbackType
impl AkCallbackType
pub const AK_EnableGetSourcePlayPosition: AkCallbackType = root::AkCallbackType(1048576)
pub const AK_EnableGetSourcePlayPosition: AkCallbackType = root::AkCallbackType(1048576)
Enable play position information for use by AK::SoundEngine::GetSourcePlayPosition().
impl AkCallbackType
impl AkCallbackType
pub const AK_EnableGetMusicPlayPosition: AkCallbackType = root::AkCallbackType(2097152)
pub const AK_EnableGetMusicPlayPosition: AkCallbackType = root::AkCallbackType(2097152)
Enable play position information of music objects, queried via AK::MusicEngine::GetPlayingSegmentInfo().
impl AkCallbackType
impl AkCallbackType
pub const AK_EnableGetSourceStreamBuffering: AkCallbackType = root::AkCallbackType(4194304)
pub const AK_EnableGetSourceStreamBuffering: AkCallbackType = root::AkCallbackType(4194304)
Enable stream buffering information for use by AK::SoundEngine::GetSourceStreamBuffering().
impl AkCallbackType
impl AkCallbackType
pub fn contains(self, flags: AkCallbackType) -> bool
pub fn contains(self, flags: AkCallbackType) -> bool
Checks whether this bitflag has at least one of the bits in flags
set.
Trait Implementations
impl BitAnd<AkCallbackType> for AkCallbackType
impl BitAnd<AkCallbackType> for AkCallbackType
type Output = AkCallbackType
type Output = AkCallbackType
&
operator.fn bitand(self, other: AkCallbackType) -> AkCallbackType
fn bitand(self, other: AkCallbackType) -> AkCallbackType
&
operation. Read moreimpl BitAndAssign<AkCallbackType> for AkCallbackType
impl BitAndAssign<AkCallbackType> for AkCallbackType
fn bitand_assign(&mut self, rhs: AkCallbackType)
fn bitand_assign(&mut self, rhs: AkCallbackType)
&=
operation. Read moreimpl BitOr<AkCallbackType> for AkCallbackType
impl BitOr<AkCallbackType> for AkCallbackType
type Output = AkCallbackType
type Output = AkCallbackType
|
operator.fn bitor(self, other: AkCallbackType) -> AkCallbackType
fn bitor(self, other: AkCallbackType) -> AkCallbackType
|
operation. Read moreimpl BitOrAssign<AkCallbackType> for AkCallbackType
impl BitOrAssign<AkCallbackType> for AkCallbackType
fn bitor_assign(&mut self, rhs: AkCallbackType)
fn bitor_assign(&mut self, rhs: AkCallbackType)
|=
operation. Read moreimpl Clone for AkCallbackType
impl Clone for AkCallbackType
fn clone(&self) -> AkCallbackType
fn clone(&self) -> AkCallbackType
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreimpl Debug for AkCallbackType
impl Debug for AkCallbackType
impl Default for AkCallbackType
impl Default for AkCallbackType
fn default() -> AkCallbackType
fn default() -> AkCallbackType
impl Display for AkCallbackType
impl Display for AkCallbackType
impl Hash for AkCallbackType
impl Hash for AkCallbackType
impl PartialEq<AkCallbackType> for AkCallbackType
impl PartialEq<AkCallbackType> for AkCallbackType
fn eq(&self, other: &AkCallbackType) -> bool
fn eq(&self, other: &AkCallbackType) -> bool
impl Copy for AkCallbackType
impl Eq for AkCallbackType
impl StructuralEq for AkCallbackType
impl StructuralPartialEq for AkCallbackType
Auto Trait Implementations
impl RefUnwindSafe for AkCallbackType
impl Send for AkCallbackType
impl Sync for AkCallbackType
impl Unpin for AkCallbackType
impl UnwindSafe for AkCallbackType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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 morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read morefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read morefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read moreimpl<T> DynHash for Twhere
T: DynEq + Hash,
impl<T> DynHash for Twhere
T: DynEq + Hash,
impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Self
using data from the given [World]