34 #ifndef _AK_CALLBACK_H_
35 #define _AK_CALLBACK_H_
42 class IAkGlobalPluginContext;
43 class IAkMixerInputContext;
44 class IAkMixerPluginContext;
290 const void * in_pInMemoryBankPtr,
351 #endif // _AK_CALLBACK_H_
Start of frame rendering, after having processed game messages.
#define AK_CALLBACK(__TYPE__, __NAME__)
Structure used to query info on active playing segments.
AkUniqueID eventID
Unique ID of Event, passed to PostEvent()
Callback triggered at each frame, letting the client modify the speaker volume matrix....
AkTimeMs iPreEntryDuration
Duration of the pre-entry region of the segment, in milliseconds.
Callback triggered when encountering a marker during playback. AkCallbackInfo can be cast to AkMarker...
Send monitor data connection to recap.
AkReal32 * pfBaseVolume
Base volume, common to all channels.
Start of audio processing. The number of frames about to be rendered depends on the sink/end-point an...
Enable notifications on Music Custom Cue. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
AkUInt32 uPlaylistItemDone
Playlist node done: set by sound engine, modified by callback function (if set to anything but 0 then...
Callback triggered when a "Play" or "Seek" command has been executed ("Seek" commands are issued from...
Right after successful registration of callback/plugin. Typically used by plugins along with AkGlobal...
Sent after an Audio Device has initialized. Initialization might have failed, check the AKRESULT.
Enable notifications on Music Entry Cue. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
AkUInt32 uIdentifier
Cue point identifier.
Enable notifications for MIDI events. AkCallbackInfo can be cast to AkMIDIEventCallbackInfo.
bool bStreaming
True if source is streaming, false otherwise.
AkReal32 fBeatDuration
Beat Duration in seconds.
AKRESULT
Standard function call result.
void(* AkGlobalCallbackFunc)(AK::IAkGlobalPluginContext *in_pContext, AkGlobalCallbackLocation in_eLocation, void *in_pCookie)
AK::IAkMixerInputContext * pContext
Context of the current voice/bus about to be mixed into the output bus with specified base volume and...
AkUInt32 uPosition
Position in the cue point (unit: sample frames)
void(* AkBankCallbackFunc)(AkUInt32 in_bankID, const void *in_pInMemoryBankPtr, AKRESULT in_eLoadResult, AkMemPoolId in_memPoolId, void *in_pCookie)
Callback triggered when the duration of the sound is known by the sound engine. AkCallbackInfo can be...
Sound engine termination.
AkTimeMs iRemainingLookAheadTime
Number of milliseconds remaining in the "looking-ahead" state of the segment, when it is silent but s...
Global plugin context used for plugin registration/initialization. Games query this interface from th...
AkChannelConfig outputConfig
Channel configuration of the output bus.
Enable notifications on Music Bar. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
Bitmask for all callback types.
Use this flag if you want to receive all notifications concerning AK_MusicSync registration.
Callback triggered when playback skips a frame due to stream starvation. AkCallbackInfo can be cast t...
AkUniqueID audioNodeID
Audio Node ID of finished item.
AkMeteringFlags
Metering flags. Used for specifying bus metering, through AK::SoundEngine::RegisterBusVolumeCallback(...
AkCallbackType
Type of callback. Used as a bitfield in methods AK::SoundEngine::PostEvent() and AK::SoundEngine::Dyn...
AkUInt32 AkUniqueID
Unique 32-bit ID.
void * pCustomInfo
Custom info passed to the DynamicSequence::Open function.
AkCallbackType musicSyncType
Would be either AK_MusicSyncEntry, AK_MusicSyncBeat, AK_MusicSyncBar, AK_MusicSyncExit,...
AkTimeMs iPostExitDuration
Duration of the post-exit region of the segment, in milliseconds.
Enable stream buffering information for use by AK::SoundEngine::GetSourceStreamBuffering().
void(* AkBusMeteringCallbackFunc)(AK::IAkMetering *in_pMetering, AkChannelConfig in_channelConfig, AkMeteringFlags in_eMeteringFlags)
AkReal32 fDuration
Duration of the sound (unit: milliseconds)
AkUInt64 AkGameObjectID
Game object ID.
AkReal32 * MatrixPtr
Volume matrix. Access each input channel vector with AK::SpeakerVolumes::Matrix::GetChannel().
Enable notifications on Music Grid. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
Interface to retrieve information about an input of a mixer.
AkTimeMs iCurrentPosition
Current position of the segment, relative to the Entry Cue, in milliseconds. Range is [-iPreEntryDura...
AkTimeMs iActiveDuration
Duration of the active region of the segment (between the Entry and Exit Cues), in milliseconds.
AkGameObjectID gameObjID
Game object ID.
AkUInt32 uPlaylistSelection
Selection: set by sound engine, modified by callback function (if not in range 0 <= uPlaylistSelectio...
Interface to retrieve contextual information for a mixer.
void * pCookie
User data, passed to PostEvent()
AK::IAkMixerPluginContext * pMixerContext
Output mixing bus context. Use it to access a few useful panning and mixing services,...
AkUniqueID playlistID
ID of playlist node.
AkUInt32 uNumPlaylistItems
Number of items in playlist node (may be segments or other playlists)
Audio device was removed because of a system event (disconnection), hardware or driver problem....
AkReal32 fGridDuration
Grid duration in seconds.
Start of frame rendering, before having processed game messages.
AkGlobalCallbackLocation
Bit field of various locations in the audio processing loop where the game can be called back.
Callback triggered when music playlist container must select the next item to play....
AkUInt32 AkPlayingID
Playing ID.
AkPlayingID playingID
Playing ID of Dynamic Sequence, returned by AK::SoundEngine:DynamicSequence::Open()
Enable notifications on Music Beat. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
AkChannelConfig inputConfig
Channel configuration of the voice/bus.
AkMIDIEvent midiEvent
MIDI event triggered by event.
AkUniqueID mediaID
Media ID of playing item. (corresponds to 'ID' attribute of 'File' element in SoundBank metadata file...
Audio device was removed through explicit call (AK::SoundEngine::RemoveOutput or AK::SoundEngine::Ter...
AkPlayingID playingID
Playing ID of Event, returned by PostEvent()
Interface to retrieve metering information about a buffer.
Enable play position information of music objects, queried via AK::MusicEngine::GetPlayingSegmentInfo...
AkSegmentInfo segmentInfo
Segment information corresponding to the segment triggering this callback.
void(* AkBusCallbackFunc)(AkSpeakerVolumeMatrixCallbackInfo *in_pCallbackInfo)
AkReal32 fEstimatedDuration
Estimated duration of the sound depending on source settings such as pitch. (unit: milliseconds)
Enable play position information for use by AK::SoundEngine::GetSourcePlayPosition().
AK::SpeakerVolumes::MatrixPtr pVolumes
Pointer to volume matrix describing the contribution of each source channel to destination channels....
After one or more messages have been processed, but before updating game object and listener position...
void(* AkDeviceStatusCallbackFunc)(AK::IAkGlobalPluginContext *in_pContext, AkUniqueID in_idAudioDeviceShareset, AkUInt32 in_idDeviceID, AkAudioDeviceEvent in_idEvent, AKRESULT in_AkResult)
Callback for Audio Device status changes.
const char * strLabel
Label of the marker, read from the file.
Callback triggered when reaching the end of a dynamic sequence item. AkCallbackInfo can be cast to Ak...
AkUniqueID audioNodeID
Audio Node ID of playing item.
AkReal32 * pfEmitterListenerVolume
Emitter-listener pair-specific gain. When there are multiple emitter-listener pairs,...
void(* AkCallbackFunc)(AkCallbackType in_eType, AkCallbackInfo *in_pCallbackInfo)
Enable notifications on Music switch transition synchronization point. AkCallbackInfo can be cast to ...
Enable notifications on Music Exit Cue. AkCallbackInfo can be cast to AkMusicSyncCallbackInfo.
char * pszUserCueName
Cue name (UTF-8 string). Set for notifications AK_MusicSyncUserCue. NULL if cue has no name.
AkPlayingID playingID
Playing ID of Event, returned by PostEvent()
AkInt32 AkMemPoolId
Memory pool ID.
Callback triggered when reaching the end of an event. AkCallbackInfo can be cast to AkEventCallbackIn...
AkInt32 AkTimeMs
Time in ms.
AkReal32 fGridOffset
Grid offset in seconds.
AkReal32 fBarDuration
Bar Duration in seconds.