Wwise SDK
_ak_sound_engine_8h_source
Version
menu_open
Wwise SDK 2024.1.1
|
AkSoundEngine.h
Go to the documentation of this file.
117Â bool in_bBackgroundMusicMuted, ///< Flag indicating whether the busses tagged as "background music" in the project are muted or not.
130Â AkOutputSettings(const char* in_szDeviceShareSet, AkUniqueID in_idDevice = AK_INVALID_UNIQUE_ID, AkChannelConfig in_channelConfig = AkChannelConfig(), AkPanningRule in_ePanning = AkPanningRule_Speakers);
133Â AkOutputSettings(const wchar_t* in_szDeviceShareSet, AkUniqueID in_idDevice = AK_INVALID_UNIQUE_ID, AkChannelConfig in_channelConfig = AkChannelConfig(), AkPanningRule in_ePanning = AkPanningRule_Speakers);
136Â AkUniqueID audioDeviceShareset; ///< Unique ID of a custom audio device to be used. Custom audio devices are defined in the Audio Device Shareset section of the Wwise project.
137Â ///< If you want to output normally through the output device defined on the Master Bus in your project, leave this field to its default value (AK_INVALID_UNIQUE_ID, or value 0).
138Â ///< Typical usage: AkInitSettings.eOutputSettings.audioDeviceShareset = AK::SoundEngine::GetIDFromString("InsertYourAudioDeviceSharesetNameHere");
144Â AkUInt32 idDevice; ///< Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
147Â AkPanningRule ePanningRule; ///< Rule for 3D panning of signals routed to a stereo bus. In AkPanningRule_Speakers mode, the angle of the front loudspeakers
148Â ///< (uSpeakerAngles[0]) is used. In AkPanningRule_Headphones mode, the speaker angles are superseded by constant power panning
151Â AkChannelConfig channelConfig; ///< Channel configuration for this output. Call AkChannelConfig::Clear() to let the engine use the default output configuration.
155Â /// Define the orientation of the the floor plane with respect to the X,Y,Z axes, and which axes represent the side, front and up vectors as a basis for rotations in Wwise.
156Â /// AkFloorPlane is used in to orient the Game Object 3D Viewer in Wwise, and in the transformation of geometry instances in Wwise Spatial Audio.
159Â AkFloorPlane_XZ = 0, ///< The floor is oriented along the ZX-plane. The front vector points towards +Z, the up vector towards +Y, and the side vector towards +X.
160Â AkFloorPlane_XY, ///< The floor is oriented along the XY-plane. The front vector points towards +X, the up vector towards +Z, and the side vector towards +Y.
161Â AkFloorPlane_YZ, ///< The floor is oriented along the YZ-plane. The front vector points towards +Y, the up vector towards +X, and the side vector towards +Z.
164Â };
168Â // in_uExecutionTimeUsec is the number of microseconds that the function should execute for before terminating.
169Â // Note that the deadline is only checked after each individual job completes execution, so the function may run slightly
170Â // longer than intended. The "in_uExecutionTimeUsec" should be considered a suggestion or guideline, not a strict rule.
171Â // A value of 0 means that the function will run until there are no more jobs ready to be immediately executed.
180Â /// Callback function prototype definition used for handling requests from JobMgr for new workers to perform work.
182Â AkJobWorkerFunc in_fnJobWorker, ///< Function passed to host runtime that should be executed. Note that the function provided will exist for as long as the soundengine code is loaded, and will always be the same.
183Â AkJobType in_jobType, ///< The type of job worker that has been requested. This should be passed forward to in_fnJobWorker
188Â FuncRequestJobWorker fnRequestJobWorker; ///< Function called by the job manager when a new worker needs to be requested. When null, all jobs will be executed on the same thread that calls RenderAudio().
190Â AkUInt32 uMaxActiveWorkers[AK_NUM_JOB_TYPES]; ///< The maximum number of concurrent workers that will be requested. Must be >= 1 for each jobType.
192Â AkUInt32 uNumMemorySlabs; ///< Number of memory slabs to pre-allocate for job manager memory. At least one slab per worker thread should be pre-allocated. Default is 1.
193Â AkUInt32 uMemorySlabSize; ///< Size of each memory slab used for job manager memory. Must be a power of two. Default is 8K.
195Â void* pClientData; ///< Arbitrary data that will be passed back to the client when calling FuncRequestJobWorker
198Â /// External (optional) callback for tracking performance of the sound engine that is called when a timer starts. (only called in Debug and Profile binaries; this is not called in Release)
199Â /// in_uPluginID may be non-zero when this function is called, to provide extra data about what context this Timer was started in.
200Â /// in_pszZoneName will point to a static string, so the pointer can be stored for later use, not just the contents of the string itself.
206Â /// External (optional) function for tracking performance of the sound engine that is called when a timer stops. (only called in Debug and Profile binaries; this is not called in Release)
209Â ///< External (optional) function for tracking notable events in the sound engine, to act as a marker or bookmark. (only called in Debug and Profile binaries; this is not called in Release)
210Â /// in_uPluginID may be non-zero when this function is called, to provide extra data about what context this Marker was posted in.
211Â /// in_pszMarkerName will point to a static string, so the pointer can be stored for later use, not just the contents of the string itself.
228Â bool bEnableGameSyncPreparation; ///< Sets to true to enable AK::SoundEngine::PrepareGameSync usage.
229Â AkUInt32 uContinuousPlaybackLookAhead; ///< Number of quanta ahead when continuous containers should instantiate a new voice before which next sounds should start playing. This look-ahead time allows I/O to occur, and is especially useful to reduce the latency of continuous containers with trigger rate or sample-accurate transitions.
230Â ///< Default is 1 audio quantum, also known as an audio frame. Its size is equal to AkInitSettings::uNumSamplesPerFrame / AkPlatformInitSettings::uSampleRate. For many platforms the default values - which can be overridden - are respectively 1,024 samples and 48 kHz. This gives a default 21.3 ms for an audio quantum, which is adequate if you have a RAM-based streaming device that completes transfers within 20 ms. With 1 look-ahead quantum, voices spawned by continuous containers are more likely to be ready when they are required to play, thereby improving the overall precision of sound scheduling. If your device completes transfers in 30 ms instead, you might consider increasing this value to 2 because it will grant new voices 2 audio quanta (~43 ms) to fetch data.
232Â AkUInt32 uNumSamplesPerFrame; ///< Number of samples per audio frame (256, 512, 1024, or 2048).
234Â AkUInt32 uMonitorQueuePoolSize; ///< Size of the monitoring queue, in bytes. This parameter is not used in Release build.
235Â AkUInt32 uCpuMonitorQueueMaxSize; ///< Maximum size of the CPU monitoring queue, per thread, in bytes. This parameter is not used in Release build.
238Â AkJobMgrSettings settingsJobManager; ///< Settings to configure the behavior of the Sound Engine's internal job manager
240Â AkUInt32 uMaxHardwareTimeoutMs; ///< Amount of time to wait for HW devices to trigger an audio interrupt. If there is no interrupt after that time, the sound engine will revert to silent mode and continue operating until the HW finally comes back. Default value: 2000 (2 seconds)
242Â bool bUseSoundBankMgrThread; ///< Use a separate thread for loading sound banks. Allows asynchronous operations.
243Â bool bUseLEngineThread; ///< Use a separate thread for processing audio. If set to false, audio processing will occur in RenderAudio(). \ref goingfurther_eventmgrthread
245Â AkBackgroundMusicChangeCallbackFunc BGMCallback; ///< Application-defined audio source change event callback function.
246Â void* BGMCallbackCookie; ///< Application-defined user data for the audio source change event callback function.
247Â const AkOSChar * szPluginDLLPath; ///< When using DLLs for plugins, specify their path. Leave NULL if DLLs are in the same folder as the game executable.
249Â AkFloorPlane eFloorPlane; ///< Define the orientation of the the floor plane with respect to the X,Y,Z axes, and which axes represent the side, front and up vectors as a basis for rotations in Wwise.
250Â ///< AkFloorPlane is used in to orient the Game Object 3D Viewer in Wwise, and in the transformation of geometry instances in Wwise Spatial Audio.
253Â ///< This setting is used to adapt the size of elements in the Authoring's Game Object 3D Viewer and Audio Object 3D Viewer to meters.
254Â ///< This setting is also used to simulate real-world positioning of System Audio Objects, to improve the HRTF in some cases.
255Â ///< Note that for legacy reasons, this setting's name is misleading. Its value should represent the number of game units *per* meter.
256Â ///< For example, if your game engine sends positions in centimeters, the value of fGameUnitsToMeters should be 100.
258Â AkUInt32 uBankReadBufferSize; ///< The number of bytes read by the BankReader when new data needs to be loaded from disk during serialization. Increasing this trades memory usage for larger, but fewer, file-read events during bank loading.
260Â AkReal32 fDebugOutOfRangeLimit; ///< Debug setting: Only used when bDebugOutOfRangeCheckEnabled is true. This defines the maximum values samples can have. Normal audio must be contained within +1/-1. This limit should be set higher to allow temporary or short excursions out of range. Default is 16.
262Â bool bDebugOutOfRangeCheckEnabled; ///< Debug setting: Enable checks for out-of-range (and NAN) floats in the processing code. This incurs a small performance hit, but can be enabled in most scenarios. Will print error messages in the log if invalid values are found at various point in the pipeline. Contact AK Support with the new error messages for more information.
264Â bool bOfflineRendering; ///< Enables/disables offline rendering. \ref goingfurther_offlinerendering
266Â AkProfilerPushTimerFunc fnProfilerPushTimer; ///< External (optional) function for tracking performance of the sound engine that is called when a timer starts. (only called in Debug and Profile binaries; this is not called in Release)
267Â AkProfilerPopTimerFunc fnProfilerPopTimer; ///< External (optional) function for tracking performance of the sound engine that is called when a timer stops. (only called in Debug and Profile binaries; this is not called in Release)
268Â AkProfilerPostMarkerFunc fnProfilerPostMarker; ///< External (optional) function for tracking significant events in the sound engine, to act as a marker or bookmark. (only called in Debug and Profile binaries; this is not called in Release)
283Â AkUniqueID mediaID; ///< Media ID of playing item. (corresponds to 'ID' attribute of 'File' element in SoundBank metadata file)
285Â AkUInt32 samplePosition; ///< Position of the source (in samples) associated with that playing item
304Â /// \warning This function is not thread-safe. It should not be called at the same time as \c SoundEngine::Init() or \c SoundEngine::Term().
314Â /// \remark The initial settings should be initialized using <tt>AK::SoundEngine::GetDefaultInitSettings()</tt>
315Â /// and <tt>AK::SoundEngine::GetDefaultPlatformInitSettings()</tt> to fill the structures with their
316Â /// default settings. This is not mandatory, but it helps avoid backward compatibility problems.
320Â /// - \c AK_MemManagerNotInitialized if the memory manager is not available or not properly initialized
321Â /// - \c AK_StreamMgrNotInitialized if the stream manager is not available or not properly initialized
322Â /// - \c AK_SSEInstructionsNotSupported if the machine does not support SSE instruction (only on the PC)
323Â /// - \c AK_InsufficientMemory if there is not enough memory available to initialize the sound engine properly
325Â /// - \c AK_AlreadyInitialized if the sound engine is already initialized, or if the provided settings result in insufficient
335Â AkInitSettings * in_pSettings, ///< Initialization settings (can be NULL, to use the default values)
336Â AkPlatformInitSettings * in_pPlatformSettings ///< Platform-specific settings (can be NULL, to use the default values)
357Â AkPlatformInitSettings & out_platformSettings ///< Returned default platform-specific sound engine settings
364Â /// \warning Before calling Term, you must ensure that no other thread is accessing the sound engine.
383Â /// Call this function to get the speaker configuration of the output (which may not correspond
384Â /// to the physical output format of the platform, in the case of downmixing provided by the platform itself).
388Â /// If the speaker configuration of the output is object-based, the speaker configuration of the
389Â /// main mix is returned. To query more information on object-based output devices, see AK::SoundEngine::GetOutputDeviceConfiguration.
391Â /// It is recommended to call GetSpeakerConfiguration anytime after receiving a callback from RegisterAudioDeviceStatusCallback to know if the channel configuration has changed.
394Â /// If you are initializing the sound engine with AkInitSettings::bUseLEngineThread to false, it is required to call RenderAudio() at least once before calling this function to complete the sound engine initialization.
396Â /// \return The output configuration. An empty AkChannelConfig not AkChannelConfig::IsValid() if device does not exist or if the Init.bnk was not loaded yet.
402Â AkOutputDeviceID in_idOutput = 0 ///< Output ID to set the bus on. As returned from AddOutput or GetOutputID. You can pass 0 for the main (default) output
406Â /// Call this function to get the channel configuration of the output device as well as its 3D audio capabilities.
407Â /// If the configuration of the output device is object-based (io_channelConfig.eConfigType == AK_ChannelConfigType_Objects),
408Â /// io_capabilities can be inspected to determine the channel configuration of the main mix (Ak3DAudioSinkCapabilities::channelConfig),
409Â /// whether or not the output device uses a passthrough mix (Ak3DAudioSinkCapabilities::bPassthrough) and the maximum number of objects
410Â /// that can play simultaneously on this output device (Ak3DAudioSinkCapabilities::uMax3DAudioObjects). Note that if
411Â /// Ak3DAudioSinkCapabilities::bMultiChannelObjects is false, multi-channel objects will be split into multiple mono objects
414Â /// \warning Call this function only after the sound engine has been properly initialized. If you are initializing the sound engine with AkInitSettings::bUseLEngineThread to false, it is required to call RenderAudio() at least once before calling this function to complete the sound engine initialization.
441Â AkPanningRule & out_ePanningRule, ///< Returned panning rule (AkPanningRule_Speakers or AkPanningRule_Headphone) for given output.
442Â AkOutputDeviceID in_idOutput = 0 ///< Output ID to set the bus on. As returned from AddOutput or GetOutputID. You can pass 0 for the main (default) output
447Â /// \warning This function posts a message through the sound engine's internal message queue, whereas GetPanningRule() queries the current panning rule directly.
449Â /// The specified panning rule will only impact the sound if the processing format is downmixing to Stereo in the mixing process. It
454Â AkOutputDeviceID in_idOutput = 0 ///< Output ID to set the bus on. As returned from AddOutput or GetOutputID. You can pass 0 for the main (default) output
457Â /// Gets speaker angles of the specified device. Speaker angles are used for 3D positioning of sounds over standard configurations.
459Â /// The speaker angles are expressed as an array of loudspeaker pairs, in degrees, relative to azimuth ]0,180].
460Â /// Supported loudspeaker setups are always symmetric; the center speaker is always in the middle and thus not specified by angles.
462Â /// You may call this function with io_pfSpeakerAngles set to NULL to get the expected number of angle values in io_uNumAngles,
473Â /// - When panning to stereo (speaker mode, see <tt>AK::SoundEngine::SetPanningRule()</tt>), only angle[0] is used, and 3D sounds in the back of the listener are mirrored to the front.
474Â /// - When panning to 5.1, the front speakers use angle[0], and the surround speakers use (angle[2] + angle[1]) / 2.
480Â AkReal32 * io_pfSpeakerAngles, ///< Returned array of loudspeaker pair angles, in degrees relative to azimuth [0,180]. Pass NULL to get the required size of the array.
481Â AkUInt32 & io_uNumAngles, ///< Returned number of angles in io_pfSpeakerAngles, which is the minimum between the value that you pass in, and the number of angles corresponding to AK::GetNumberOfAnglesForConfig( AK_SPEAKER_SETUP_DEFAULT_PLANE ), or just the latter if io_pfSpeakerAngles is NULL.
482Â AkReal32 & out_fHeightAngle, ///< Elevation of the height layer, in degrees relative to the plane [-90,90].
483Â AkOutputDeviceID in_idOutput = 0 ///< Output ID to set the bus on. As returned from AddOutput or GetOutputID. You can pass 0 for the main (default) output
486Â /// Sets speaker angles of the specified device. Speaker angles are used for 3D positioning of sounds over standard configurations.
488Â /// The speaker angles are expressed as an array of loudspeaker pairs, in degrees, relative to azimuth ]0,180], for a 7.1 speaker configuration.
489Â /// Supported loudspeaker setups are always symmetric; the center speaker is always in the middle and thus not specified by angles.
492Â /// - This function requires the minimum speaker angle between any pair of speakers to be at least 5 degrees.
493Â /// - When setting angles for a 5.1 speaker layout, we recommend that you select an angle for the SL and SR channels, then subtract 15 degrees for in_pfSpeakerAngles[1] and add 15 degrees for in_pfSpeakerAngles[2] to set the arc appropriately.
499Â /// This function posts a message to the audio thread through the command queue, so it is thread safe. However the result may not be immediately read with GetSpeakerAngles().
500Â /// \warning This function only applies to configurations (or subset of these configurations) that are standard and whose speakers are on the plane (2D).
505Â /// - \c AK_InvalidParameter one of the parameter is invalid, check the debug log. Speaker angles must be [0, 180] and height angle must be [-90, 90]. Height angle must not be 0, regardless if height channels are used.
508Â const AkReal32 * in_pfSpeakerAngles, ///< Array of loudspeaker pair angles, in degrees relative to azimuth ]0,180].
509Â AkUInt32 in_uNumAngles, ///< Number of elements in in_pfSpeakerAngles. It must correspond to AK::GetNumberOfAnglesForConfig( AK_SPEAKER_SETUP_DEFAULT_PLANE ) (the value returned by GetSpeakerAngles()).
510Â AkReal32 in_fHeightAngle = AK_DEFAULT_HEIGHT_ANGLE, ///< Elevation of the height layer, in degrees relative to the plane [-90,90], but it cannot be 0.
511Â AkOutputDeviceID in_idOutput = 0 ///< Output ID to set the bus on. As returned from AddOutput or GetOutputID. You can pass 0 for the main (default) output
514Â /// Allows the game to set the volume threshold to be used by the sound engine to determine if a voice must go virtual.
516Â /// If this function is not called, the used value will be the value specified in the platform specific project settings.
525Â /// Allows the game to set the maximum number of non virtual voices to be played simultaneously.
527Â /// If this function is not called, the used value will be the value specified in the platform specific project settings.
537Â /// This function may only be used if a worker function has been set via \ref AkJobMgrSettings.
539Â /// - \c AK_InvalidParameter in_jobType is not a valid jobtype, or in_uNewMaxActiveWorkers is not greater than 0
540Â /// - \c AK_NotInitialized JobMgr system was not already initialized with a function to request for workers
561Â bool in_bAllowSyncRender = true ///< When AkInitSettings::bUseLEngineThread is false, RenderAudio may generate an audio buffer -- unless in_bAllowSyncRender is set to false. Use in_bAllowSyncRender=false when calling RenderAudio from a Sound Engine callback.
577Â /// This function is deprecated. Registration is now automatic if you link plug-ins statically. If plug-ins are dynamic libraries (such as DLLs or SOs), use \c RegisterPluginDLL.
588Â /// Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
589Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
590Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
594Â AkUInt32 in_ulCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
595Â AkUInt32 in_ulPluginID, ///< Plug-in identifier (as declared in the plug-in description XML file)
597Â AkCreateParamCallback in_pCreateParamFunc, ///< Pointer to the plug-in's parameter node creation function
598Â AkGetDeviceListCallback in_pGetDeviceList = NULL ///< Optional pointer to the plug-in's device enumeration function. Specify for a sink plug-in to support \ref AK::SoundEngine::GetDeviceList.
603Â /// The plug-in DLL must be in the OS-specific library path or in the same location as the executable. If not, set AkInitSettings.szPluginDLLPath.
606Â /// - \c AK_FileNotFound if the DLL is not found in the OS path or if it has extraneous dependencies not found.
607Â /// - \c AK_InsufficientMemory if the system ran out of resources while loading the dynamic library
608Â /// - \c AK_NotCompatible if the file was found but is not binary-compatible with the system's expected executable format
613Â const AkOSChar* in_DllPath = NULL ///< Optional path to the DLL. Will override szPluginDLLPath that was set in AkInitSettings.
620Â AkUInt32 in_ulCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
621Â AkUInt32 in_ulPluginID ///< Plug-in identifier (as declared in the plug-in description XML file)
627Â /// This function is deprecated. Registration is now automatic if you link plugins statically. If plugins are dynamic libraries (such as DLLs or SOs), use RegisterPluginDLL.
637Â /// Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
638Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
639Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
642Â AkUInt32 in_ulCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
644Â AkCreateFileSourceCallback in_pFileCreateFunc, ///< Pointer to the codec's file source node creation function
645Â AkCreateBankSourceCallback in_pBankCreateFunc ///< Pointer to the codec's bank source node creation function
648Â /// Registers a global callback function. This function will be called from the audio rendering thread, at the
649Â /// location specified by in_eLocation. This function will also be called from the thread calling
651Â /// For example, in order to be called at every audio rendering pass, and once during teardown for releasing resources, you would call
652Â /// RegisterGlobalCallback(myCallback, AkGlobalCallbackLocation_BeginRender | AkGlobalCallbackLocation_Term, myCookie, AkPluginTypeNone, 0, 0);
654Â /// A Plugin Type, Company ID and Plugin ID can be provided to this function to enable timing in the performance monitor.
655Â /// If the callback is being timed, it will contribute to the Total Plug-in CPU measurement, and also appear in the Plug-ins tab of the Advanced Profiler by plug-in type and ID.
660Â /// - \c AK_InvalidParameter if parameters are out of range (check debug console or Wwise Profiler)
667Â AkUInt32 in_eLocation = AkGlobalCallbackLocation_BeginRender, ///< Callback location defined in AkGlobalCallbackLocation. Bitwise OR multiple locations if needed.
669Â AkPluginType in_eType = AkPluginTypeNone, ///< Plug-in type (for example, source or effect). AkPluginTypeNone for no timing.
670Â AkUInt32 in_ulCompanyID = 0, ///< Company identifier (as declared in the plug-in description XML file). 0 for no timing.
671Â AkUInt32 in_ulPluginID = 0 ///< Plug-in identifier (as declared in the plug-in description XML file). 0 for no timing.
674Â /// Unregisters a global callback function, previously registered using RegisterGlobalCallback.
676Â /// It is legal to call this function while already inside of a global callback, If it is unregistering itself and not
681Â /// - \c AK_InvalidParameter if parameters are out of range (check debug console or Wwise Profiler)
688Â AkUInt32 in_eLocation = AkGlobalCallbackLocation_BeginRender ///< Must match in_eLocation as passed to RegisterGlobalCallback for this callback.
691Â /// Registers a resource monitor callback function that gets all of the resource usage data contained in the
692Â /// AkResourceMonitorDataSummary structure. This includes general information about the system, such as CPU usage,
693Â /// active Voices, and Events. This function will be called from the audio rendering thread at the end of each frame.
695Â /// If the callback is being timed, it will contribute to the Total Plug-in CPU measurement, and also appear in the Plug-ins tab of the Advanced Profiler by plug-in type and ID.
703Â AkResourceMonitorCallbackFunc in_pCallback ///< Function to register as a resource monitor callback.
706Â /// Unregisters a resource monitor callback function, previously registered using RegisterResourceMonitorCallback.
708Â /// It is legal to call this function while already inside of a resource monitor callback, If it is unregistering itself and not
715Â AkResourceMonitorCallbackFunc in_pCallback ///< Function to unregister as a resource monitor callback.
726Â /// Unregisters the callback for the Audio Device status changes, registered by RegisterAudioDeviceStatusCallback
736Â /// This function will hash the name based on a algorithm ( provided at : /AK/Tools/Common/AkFNVHash.h )
739Â /// AkUniqueID, AkStateGroupID, AkStateID, AkSwitchGroupID, AkSwitchStateID, AkRtpcID, and so on...
755Â /// This function will hash the name based on a algorithm ( provided at : /AK/Tools/Common/AkFNVHash.h )
758Â /// AkUniqueID, AkStateGroupID, AkStateID, AkSwitchGroupID, AkSwitchStateID, AkRtpcID, and so on...
780Â /// The callback function can be used to be notified when markers are reached or when the event is finished (see \ref AkCallbackType).
781Â /// An array of wave file sources can be provided to resolve External Sources triggered by the event.
782Â /// \return The playing ID of the event launched, or AK_INVALID_PLAYING_ID if posting the event failed and an error will be displayed in the debug console and the Wwise Profiler.
784Â /// If used, the array of external sources should contain the information for each external source triggered by the
785Â /// event. When triggering an event with multiple external sources, you need to differentiate each source
786Â /// by using the cookie property in the External Source in the Wwise project and in AkExternalSourceInfo.
787Â /// \aknote If an event triggers the playback of more than one external source, they must be named uniquely in the project
788Â /// (therefore have a unique cookie) in order to tell them apart when filling the AkExternalSourceInfo structures.
791Â /// If Wwise Authoring is connected to the game and "Profile And Edit (Sync All)" is used, the required Event doesn't have to be loaded before this function is called.
792Â /// If the Event is missing, it will be requested from Wwise Authoring directly, which might cause additional latency.
805Â void * in_pCookie = NULL, ///< Callback cookie that will be sent to the callback function along with additional information
807Â AkExternalSourceInfo *in_pExternalSources = NULL,///< Optional array of external source resolution information
808Â AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID///< Optional (advanced users only) Specify the playing ID to target with the event. Will Cause active actions in this event to target an existing Playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any for normal playback.
814Â /// The callback function can be used to be notified when markers are reached or when the event is finished (see \ref AkCallbackType).
815Â /// An array of wave file sources can be provided to resolve External Sources triggered by the event.
816Â /// \return The playing ID of the event launched, or AK_INVALID_PLAYING_ID if posting the event failed and an error will be displayed in the debug console and the Wwise Profiler.
818Â /// If used, the array of external sources should contain the information for each external source triggered by the
819Â /// event. When triggering an event with multiple external sources, you need to differentiate each source
820Â /// by using the cookie property in the External Source in the Wwise project and in AkExternalSourceInfo.
821Â /// \aknote If an event triggers the playback of more than one external source, they must be named uniquely in the project
822Â /// (therefore have a unique cookie) in order to tell them apart when filling the AkExternalSourceInfo structures.
825Â /// If Wwise Authoring is connected to the game and "Profile And Edit (Sync All)" is used, the required Event doesn't have to be loaded before this function is called.
826Â /// If the Event is missing, it will be requested from Wwise Authoring directly, which might cause additional latency.
839Â void * in_pCookie = NULL, ///< Callback cookie that will be sent to the callback function along with additional information.
841Â AkExternalSourceInfo *in_pExternalSources = NULL,///< Optional array of external source resolution information
842Â AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID///< Optional (advanced users only) Specify the playing ID to target with the event. Will Cause active actions in this event to target an existing Playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any for normal playback.
848Â /// The callback function can be used to be notified when markers are reached or when the event is finished (see \ref AkCallbackType).
849Â /// An array of wave file sources can be provided to resolve External Sources triggered by the event.
850Â /// \return The playing ID of the event launched, or AK_INVALID_PLAYING_ID if posting the event failed and an error will be displayed in the debug console and the Wwise Profiler.
852Â /// If used, the array of external sources should contain the information for each external source triggered by the
853Â /// event. When triggering an event with multiple external sources, you need to differentiate each source
854Â /// by using the cookie property in the External Source in the Wwise project and in AkExternalSourceInfo.
855Â /// \aknote If an event triggers the playback of more than one external source, they must be named uniquely in the project
856Â /// (therefore have a unique cookie) in order to tell them apart when filling the AkExternalSourceInfo structures.
859Â /// If Wwise Authoring is connected to the game and "Profile And Edit (Sync All)" is used, the required Event doesn't have to be loaded before this function is called.
860Â /// If the Event is missing, it will be requested from Wwise Authoring directly, which might cause additional latency.
873Â void * in_pCookie = NULL, ///< Callback cookie that will be sent to the callback function along with additional information.
875Â AkExternalSourceInfo *in_pExternalSources = NULL,///< Optional array of external source resolution information
876Â AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID///< Optional (advanced users only) Specify the playing ID to target with the event. Will Cause active actions in this event to target an existing Playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any for normal playback.
879Â // If you modify AkActionOnEventType, don't forget to modify the WAAPI validation schema accordingly.
892Â };
894Â /// Executes an action on all nodes that are referenced in the specified event in an action of type play.
902Â AkActionOnEventType in_ActionType, ///< Action to execute on all the elements that were played using the specified event.
905Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the transition
910Â /// Executes an action on all nodes that are referenced in the specified event in an action of type play.
918Â AkActionOnEventType in_ActionType, ///< Action to execute on all the elements that were played using the specified event.
921Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the transition
926Â /// Executes an Action on all nodes that are referenced in the specified Event in an Action of type Play.
934Â AkActionOnEventType in_ActionType, ///< Action to execute on all the elements that were played using the specified event.
937Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the transition
942Â /// Executes a number of MIDI Events on all nodes that are referenced in the specified Event in an Action of type Play.
943Â /// The time at which a MIDI Event is posted is determined by in_bAbsoluteOffsets. If false, each MIDI event will be
944Â /// posted in AkMIDIPost::uOffset samples from the start of the current frame. If true, each MIDI event will be posted
947Â /// The duration of a sample can be determined from the sound engine's audio settings, via a call to AK::SoundEngine::GetAudioSettings.
948Â /// If a playing ID is specified then that playing ID must be active. Otherwise a new playing ID will be assigned.
949Â /// \return The playing ID of the event launched, or AK_INVALID_PLAYING_ID if posting the event failed and an error will be displayed in the debug console and the Wwise Profiler.
960Â bool in_bAbsoluteOffsets = false, ///< Set to true when AkMIDIPost::uOffset are absolute, false when relative to current frame
963Â void * in_pCookie = NULL, ///< Callback cookie that will be sent to the callback function along with additional information
967Â /// Stops MIDI notes on all nodes that are referenced in the specified event in an action of type play,
968Â /// with the specified Game Object. Invalid parameters are interpreted as wildcards. For example, calling
969Â /// this function with in_eventID set to AK_INVALID_UNIQUE_ID will stop all MIDI notes for Game Object
984Â /// Starts streaming the first part of all streamed files referenced by an Event into a cache buffer. Caching streams are serviced when no other streams require the
985Â /// available bandwidth. The files will remain cached until UnpinEventInStreamCache is called, or a higher priority pinned file needs the space and the limit set by
987Â /// \remarks The amount of data from the start of the file that will be pinned to cache is determined by the prefetch size. The prefetch size is set via the authoring tool and stored in the sound banks.
988Â /// \remarks It is possible to override the prefetch size stored in the sound bank via the low level IO. For more information see <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt> and AkFileSystemFlags.
989Â /// \remarks If this function is called additional times with the same event, then the priority of the caching streams are updated. Note however that priority is passed down to the stream manager
990Â /// on a file-by-file basis, and if another event is pinned to cache that references the same file but with a different priority, then the first priority will be updated with the most recent value.
991Â /// \remarks If the event references files that are chosen based on a State Group (via a switch container), all files in all states will be cached. Those in the current active state
992Â /// will get cached with active priority, while all other files will get cached with inactive priority.
993Â /// \remarks in_uInactivePriority is only relevant for events that reference switch containers that are assigned to State Groups. This parameter is ignored for all other events, including events that only reference
994Â /// switch containers that are assigned to Switch Groups. Files that are chosen based on a Switch Group have a different switch value per game object, and are all effectively considered active by the pin-to-cache system.
1010Â /// Starts streaming the first part of all streamed files referenced by an event into a cache buffer. Caching streams are serviced when no other streams require the
1011Â /// available bandwidth. The files will remain cached until UnpinEventInStreamCache is called, or a higher priority pinned file needs the space and the limit set by
1013Â /// \remarks The amount of data from the start of the file that will be pinned to cache is determined by the prefetch size. The prefetch size is set via the authoring tool and stored in the sound banks.
1014Â /// \remarks It is possible to override the prefetch size stored in the sound bank via the low level IO. For more information see <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt> and AkFileSystemFlags.
1015Â /// \remarks If this function is called additional times with the same event, then the priority of the caching streams are updated. Note however that priority is passed down to the stream manager
1016Â /// on a file-by-file basis, and if another event is pinned to cache that references the same file but with a different priority, then the first priority will be updated with the most recent value.
1017Â /// \remarks If the event references files that are chosen based on a State Group (via a Switch Container), all files in all states will be cached. Those in the current active state
1018Â /// will get cached with active priority, while all other files will get cached with inactive priority.
1019Â /// \remarks in_uInactivePriority is only relevant for events that reference switch containers that are assigned to State Groups. This parameter is ignored for all other events, including events that only reference
1020Â /// switch containers that are assigned to Switch Groups. Files that are chosen based on a Switch Group have a different switch value per game object, and are all effectively considered active by the pin-to-cache system.
1036Â /// Starts streaming the first part of all streamed files referenced by an event into a cache buffer. Caching streams are serviced when no other streams require the
1037Â /// available bandwidth. The files will remain cached until UnpinEventInStreamCache is called, or a higher priority pinned file needs the space and the limit set by
1039Â /// \remarks The amount of data from the start of the file that will be pinned to cache is determined by the prefetch size. The prefetch size is set via the authoring tool and stored in the sound banks.
1040Â /// \remarks It is possible to override the prefetch size stored in the sound bank via the low level IO. For more information see <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt> and AkFileSystemFlags.
1041Â /// \remarks If this function is called additional times with the same event, then the priority of the caching streams are updated. Note however that priority is passed down to the stream manager
1042Â /// on a file-by-file basis, and if another event is pinned to cache that references the same file but with a different priority, then the first priority will be updated with the most recent value.
1043Â /// \remarks If the event references files that are chosen based on a State Group (via a switch container), all files in all states will be cached. Those in the current active state
1044Â /// will get cached with active priority, while all other files will get cached with inactive priority.
1045Â /// \remarks in_uInactivePriority is only relevant for events that reference switch containers that are assigned to State Groups. This parameter is ignored for all other events, including events that only reference
1046Â /// switch containers that are assigned to Switch Groups. Files that are chosen based on a Switch Group have a different switch value per game object, and are all effectively considered active by the pin-to-cache system.
1061Â /// Releases the set of files that were previously requested to be pinned into cache via <tt>AK::SoundEngine::PinEventInStreamCache()</tt>. The file may still remain in stream cache
1062Â /// after <tt>AK::SoundEngine::UnpinEventInStreamCache()</tt> is called, until the memory is reused by the streaming memory manager in accordance with to its cache management algorithm.
1074Â /// Releases the set of files that were previously requested to be pinned into cache via <tt>AK::SoundEngine::PinEventInStreamCache()</tt>. The file may still remain in stream cache
1075Â /// after <tt>AK::SoundEngine::UnpinEventInStreamCache()</tt> is called, until the memory is reused by the streaming memory manager in accordance with to its cache management algorithm.
1087Â /// Releases the set of files that were previously requested to be pinned into cache via <tt>AK::SoundEngine::PinEventInStreamCache()</tt>. The file may still remain in stream cache
1088Â /// after <tt>AK::SoundEngine::UnpinEventInStreamCache()</tt> is called, until the memory is reused by the streaming memory manager in accordance with to its cache management algorithm.
1099Â /// Returns information about an Event that was requested to be pinned into cache via <tt>AK::SoundEngine::PinEventInStreamCache()</tt>.
1100Â /// Retrieves the smallest buffer fill-percentage for each file referenced by the event, and whether
1101Â /// the cache-pinned memory limit is preventing any of the files from filling up their buffer.
1102Â /// \remarks To set the limit for the maximum number of bytes that can be pinned to cache, see \c AkDeviceSettings
1112Â AkReal32& out_fPercentBuffered, ///< Fill-percentage (out of 100) of requested buffer size for least buffered file in the event.
1113Â bool& out_bCachePinnedMemoryFull ///< True if at least one file can not complete buffering because the cache-pinned memory limit would be exceeded.
1116Â /// Returns information about an Event that was requested to be pinned into cache via \c <tt>AK::SoundEngine::PinEventInStreamCache()</tt>.
1117Â /// Retrieves the smallest buffer fill-percentage for each file referenced by the event, and whether
1118Â /// the cache-pinned memory limit is preventing any of the files from filling up their buffer.
1119Â /// \remarks To set the limit for the maximum number of bytes that can be pinned to cache, see AkDeviceSettings
1129Â AkReal32& out_fPercentBuffered, ///< Fill-percentage (out of 100) of requested buffer size for least buffered file in the event.
1130Â bool& out_bCachePinnedMemoryFull ///< True if at least one file can not complete buffering because the cache-pinned memory limit would be exceeded.
1134Â /// Returns information about an Event that was requested to be pinned into cache via \c <tt>AK::SoundEngine::PinEventInStreamCache()</tt>.
1135Â /// Retrieves the smallest buffer fill-percentage for each file referenced by the event, and whether
1136Â /// the cache-pinned memory limit is preventing any of the files from filling up their buffer.
1137Â /// \remarks To set the limit for the maximum number of bytes that can be pinned to cache, see AkDeviceSettings
1147Â AkReal32& out_fPercentBuffered, ///< Fill-percentage (out of 100) of requested buffer size for least buffered file in the event.
1148Â bool& out_bCachePinnedMemoryFull ///< True if at least one file can not complete buffering because the cache-pinned memory limit would be exceeded.
1152Â /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1155Â /// - This works with all objects of the actor-mixer hierarchy, and also with Music Segments and Music Switch Containers.
1156Â /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1157Â /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1158Â /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1163Â /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1164Â /// With objects of the actor-mixer hierarchy, markers are embedded in wave files by an external wave editor.
1165Â /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1166Â /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1167Â /// to nearest marker. In the case of objects of the interactive music hierarchy, user (wave) markers are ignored:
1168Â /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1169Â /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1173Â /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1175Â /// - Music segments cannot be looped. You may want to listen to the AK_EndOfEvent notification
1177Â /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1179Â /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1180Â /// value that was passed to the method. Use <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt> to query
1182Â /// (so that it restarts precisely at the position that you specified). <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt>
1187Â /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1188Â /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1189Â /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1190Â /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1202Â AkGameObjectID in_gameObjectID, ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1204Â bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1205Â AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID ///< Specify the playing ID for the seek to be applied to. Will result in the seek happening only on active actions of the playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any, to seek on all active actions of this event ID.
1209Â /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1212Â /// - This works with all objects of the actor-mixer hierarchy, and also with Music Segments and Music Switch Containers.
1213Â /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1214Â /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1215Â /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1218Â /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1222Â /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1223Â /// With objects of the actor-mixer hierarchy, markers are embedded in wave files by an external wave editor.
1224Â /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1225Â /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1226Â /// to nearest marker. In the case of objects of the interactive music hierarchy, user (wave) markers are ignored:
1227Â /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1228Â /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1232Â /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1234Â /// - Music segments cannot be looped. You may want to listen to the AK_EndOfEvent notification
1236Â /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1238Â /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1239Â /// value that was passed to the method. Use <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt> to query
1241Â /// (so that it restarts precisely at the position that you specified). <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt>
1246Â /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1247Â /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1248Â /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1249Â /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1260Â AkGameObjectID in_gameObjectID, ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1262Â bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1263Â AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID ///< Specify the playing ID for the seek to be applied to. Will result in the seek happening only on active actions of the playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any, to seek on all active actions of this event ID.
1267Â /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1270Â /// - This works with all objects of the actor-mixer hierarchy, and also with Music Segments and Music Switch Containers.
1271Â /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1272Â /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1273Â /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1276Â /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1280Â /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1281Â /// With objects of the actor-mixer hierarchy, markers are embedded in wave files by an external wave editor.
1282Â /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1283Â /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1284Â /// to nearest marker. In the case of objects of the interactive music hierarchy, user (wave) markers are ignored:
1285Â /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1286Â /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1290Â /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1292Â /// - Music segments cannot be looped. You may want to listen to the AK_EndOfEvent notification
1294Â /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1296Â /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1297Â /// value that was passed to the method. Use <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt> to query
1299Â /// (so that it restarts precisely at the position that you specified). <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt>
1304Â /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1305Â /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1306Â /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1307Â /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1319Â AkGameObjectID in_gameObjectID, ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1321Â bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1322Â AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID ///< Specify the playing ID for the seek to be applied to. Will result in the seek happening only on active actions of the playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any, to seek on all active actions of this event ID.
1325Â /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1326Â /// Seek position is specified as a percentage of the sound's total duration, and takes looping into account.
1329Â /// - This works with all objects of the actor-mixer hierarchy, and also with Music Segments and Music Switch Containers.
1330Â /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1331Â /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1332Â /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1336Â /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1337Â /// With objects of the actor-mixer hierarchy, markers are embedded in wave files by an external wave editor.
1338Â /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1339Â /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1340Â /// to nearest marker. In the case of objects of the interactive music hierarchy, user (wave) markers are ignored:
1341Â /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1342Â /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1346Â /// - With Music Segments, \c in_fPercent is relative to the Entry Cue, and the segment's duration is the
1347Â /// duration between its entry and exit cues. Consequently, you cannot seek within the pre-entry or
1349Â /// - Music Segments cannot be looped. You may want to listen to the \c AK_EndOfEvent notification
1351Â /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1353Â /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1354Â /// value that was passed to the method. Use <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt> to query
1355Â /// the exact position of a segment. Also, the segment will be silent during the time that period
1356Â /// (so that it restarts precisely at the position that you specified). <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt>
1361Â /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1362Â /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1363Â /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1364Â /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1373Â AkGameObjectID in_gameObjectID , ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1374Â AkReal32 in_fPercent, ///< Desired position where playback should restart, expressed in a percentage of the file's total duration, between 0 and 1.f (see note above about infinite looping sounds)
1375Â bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1376Â AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID ///< Specify the playing ID for the seek to be applied to. Will result in the seek happening only on active actions of the playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any, to seek on all active actions of this event ID.
1380Â /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1381Â /// Seek position is specified as a percentage of the sound's total duration, and takes looping into account.
1384Â /// - This works with all objects of the actor-mixer hierarchy, and also with Music Segments and Music Switch Containers.
1385Â /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1386Â /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1387Â /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1390Â /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1391Â /// With objects of the actor-mixer hierarchy, markers are embedded in wave files by an external wave editor.
1392Â /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1393Â /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1394Â /// to nearest marker. In the case of objects of the interactive music hierarchy, user (wave) markers are ignored:
1395Â /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1396Â /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1400Â /// - With Music Segments, \c in_fPercent is relative to the Entry Cue, and the segment's duration is the
1401Â /// duration between its entry and exit cues. Consequently, you cannot seek within the pre-entry or
1403Â /// - Music Segments cannot be looped. You may want to listen to the \c AK_EndOfEvent notification
1405Â /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1407Â /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1408Â /// value that was passed to the method. Use <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt> to query
1409Â /// the exact position of a segment. Also, the segment will be silent during the time that period
1410Â /// (so that it restarts precisely at the position that you specified). <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt>
1415Â /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1416Â /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1417Â /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1418Â /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1427Â AkGameObjectID in_gameObjectID , ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1428Â AkReal32 in_fPercent , ///< Desired position where playback should restart, expressed in a percentage of the file's total duration, between 0 and 1.f (see note above about infinite looping sounds)
1429Â bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1430Â AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID ///< Specify the playing ID for the seek to be applied to. Will result in the seek happening only on active actions of the playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any, to seek on all active actions of this event ID.
1434Â /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1435Â /// Seek position is specified as a percentage of the sound's total duration, and takes looping into account.
1438Â /// - This works with all objects of the actor-mixer hierarchy, and also with Music Segments and Music Switch Containers.
1439Â /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1440Â /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1441Â /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1444Â /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1445Â /// With objects of the actor-mixer hierarchy, markers are embedded in wave files by an external wave editor.
1446Â /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1447Â /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1448Â /// to nearest marker. In the case of objects of the interactive music hierarchy, user (wave) markers are ignored:
1449Â /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1450Â /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1454Â /// - With Music Segments, in_fPercent is relative to the Entry Cue, and the segment's duration is the
1455Â /// duration between its entry and exit cues. Consequently, you cannot seek within the pre-entry or
1457Â /// - Music segments cannot be looped. You may want to listen to the AK_EndOfEvent notification
1459Â /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1461Â /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1462Â /// value that was passed to the method. Use <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt> to query
1463Â /// the exact position of a segment. Also, the segment will be silent during the time that period
1464Â /// (so that it restarts precisely at the position that you specified). <tt>AK::MusicEngine::GetPlayingSegmentInfo()</tt>
1469Â /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1470Â /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1471Â /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1472Â /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1481Â AkGameObjectID in_gameObjectID, ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1482Â AkReal32 in_fPercent, ///< Desired position where playback should restart, expressed in a percentage of the file's total duration, between 0 and 1.f (see note above about infinite looping sounds)
1483Â bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see notes above).
1484Â AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID ///< Specify the playing ID for the seek to be applied to. Will result in the seek happening only on active actions of the playing ID. Let it be AK_INVALID_PLAYING_ID or do not specify any, to seek on all active actions of this event ID.
1508Â /// Gets the current position of the source associated with this playing ID, obtained from PostEvent(). If more than one source is playing,
1511Â /// - You need to pass AK_EnableGetSourcePlayPosition to PostEvent() in order to use this function, otherwise
1513Â /// - The source's position is updated at every audio frame, and the time at which this occurs is stored.
1514Â /// When you call this function from your thread, you therefore query the position that was updated in the previous audio frame.
1515Â /// If in_bExtrapolate is true (default), the returned position is extrapolated using the elapsed time since last
1520Â /// - \c AK_PlayingIDNotFound if the playing ID is invalid (not playing yet, or finished playing).
1526Â AkTimeMs* out_puPosition, ///< Position of the source (in ms) associated with the specified playing ID
1527Â bool in_bExtrapolate = true ///< Position is extrapolated based on time elapsed since last sound engine update.
1530Â /// Gets the current position of the sources associated with this playing ID, obtained from PostEvent().
1532Â /// - You need to pass AK_EnableGetSourcePlayPosition to PostEvent() in order to use this function, otherwise
1534Â /// - The source's position is updated at every audio frame, and the time at which this occurs is stored.
1535Â /// When you call this function from your thread, you therefore query the position that was updated in the previous audio frame.
1536Â /// If in_bExtrapolate is true (default), the returned position is extrapolated using the elapsed time since last
1538Â /// - If 0 is passed in for the number of entries (*in_pcPositions == 0) then only the number of positions will be returned and the
1545Â /// - \c AK_PlayingIDNotFound if the playing ID is invalid (not playing yet, or finished playing).
1551Â AkSourcePosition* out_puPositions, ///< Audio Node IDs and positions of sources associated with the specified playing ID
1552Â AkUInt32 * io_pcPositions, ///< Number of entries in out_puPositions. Needs to be set to the size of the array: it is adjusted to the actual number of returned entries
1553Â bool in_bExtrapolate = true ///< Position is extrapolated based on time elapsed since last sound engine update
1556Â /// Gets the stream buffering of the sources associated with this playing ID, obtained from PostEvent().
1558Â /// - You need to pass AK_EnableGetSourceStreamBuffering to PostEvent() in order to use this function, otherwise
1560Â /// - The sources stream buffering is updated at every audio frame. If there are multiple sources associated with this playing ID,
1562Â /// - The returned buffering status out_bIsBuffering will be true If any of the sources associated with the playing ID are actively being buffered.
1563Â /// It will be false if all of them have reached the end of file, or have reached a state where they are buffered enough and streaming is temporarily idle.
1564Â /// - Purely in-memory sources are excluded from this database. If all sources are in-memory, GetSourceStreamBuffering() will return AK_PlayingIDNotFound.
1565Â /// - The returned buffering amount and state is not completely accurate with some hardware-accelerated codecs. In such cases, the amount of stream buffering is generally underestimated.
1566Â /// On the other hand, it is not guaranteed that the source will be ready to produce data at the next audio frame even if out_bIsBuffering has turned to false.
1569Â /// - \c AK_PlayingIDNotFound if the source data associated with this playing ID is not found, for example if PostEvent() was not called with AK_EnableGetSourceStreamBuffering, or if the header was not parsed.
1574Â AkTimeMs & out_buffering, ///< Returned amount of buffering (in ms) of the source (or one of the sources) associated with that playing ID
1575Â bool & out_bIsBuffering ///< Returned buffering status of the source(s) associated with that playing ID
1581Â AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT ///< (Optional)Specify a game object to stop only playback associated to the provided game object ID.
1593Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear ///< Curve type to be used for the transition
1603Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear ///< Curve type to be used for the transition
1620Â /// This function is provided to give the same behavior on platforms that don't have user-music support.
1633Â /// Sends custom game data to a plug-in that resides on a bus (insert Effect or mixer plug-in).
1637Â /// \aknote The plug-in type and ID are passed and matched with plugins set on the desired bus.
1638Â /// This means that you cannot send different data to various instances of a plug-in on the same bus.\endaknote
1642Â AkGameObjectID in_busObjectID, ///< Bus Object ID. Pass AK_INVALID_GAME_OBJECT to send custom data with global scope. Game object scope supersedes global scope, as with RTPCs.
1644Â AkUInt32 in_uCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
1645Â AkUInt32 in_uPluginID, ///< Plug-in identifier (as declared in the plug-in description XML file)
1658Â /// - \c AK_InvalidParameter if the specified AkGameObjectID is invalid. Range 0xFFFFFFFFFFFFFFE0 (-32) to 0xFFFFFFFFFFFFFFFF (-1) are invalid inclusively.
1659Â /// \remark Registering a game object twice does nothing. Unregistering it once unregisters it no
1666Â AkGameObjectID in_gameObjectID ///< ID of the game object to be registered. Valid range is [0 to 0xFFFFFFFFFFFFFFDF].
1672Â /// - \c AK_InvalidParameter if the specified AkGameObjectID is invalid. Range 0xFFFFFFFFFFFFFFE0 (-32) to 0xFFFFFFFFFFFFFFFF (-1) are invalid inclusively.
1673Â /// \remark Registering a game object twice does nothing. Unregistering it once unregisters it no
1680Â AkGameObjectID in_gameObjectID, ///< ID of the game object to be registered. Valid range is [0 to 0xFFFFFFFFFFFFFFDF].
1687Â /// - \c AK_InvalidParameter if the specified AkGameObjectID is invalid. Range 0xFFFFFFFFFFFFFFE0 (-32) to 0xFFFFFFFFFFFFFFFF (-1) are invalid inclusively.
1688Â /// \remark Registering a game object twice does nothing. Unregistering it once unregisters it no
1691Â /// For example, say a sound associated with this game object is a 3D moving sound. This sound will
1692Â /// stop moving when the game object is unregistered, and there will be no way to regain control over the game object.
1698Â AkGameObjectID in_gameObjectID ///< ID of the game object to be unregistered. Valid range is [0 to 0xFFFFFFFFFFFFFFDF]. Use
1702Â /// Unregister all game objects, or all game objects with a particular matching set of property flags.
1706Â /// \remark Registering a game object twice does nothing. Unregistering it once unregisters it no
1731Â const AkSoundPosition & in_Position,///< Position to set; in_Position.Orientation must be normalized.
1732Â AkSetPositionFlags in_eFlags = AkSetPositionFlags_Default ///< Optional flags to independently set the position of the emitter or listener component.
1736Â /// Setting multiple positions on a single game object is a way to simulate multiple emission sources while using the resources of only one voice.
1737Â /// This can be used to simulate wall openings, area sounds, or multiple objects emitting the same sound in the same area.
1739Â /// - Calling <tt>AK::SoundEngine::SetMultiplePositions()</tt> with only one position is the same as calling <tt>AK::SoundEngine::SetPosition()</tt>
1740Â /// - If a sound has diffraction enabled, it is treated as <tt>MultiPositionType_MultiDirections</tt>. <tt>MultiPositionType_MultiSources</tt> is not supported in this case.
1744Â /// - \c AK_CommandTooLarge if the number of positions is too large for the command queue. Reduce the number of positions.
1757Â MultiPositionType in_eMultiPositionType = MultiPositionType_MultiDirections, ///< \ref AK::SoundEngine::MultiPositionType
1758Â AkSetPositionFlags in_eFlags = AkSetPositionFlags_Default ///< Optional flags to independently set the position of the emitter or listener component.
1761Â /// Sets multiple positions to a single game object, with flexible assignment of input channels.
1762Â /// Setting multiple positions on a single game object is a way to simulate multiple emission sources while using the resources of only one voice.
1763Â /// This can be used to simulate wall openings, area sounds, or multiple objects emitting the same sound in the same area.
1764Â /// \aknote Calling <tt>AK::SoundEngine::SetMultiplePositions()</tt> with only one position is the same as calling <tt>AK::SoundEngine::SetPosition()</tt> \endaknote
1767Â /// - \c AK_CommandTooLarge if the number of positions is too large for the command queue. Reduce the number of positions.
1775Â const AkChannelEmitter * in_pPositions, ///< Array of positions to apply, each using its own channel mask.
1777Â MultiPositionType in_eMultiPositionType = MultiPositionType_MultiDirections, ///< \ref AK::SoundEngine::MultiPositionType
1778Â AkSetPositionFlags in_eFlags = AkSetPositionFlags_Default ///< Optional flags to independently set the position of the emitter or listener component.
1782Â /// Modify the attenuation computations on this Game Object to simulate sounds with a larger or smaller area of effect.
1789Â AkReal32 in_fAttenuationScalingFactor ///< Scaling Factor, 1 means 100%, 0.5 means 50%, 2 means 200%, and so on.
1792Â /// Use the position of a separate game object for distance calculations for a specified listener.
1793Â /// When <tt>AK::SoundEngine::SetDistanceProbe()</tt> is called, Wwise calculates distance attenuation and filtering
1794Â /// based on the distance between the distance probe Game Object (\c in_distanceProbeGameObjectID) and the emitter Game Object's position.
1795Â /// In third-person perspective applications, the distance probe Game Object may be set to the player character's position,
1796Â /// and the listener Game Object's position to that of the camera. In this scenario, attenuation is based on
1797Â /// the distance between the character and the sound, whereas panning, spatialization, and spread and focus calculations are base on the camera.
1798Â /// Both Game Objects, \c in_listenerGameObjectID and \c in_distanceProbeGameObjectID must have been previously registered using <tt>AK::SoundEngine::RegisterGameObj</tt>.
1799Â /// This function is optional. if <tt>AK::SoundEngine::SetDistanceProbe()</tt> is never called, distance calculations are based on the listener Game Object position.
1800Â /// To clear the distance probe, and revert to using the listener position for distance calculations, pass \c AK_INVALID_GAME_OBJECT to \c in_distanceProbeGameObjectID.
1801Â /// \aknote If the distance probe Game Object is assigned multiple positions, then the first position is used for distance calculations by the listener. \endaknote
1807Â AkGameObjectID in_listenerGameObjectID, ///< Game object identifier for the listener. Must have been previously registered via RegisterGameObj.
1808Â AkGameObjectID in_distanceProbeGameObjectID ///< Game object identifier for the distance probe, or \c AK_INVALID_GAME_OBJECT to reset distance probe. If valid, must have been previously registered via RegisterGameObj.
1818Â /// It also internally calls ClearPreparedEvents() since at least one bank must have been loaded to allow preparing events.
1821Â /// - \c AK_NotInitialized if the sound engine was not correctly initialized or if there is not enough memory to handle the command
1839Â AkReal32 in_fThroughput, ///< Average throughput of bank data streaming (bytes/ms) (the default value is AK_DEFAULT_BANK_THROUGHPUT)
1840Â AkPriority in_priority ///< Priority of bank streaming (the default value is AK_DEFAULT_PRIORITY)
1856Â /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that you used to generate the SoundBanks matches that of the SDK you are currently using.
1862Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure, check the debug console)
1870Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
1871Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
1872Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
1874Â /// - The sound engine internally calls GetIDFromString(in_pszString) to return the correct bank ID.
1875Â /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
1876Â /// not the name of the file (if you changed it), nor the full path of the file. The path should be resolved in
1877Â /// your implementation of the Stream Manager, or in the Low-Level I/O module if you use the default Stream Manager's implementation.
1879Â /// When Wwise Authoring is connected to the game in "Profile And Edit (Sync All)" mode, LoadBank will return AK_Success even if the file is not found.
1880Â /// The Capture Log will still report the missing file. For example, this will be the case when SoundBanks were not generated.
1881Â /// If this option is selected, you can work without SoundBanks as long as Wwise Authoring is connected.
1918Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
1926Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
1927Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
1928Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
1930Â /// - The sound engine internally calls GetIDFromString(in_pszString) to return the correct bank ID.
1931Â /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
1932Â /// not the name of the file (if you changed it), nor the full path of the file. The path should be resolved in
1933Â /// your implementation of the Stream Manager, or in the Low-Level I/O module if you use the default Stream Manager's implementation.
1935Â /// When Wwise Authoring is connected to the game in "Profile And Edit (Sync All)" mode, LoadBank will return AK_Success even if the file is not found.
1936Â /// The Capture Log will still report the missing file. For example, this will be the case when SoundBanks were not generated.
1937Â /// If this option is selected, you can work without SoundBanks as long as Wwise Authoring is connected.
1956Â /// \aknote Requires that the "Use SoundBank names" option be unchecked in the Wwise Project Settings. \endaknote
1965Â /// - \c AK_BankReadError: I/O error. The bank is either shorter than expected or its data corrupted.
1970Â /// - \c AK_InvalidParameter if some parameters are invalid, check the debug console or Wwise Profiler
1974Â /// - \c AK_Fail: Load or unload failed for any other reason. , check the debug console or Wwise Profiler
1982Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
1983Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
1984Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
1987Â /// When Wwise Authoring is connected to the game in "Profile And Edit (Sync All)" mode, LoadBank will return AK_Success even if the file is not found.
1988Â /// The Capture Log will still report the missing file. For example, this will be the case when SoundBanks were not generated.
1989Â /// If this option is selected, you can work without SoundBanks as long as Wwise Authoring is connected.
2005Â /// IMPORTANT: Banks loaded from memory with in-place data MUST be unloaded using the UnloadBank function
2006Â /// providing the same memory pointer. Make sure you are using the correct UnloadBank(...) overload
2010Â /// In-memory loading is in-place: *** the memory must be valid until the bank is unloaded. ***
2027Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2035Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2036Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2037Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2039Â /// - The memory must be aligned on platform-specific AK_BANK_PLATFORM_DATA_ALIGNMENT bytes (see AkTypes.h).
2040Â /// - Avoid using this function for banks containing a lot of events or structure data: this data will be unpacked into the sound engine heap,
2041Â /// making the supplied bank memory redundant. For event/structure-only banks, prefer LoadBankMemoryCopy().
2049Â const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is stored in sound engine, memory must remain valid)
2056Â /// IMPORTANT: Banks loaded from memory with in-place data MUST be unloaded using the UnloadBank function
2057Â /// providing the same memory pointer. Make sure you are using the correct UnloadBank(...) overload
2061Â /// In-memory loading is in-place: *** the memory must be valid until the bank is unloaded. ***
2077Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2085Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2086Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2087Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2089Â /// - The memory must be aligned on platform-specific AK_BANK_PLATFORM_DATA_ALIGNMENT bytes (see AkTypes.h).
2090Â /// - Avoid using this function for banks containing a lot of events or structure data: this data will be unpacked into the sound engine heap,
2091Â /// making the supplied bank memory redundant. For event/structure-only banks, prefer LoadBankMemoryCopy().
2099Â const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is stored in sound engine, memory must remain valid)
2107Â /// NOTE: Banks loaded from in-memory with out-of-place data must be unloaded using the standard UnloadBank function
2111Â /// in a buffer and pass its address to the sound engine, the media section of the bank will be copied into newly
2113Â /// In-memory loading is out-of-place: the buffer can be release as soon as the function returns. The advantage of using this
2131Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2139Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2140Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2141Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2150Â const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is not stored in sound engine, memory can be released after return)
2157Â /// NOTE: Banks loaded from in-memory with out-of-place data must be unloaded using the standard UnloadBank function
2161Â /// in a buffer and pass its address to the sound engine, the media section of the bank will be copied into newly
2163Â /// In-memory loading is out-of-place: the buffer can be release as soon as the function returns. The advantage of using this
2180Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2188Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2189Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2190Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2199Â const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is not stored in sound engine, memory can be released after return)
2205Â /// Synchronously decodes Vorbis-encoded and Opus-encoded (Software version) media in a SoundBank. The file should already be read in memory before the decode operation. The out_pDecodedBankPtr can then be used with variants of LoadBank that load from in-memory data.
2207Â /// CPU usage, RAM size, storage size and Internet bandwidth must be accounted for when developing a game, especially when it is aimed at mobile platforms. The DecodeBank function makes it possible to decode media at load time instead of decoding them every time they are played.
2209Â const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to decode (pointer is not stored in sound engine, memory can be released after return)
2211Â AkMemPoolId in_uPoolForDecodedBank, ///< Memory pool to allocate decoded bank into. Specify AK_INVALID_POOL_ID and out_pDecodedBankPtr=NULL to obtain decoded bank size without performing the decode operation. Pass AK_INVALID_POOL_ID and out_pDecodedBankPtr!=NULL to decode bank into specified pointer.
2234Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2235Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2236Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2238Â /// - The sound engine internally calls GetIDFromString(in_pszString) to return the correct bank ID.
2239Â /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2240Â /// not the name of the file (if you changed it), nor the full path of the file. The path should be resolved in
2241Â /// your implementation of the Stream Manager (<tt>AK::IAkStreamMgr::CreateStd()</tt>), or in the Low-Level I/O module
2242Â /// (<tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>) if you use the default Stream Manager's implementation.
2243Â /// - The cookie (in_pCookie) is passed to the Low-Level I/O module for your convenience, in <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>
2246Â /// When Wwise Authoring is connected to the game in "Profile And Edit (Sync All)" mode, LoadBank will succeed even if the file is not found.
2247Â /// This might be the case when sound banks were not generated, for example. The Capture Log will still report the missing file.
2263Â void * in_pCookie, ///< Callback cookie (reserved to user, passed to the callback function, and also to <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt> as AkFileSystemFlags::pCustomParam)
2287Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2288Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2289Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2291Â /// - The sound engine internally calls GetIDFromString(in_pszString) to return the correct bank ID.
2292Â /// Therefore, \c in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2293Â /// not the name of the file (if you changed it), nor the full path of the file. The path should be resolved in
2294Â /// your implementation of the Stream Manager (<tt>AK::IAkStreamMgr::CreateStd()</tt>), or in the Low-Level I/O module
2295Â /// (<tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>) if you use the default Stream Manager's implementation.
2296Â /// - The cookie (in_pCookie) is passed to the Low-Level I/O module for your convenience, in <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>
2299Â /// When Wwise Authoring is connected to the game in "Profile And Edit (Sync All)" mode, LoadBank will succeed even if the file is not found.
2300Â /// This might be the case when sound banks were not generated, for example. The Capture Log will still report the missing file.
2316Â void * in_pCookie, ///< Callback cookie (reserved to user, passed to the callback function, and also to <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt> as AkFileSystemFlags::pCustomParam)
2322Â /// \aknote Requires that the "Use SoundBank names" option be unchecked in the Wwise Project Settings. \endaknote
2340Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2341Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2342Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2344Â /// - The file path should be resolved in your implementation of the Stream Manager, or in the Low-Level I/O module if
2345Â /// you use the default Stream Manager's implementation. The ID overload of <tt>AK::IAkStreamMgr::CreateStd()</tt> and <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt> are called.
2346Â /// - The cookie (in_pCookie) is passed to the Low-Level I/O module for your convenience, in <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>
2349Â /// When Wwise Authoring is connected to the game in "Profile And Edit (Sync All)" mode, LoadBank will succeed even if the file is not found.
2350Â /// This might be the case when sound banks were not generated, for example. The Capture Log will still report the missing file.
2364Â void * in_pCookie, ///< Callback cookie (reserved to user, passed to the callback function, and also to <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt> as AkFileSystemFlags::pCustomParam)
2370Â /// IMPORTANT: Banks loaded from memory with in-place data MUST be unloaded using the UnloadBank function
2371Â /// providing the same memory pointer. Make sure you are using the correct UnloadBank(...) overload
2375Â /// In-memory loading is in-place: *** the memory must be valid until the bank is unloaded. ***
2392Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2393Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2394Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2396Â /// - The memory must be aligned on platform-specific AK_BANK_PLATFORM_DATA_ALIGNMENT bytes (see AkTypes.h).
2397Â /// - Avoid using this function for banks containing a lot of events or structure data: this data will be unpacked into the sound engine heap,
2398Â /// making the supplied bank memory redundant. For event/structure-only banks, prefer LoadBankMemoryCopy().
2407Â const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is stored in sound engine, memory must remain valid)
2416Â /// IMPORTANT: Banks loaded from memory with in-place data MUST be unloaded using the UnloadBank function
2417Â /// providing the same memory pointer. Make sure you are using the correct UnloadBank(...) overload
2421Â /// In-memory loading is in-place: *** the memory must be valid until the bank is unloaded. ***
2437Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2438Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2439Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2441Â /// - The memory must be aligned on platform-specific AK_BANK_PLATFORM_DATA_ALIGNMENT bytes (see AkTypes.h).
2442Â /// - Avoid using this function for banks containing a lot of events or structure data: this data will be unpacked into the sound engine heap,
2443Â /// making the supplied bank memory redundant. For event/structure-only banks, prefer LoadBankMemoryCopy().
2452Â const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is stored in sound engine, memory must remain valid)
2462Â /// NOTE: Banks loaded from in-memory with out-of-place data must be unloaded using the standard UnloadBank function
2466Â /// in a buffer and pass its address to the sound engine, the media section of the bank will be copied into newly allocated
2468Â /// In-memory loading is out-of-place: the buffer can be released after the callback function is called. The advantage of using this
2486Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2487Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2488Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2498Â const void* in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is not stored in sound engine, memory can be released after callback)
2507Â /// NOTE: Banks loaded from in-memory with out-of-place data must be unloaded using the standard UnloadBank function
2511Â /// in a buffer and pass its address to the sound engine, the media section of the bank will be copied into newly allocated
2513Â /// In-memory loading is out-of-place: the buffer can be released after the callback function is called. The advantage of using this
2531Â /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2532Â /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2533Â /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2543Â const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is not stored in sound engine, memory can be released after callback)
2554Â /// \return AK_Success if successful, AK_Fail otherwise. AK_Success is returned when the bank was not loaded.
2556Â /// - The sound engine internally calls GetIDFromString(in_pszString) to retrieve the bank ID,
2558Â /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2560Â /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2568Â const void * in_pInMemoryBankPtr, ///< Memory pointer from where the bank was initially loaded from. (REQUIRED to determine which bank associated to a memory pointer must be unloaded). Pass NULL if NULL was passed when loading the bank or if LoadBankMemoryCopy was used to load the bank.
2575Â /// \return AK_Success if successful, AK_Fail otherwise. AK_Success is returned when the bank was not loaded.
2577Â /// - The sound engine internally calls GetIDFromString(in_pszString) to retrieve the bank ID,
2579Â /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2581Â /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2589Â const void * in_pInMemoryBankPtr, ///< Memory pointer from where the bank was initially loaded from. (REQUIRED to determine which bank associated to a memory pointer must be unloaded). Pass NULL if NULL was passed when loading the bank or if LoadBankMemoryCopy was used to load the bank.
2594Â /// \return AK_Success if successful, AK_Fail otherwise. AK_Success is returned when the bank was not loaded.
2596Â /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2604Â const void * in_pInMemoryBankPtr, ///< Memory pointer from where the bank was initially loaded from. (REQUIRED to determine which bank associated to a memory pointer must be unloaded). Pass NULL if NULL was passed when loading the bank or if LoadBankMemoryCopy was used to load the bank.
2611Â /// \return AK_Success if scheduling successful (use a callback to be notified when completed)
2615Â /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2617Â /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2626Â const void * in_pInMemoryBankPtr, ///< Memory pointer from where the bank was initially loaded from. (REQUIRED to determine which bank associated to a memory pointer must be unloaded). Pass NULL if NULL was passed when loading the bank or if LoadBankMemoryCopy was used to load the bank.
2635Â /// \return AK_Success if scheduling successful (use a callback to be notified when completed)
2639Â /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2641Â /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2650Â const void * in_pInMemoryBankPtr, ///< Memory pointer from where the bank was initially loaded from. (REQUIRED to determine which bank associated to a memory pointer must be unloaded). Pass NULL if NULL was passed when loading the bank or if LoadBankMemoryCopy was used to load the bank.
2658Â /// \return AK_Success if scheduling successful (use a callback to be notified when completed)
2660Â /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2669Â const void * in_pInMemoryBankPtr, ///< Memory pointer from where the bank was initially loaded from. (REQUIRED to determine which bank associated to a memory pointer must be unloaded). Pass NULL if NULL was passed when loading the bank or if LoadBankMemoryCopy was used to load the bank.
2675Â /// Cancels all Event callbacks associated with a specific callback cookie specified while loading Banks of preparing Events.\n
2693Â Preparation_Load, ///< \c PrepareEvent() will load required information to play the specified event.
2694Â Preparation_Unload, ///< \c PrepareEvent() will unload required information to play the specified event.
2695Â Preparation_LoadAndDecode, ///< Vorbis media is decoded when loading, and an uncompressed PCM version is used for playback.
2701Â /// Use AkBankContent_StructureOnly to load only the structural content, including events, from the bank and then later use the PrepareEvent() functions to load media on demand from loose files on the disk.
2707Â AkBankContent_StructureOnly, ///< Use AkBankContent_StructureOnly to load only the structural content, including Events, and then later use the PrepareEvent() functions to load media on demand from loose files on the disk.
2710Â };
2713Â /// This function will load the Events, structural content, and optionally, the media content from the SoundBank. If the flag AkBankContent_All is specified, PrepareBank() will load the media content from
2714Â /// the bank; but, as opposed to LoadBank(), the media will be loaded one media item at a time instead of in one contiguous memory block. Using PrepareBank(), alone or in combination with PrepareEvent(),
2716Â /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2723Â /// PrepareBank(), when called with the flag AkBankContent_StructureOnly, requires additional calls to PrepareEvent() to load the media for each event. PrepareEvent(), however, is unable to
2724Â /// access media content contained within SoundBanks and requires that the media be available as loose files in the file system. This flag may be useful to implement multiple loading configurations;
2725Â /// for example, a game may have a tool mode that uses PrepareEvent() to load loose files on-demand and, also, a game mode that uses LoadBank() to load the bank in entirety.
2727Â AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2729Â AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2734Â /// This function will load the Events, structural content, and optionally, the media content from the SoundBank. If the flag AkBankContent_All is specified, PrepareBank() will load the media content from
2735Â /// the bank; but, as opposed to LoadBank(), the media will be loaded one media item at a time instead of in one contiguous memory block. Using PrepareBank(), alone or in combination with PrepareEvent(),
2737Â /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2744Â /// \c PrepareBank(), when called with the flag \c AkBankContent_StructureOnly, requires additional calls to \c PrepareEvent() to load the media for each event. \c PrepareEvent(), however, is unable to
2745Â /// access media content contained within SoundBanks and requires that the media be available as loose files in the file system. This flag may be useful to implement multiple loading configurations;
2746Â /// for example, a game may have a tool mode that uses PrepareEvent() to load loose files on-demand and, also, a game mode that uses \c LoadBank() to load the bank in entirety.
2748Â AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2750Â AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2754Â /// \n\aknote Requires that the "Use SoundBank names" option be unchecked in the Wwise Project Settings. \endaknote
2755Â /// This function will load the events, structural content, and optionally, the media content from the SoundBank. If the flag AkBankContent_All is specified, PrepareBank() will load the media content from
2756Â /// the bank, but as opposed to LoadBank(), the media will be loaded one media item at a time instead of in one contiguous memory block. Using PrepareBank(), alone or in combination with PrepareEvent(),
2758Â /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2765Â /// \c PrepareBank(), when called with the flag AkBankContent_StructureOnly, requires additional calls to PrepareEvent() to load the media for each event. PrepareEvent(), however, is unable to
2766Â /// access media content contained within SoundBanks and requires that the media be available as loose files in the file system. This flag may be useful to implement multiple loading configurations;
2767Â /// for example, a game may have a tool mode that uses PrepareEvent() to load loose files on-demand and, also, a game mode that uses LoadBank() to load the bank in entirety.
2769Â AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2771Â AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2776Â /// This function will load the Events, structural content, and optionally, the media content from the SoundBank. If the flag AkBankContent_All is specified, PrepareBank() will load the media content from
2777Â /// the bank, but as opposed to LoadBank(), the media will be loaded one media item at a time instead of in one contiguous memory block. Using PrepareBank(), alone or in combination with PrepareEvent(),
2779Â /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2786Â /// PrepareBank(), when called with the flag AkBankContent_StructureOnly, requires additional calls to PrepareEvent() to load the media for each event. PrepareEvent(), however, is unable to
2787Â /// access media content contained within SoundBanks and requires that the media be available as loose files in the file system. This flag may be useful to implement multiple loading configurations;
2788Â /// for example, a game may have a tool mode that uses PrepareEvent() to load loose files on-demand and, also, a game mode that uses LoadBank() to load the bank in entirety.
2790Â AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2794Â AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2799Â /// This function will load the events, structural content, and optionally, the media content from the SoundBank. If the flag \c AkBankContent_All is specified, \c PrepareBank() will load the media content from
2800Â /// the bank, but as opposed to \c LoadBank(), the media will be loaded one media item at a time instead of in one contiguous memory block. Using \c PrepareBank(), alone or in combination with PrepareEvent(),
2802Â /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2809Â /// PrepareBank(), when called with the flag AkBankContent_StructureOnly, requires additional calls to PrepareEvent() to load the media for each event. PrepareEvent(), however, is unable to
2810Â /// access media content contained within SoundBanks and requires that the media be available as loose files in the file system. This flag may be useful to implement multiple loading configurations;
2811Â /// for example, a game may have a tool mode that uses PrepareEvent() to load loose files on-demand and, also, a game mode that uses LoadBank() to load the bank in entirety.
2813Â AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2817Â AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2821Â /// \n\aknote Requires that the "Use SoundBank names" option be unchecked in the Wwise Project Settings. \endaknote
2822Â /// This function will load the events, structural content, and optionally, the media content from the SoundBank. If the flag AkBankContent_All is specified, \c PrepareBank() will load the media content from
2823Â /// the bank, but as opposed to \c LoadBank(), the media will be loaded one media item at a time instead of in one contiguous memory block. Using \c PrepareBank(), alone or in combination with \c PrepareEvent(),
2825Â /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2832Â /// \c PrepareBank(), when called with the flag AkBankContent_StructureOnly, requires additional calls to PrepareEvent() to load the media for each event. \c PrepareEvent(), however, is unable to
2833Â /// access media content contained within SoundBanks and requires that the media be available as loose files in the file system. This flag may be useful to implement multiple loading configurations;
2834Â /// for example, a game may have a tool mode that uses \c PrepareEvent() to load loose files on-demand and, also, a game mode that uses \c LoadBank() to load the bank in entirety.
2836Â AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2840Â AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2847Â /// - \c AK_Fail if the sound engine was not correctly initialized or if there is not enough memory to handle the command.
2870Â /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareEvent() does not exist.
2877Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2889Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2909Â /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareEvent() does not exist.
2916Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2930Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2936Â /// The Events are identified by their ID (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
2948Â /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareEvent() does not exist.
2955Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2967Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2974Â /// The Events are identified by string (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
2983Â /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
2997Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3006Â /// The Events are identified by string (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3015Â /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3029Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3037Â /// The Events are identified by their ID (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3046Â /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3060Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3097Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3132Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3138Â /// The Busses are identified by their ID (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3165Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3172Â /// The Busses are identified by string (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3177Â /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3190Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3199Â /// The Busses are identified by string (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3204Â /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3217Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3225Â /// The Busses are identified by their ID (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3230Â /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3243Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3251Â /// The sources are identified by their ID (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3252Â /// \return AK_Success if operation was successful, AK_InvalidParameter if in_pSourceSettings is invalid or media sizes are 0.
3258Â /// Removes the specified source from the list of loaded media, only if this media is not already in use.
3259Â /// The sources are identified by their ID (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3260Â /// \aknote Media that is still in use by the sound engine should not be unset. It is marked for removal to prevent additional use.
3261Â /// If this function returns AK_ResourceInUse, then the client must not release memory for this media.
3262Â /// Instead, the client should retry the TryUnsetMedia operation later with the same parameters and check for AK_Success.
3264Â /// If out_pUnsetResults is not null, then it is assumed to point to an array of result codes of the same length as in_pSourceSettings.
3265Â /// out_pUnsetResults will be filled with either AK_Success or AK_ResourceInUse, indicating which media was still in use and not unset.
3267Â /// - \c AK_Success: Operation was successful, and the memory can be released on the client side.
3268Â /// - \c AK_ResourceInUse: Specified media is still in use by the sound engine, and the media was not unset. Do not release memory, and try again later.
3278Â /// The group and game syncs are specified by string (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3287Â /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareGameSyncs() does not exist.
3294Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
3296Â /// You need to call PrepareGameSyncs() if the sound engine was initialized with AkInitSettings::bEnableGameSyncPreparation
3297Â /// set to true. When set to false, the sound engine automatically prepares all game syncs when preparing events,
3307Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3310Â const wchar_t** in_ppszGameSyncName, ///< The specific ID of the state to either support or not support.
3316Â /// The group and game syncs are specified by string (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3325Â /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareGameSyncs() does not exist.
3332Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
3334Â /// You need to call PrepareGameSyncs() if the sound engine was initialized with AkInitSettings::bEnableGameSyncPreparation
3335Â /// set to true. When set to false, the sound engine automatically prepares all game syncs when preparing events,
3345Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3348Â const char** in_ppszGameSyncName, ///< The specific ID of the state to either support or not support.
3353Â /// The group and game syncs are specified by ID (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3362Â /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareGameSyncs() does not exist.
3369Â /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
3371Â /// You need to call \c PrepareGameSyncs() if the sound engine was initialized with \c AkInitSettings::bEnableGameSyncPreparation
3372Â /// set to \c true. When set to \c false, the sound engine automatically prepares all game syncs when preparing Events,
3382Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3385Â AkUInt32* in_paGameSyncID, ///< Array of ID of the game syncs to either support or not support.
3391Â /// The group and game syncs are specified by string (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3397Â /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3400Â /// You need to call \c PrepareGameSyncs() if the sound engine was initialized with \c AkInitSettings::bEnableGameSyncPreparation
3401Â /// set to \c true. When set to \c false, the sound engine automatically prepares all game syncs when preparing Events,
3412Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3415Â const wchar_t** in_ppszGameSyncName, ///< The specific ID of the state to either support or not support.
3423Â /// The group and game syncs are specified by string (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3429Â /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3432Â /// You need to call PrepareGameSyncs() if the sound engine was initialized with AkInitSettings::bEnableGameSyncPreparation
3433Â /// set to true. When set to false, the sound engine automatically prepares all game syncs when preparing events,
3444Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3447Â const char** in_ppszGameSyncName, ///< The specific ID of the state to either support or not support.
3454Â /// The group and game syncs are specified by ID (refer to \ref soundengine_banks_general for a discussion on using strings and IDs).
3460Â /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3463Â /// You need to call PrepareGameSyncs() if the sound engine was initialized with AkInitSettings::bEnableGameSyncPreparation
3464Â /// set to true. When set to false, the sound engine automatically prepares all Game Syncs when preparing Events,
3475Â PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3478Â AkUInt32* in_paGameSyncID, ///< Array of ID of the Game Syncs to either support or not support.
3492Â /// All listeners that have previously been added via AddListener or set via SetListeners will be removed and replaced with the listeners in the array in_pListenerGameObjs.
3493Â /// Calling this function will override the default set of listeners and in_emitterGameObj will now reference its own, unique set of listeners.
3496Â /// - \c AK_CommandTooLarge if the number of positions is too large for the command queue. Reduce the number of positions.
3503Â AkGameObjectID in_emitterGameObj, ///< Emitter game object. Must have been previously registered via RegisterGameObj.
3504Â const AkGameObjectID* in_pListenerGameObjs, ///< Array of listener game object IDs that will be activated for in_emitterGameObj.
3509Â /// Any listeners that have previously been added or set via AddListener or SetListeners will remain as listeners and in_listenerGameObj will be added as an additional listener.
3510Â /// Calling this function will override the default set of listeners and in_emitterGameObj will now reference its own, unique set of listeners.
3517Â AkGameObjectID in_emitterGameObj, ///< Emitter game object. Must have been previously registered via RegisterGameObj.
3518Â AkGameObjectID in_listenerGameObj ///< Listener game object IDs that will be activated for in_emitterGameObj.
3522Â /// Calling this function will override the default set of listeners and in_emitterGameObj will now reference its own, unique set of listeners.
3530Â AkGameObjectID in_listenerGameObj ///< Listener game object IDs that will be deactivated for in_emitterGameObj. Game objects must have been previously registered.
3533Â /// Sets the default set of associated listeners for game objects that have not explicitly overridden their listener sets. Upon registration, all game objects reference the default listener set, until
3534Â /// a call to AddListener, RemoveListener, SetListeners or SetGameObjectOutputBusVolume is made on that game object.
3535Â /// All default listeners that have previously been added via AddDefaultListener or set via SetDefaultListeners will be removed and replaced with the listeners in the array in_pListenerGameObjs.
3540Â const AkGameObjectID* in_pListenerObjs, ///< Array of listener game object IDs that will be activated for subsequent registrations. Game objects must have been previously registered.
3544Â /// Add a single listener to the default set of listeners. Upon registration, all game objects reference the default listener set, until
3545Â /// a call to AddListener, RemoveListener, SetListeners or SetGameObjectOutputBusVolume is made on that game object.
3551Â AkGameObjectID in_listenerGameObj ///< Listener game object IDs that will be added to the default set of listeners.
3554Â /// Remove a single listener from the default set of listeners. Upon registration, all game objects reference the default listener set, until
3555Â /// a call to AddListener, RemoveListener, SetListeners or SetGameObjectOutputBusVolume is made on that game object.
3561Â AkGameObjectID in_listenerGameObj ///< Listener game object IDs that will be removed from the default set of listeners.
3564Â /// Resets the listener associations to the default listener(s), as set by <tt>SetDefaultListeners</tt>. This will also reset per-listener gains that have been set using <tt>SetGameObjectOutputBusVolume</tt>.
3577Â /// If \c in_bSpatialized is false, only \c in_pVolumeOffsets is used for this listener (3D positions
3578Â /// have no effect on the speaker distribution). Otherwise, \c in_pVolumeOffsets is added to the speaker
3580Â /// Use helper functions of \c AK::SpeakerVolumes to manipulate the vector of volume offsets in_pVolumeOffsets.
3583Â /// - If a sound is mixed into a bus that has a different speaker configuration than in_channelConfig,
3594Â bool in_bSpatialized, ///< Spatialization toggle (True : enable spatialization, False : disable spatialization)
3595Â AkChannelConfig in_channelConfig, ///< Channel configuration associated with volumes in_pVolumeOffsets. Ignored if in_pVolumeOffsets is NULL.
3596Â AK::SpeakerVolumes::VectorPtr in_pVolumeOffsets = NULL ///< Per-speaker volume offset, in dB. See AkSpeakerVolumes.h for how to manipulate this vector.
3607Â /// With this function, you may set a game parameter value with global scope or with game object scope.
3608Â /// Game object scope supersedes global scope. (Once a value is set for the game object scope, it will not be affected by changes to the global scope value.) Game parameter values set with a global scope are applied to all
3609Â /// game objects that not yet registered, or already registered but not overridden with a value with game object scope.
3610Â /// To set a game parameter value with global scope, pass \c AK_INVALID_GAME_OBJECT as the game object.
3611Â /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3612Â /// value for \c in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3613Â /// according to the interpolation curve. If you call \c <tt><tt>SetRTPCValue()</tt></tt> with <tt>in_uValueChangeDuration = 0</tt> in the
3614Â /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3615Â /// function at every game frame, you should not use \c in_uValueChangeDuration, as it would have no effect and it is less efficient.
3629Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3630Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3631Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
3636Â /// With this function, you may set a game parameter value to global scope or to game object scope.
3637Â /// Game object scope supersedes global scope. (Once a value is set for the game object scope, it will not be affected by changes to the global scope value.) Game parameter values set with global scope are applied to all
3638Â /// game objects that not yet registered, or already registered but not overridden with a value with game object scope.
3639Â /// To set a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3640Â /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3641Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3642Â /// according to the interpolation curve. If you call SetRTPCValue() with in_uValueChangeDuration = 0 in the
3643Â /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3644Â /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3658Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3659Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3660Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
3665Â /// With this function, you may set a game parameter value with global scope or with game object scope.
3666Â /// Game object scope supersedes global scope. (Once a value is set for the game object scope, it will not be affected by changes to the global scope value.) Game parameter values set with global scope are applied to all
3667Â /// game objects that not yet registered, or already registered but not overridden with a value with game object scope.
3668Â /// To set a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3669Â /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3670Â /// value for \c in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3671Â /// according to the interpolation curve. If you call SetRTPCValue() with in_uValueChangeDuration = 0 in the
3672Â /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3673Â /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3687Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3688Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3689Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
3695Â /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3696Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3697Â /// according to the interpolation curve. If you call SetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3698Â /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3699Â /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3713Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3714Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3715Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when, for example, loading a level and you don't want the values to interpolate.
3722Â /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3723Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3724Â /// according to the interpolation curve. If you call SetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3725Â /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3726Â /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3740Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3741Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3742Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when, for example, loading a level and you don't want the values to interpolate.
3749Â /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3750Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3751Â /// according to the interpolation curve. If you call SetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3752Â /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3753Â /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3767Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3768Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3769Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
3772Â /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3773Â /// With this function, you may reset a game parameter to its default value with global scope or with game object scope.
3774Â /// Game object scope supersedes global scope. Game parameter values reset with global scope are applied to all
3776Â /// To reset a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3777Â /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3778Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3779Â /// according to the interpolation curve. If you call SetRTPCValue() or ResetRTPCValue() with in_uValueChangeDuration = 0 in the
3793Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3794Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3795Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
3799Â /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3800Â /// With this function, you may reset a game parameter to its default value with global scope or with game object scope.
3801Â /// Game object scope supersedes global scope. Game parameter values reset with global scope are applied to all
3803Â /// To reset a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3804Â /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3805Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3806Â /// according to the interpolation curve. If you call SetRTPCValue() or ResetRTPCValue() with in_uValueChangeDuration = 0 in the
3820Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3821Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3822Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
3826Â /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3827Â /// With this function, you may reset a game parameter to its default value with global scope or with game object scope.
3828Â /// Game object scope supersedes global scope. Game parameter values reset with global scope are applied to all
3830Â /// To reset a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3831Â /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3832Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3833Â /// according to the interpolation curve. If you call SetRTPCValue() or ResetRTPCValue() with in_uValueChangeDuration = 0 in the
3847Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3848Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3849Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
3852Â /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3853Â /// With this function, you may reset a game parameter to its default value on playing id scope.
3855Â /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3856Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3858Â /// If you call SetRTPCValueByPlayingID() or ReetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3871Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3872Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3873Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
3877Â /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3878Â /// With this function, you may reset a game parameter to its default value on playing id scope.
3880Â /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3881Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3883Â /// If you call SetRTPCValueByPlayingID() or ReetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3889Â /// - \c AK_InvalidID if in_playingID is AK_INVALID_PLAYING_ID (0) or if if in_pszParamName is NULL.
3898Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3899Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3900Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
3904Â /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3905Â /// With this function, you may reset a game parameter to its default value on playing id scope.
3907Â /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3908Â /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3910Â /// If you call SetRTPCValueByPlayingID() or ReetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3916Â /// - \c AK_InvalidID if in_playingID is AK_INVALID_PLAYING_ID (0) or if if in_pszParamName is NULL.
3925Â AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3926Â AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3927Â bool in_bBypassInternalValueInterpolation = false ///< True if you want to bypass the internal "slew rate" or "over time filtering" specified by the sound designer. This is meant to be used when for example loading a level and you dont want the values to interpolate.
4074Â /// Registers a callback to allow the game to modify or override the volume to be applied at the output of an audio bus.
4078Â /// \aknote The callback function will not be called for the Master Audio Bus, since the output of this bus is not a bus, but is instead an Audio Device.\endaknote
4096Â /// Registers a callback to be called to allow the game to access metering data from any mixing bus. You may use this to monitor loudness at any point of the mixing hierarchy
4097Â /// by accessing the peak, RMS, True Peak and K-weighted power (according to loudness standard ITU BS.1770). See \ref goingfurther_speakermatrixcallback for an example.
4117Â /// Registers a callback to be called to allow the game to access metering data from any output device. You may use this to monitor loudness as sound leaves the Wwise sound engine
4118Â /// by accessing the peak, RMS, True Peak and K-weighted power (according to loudness standard ITU BS.1770). See \ref goingfurther_speakermatrixcallback for an example.
4131Â AkOutputDeviceID in_idOutput, ///< Output ID, as returned from AddOutput or GetOutputID. You can pass 0 for the main (default) output
4139Â /// Output Bus Volumes are stored per listener association, so calling this function will override the default set of listeners. The game object in_emitterObjID will now reference its own set of listeners which will
4140Â /// be the same as the old set of listeners, but with the new associated gain. Future changes to the default listener set will not be picked up by this game object unless ResetListenersToDefault() is called.
4151Â AkGameObjectID in_listenerObjID, ///< Associated listener game object ID. Pass AK_INVALID_GAME_OBJECT to set the Output Bus Volume for all connected listeners.
4162Â /// the Effect section in Wwise must be enabled for this node, otherwise the parent's effect will
4167Â AkUniqueID in_audioNodeID, ///< Can be a member of the Actor-Mixer or Interactive Music Hierarchy (not a bus).
4169Â AkUniqueID in_shareSetID ///< ShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the effect slot
4178Â /// \aknote This function has unspecified behavior when adding an Effect to a currently playing
4179Â /// Bus which does not have any Effects, or removing the last Effect on a currently playing bus.
4181Â /// \aknote This function will replace existing Effects on the node. If the target node is not at
4182Â /// the top of the hierarchy and is in the actor-mixer hierarchy, the option "Override Parent" in
4183Â /// the Effect section in Wwise must be enabled for this node, otherwise the parent's Effect will
4193Â AkUniqueID in_shareSetID ///< ShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the Effect slot
4203Â /// \aknote This function has unspecified behavior when adding an Effect to a currently playing
4204Â /// bus which does not have any Effects, or removing the last Effect on a currently playing Bus.
4206Â /// \aknote This function will replace existing Effects on the node. If the target node is not at
4207Â /// the top of the hierarchy and is in the Actor-Mixer Hierarchy, the option "Override Parent" in
4208Â /// the Effect section in Wwise must be enabled for this node, otherwise the parent's Effect will
4219Â AkUniqueID in_shareSetID ///< ShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the effect slot
4229Â /// \aknote This function has unspecified behavior when adding an Effect to a currently playing
4230Â /// Bus which does not have any effects, or removing the last Effect on a currently playing bus.
4232Â /// \aknote Make sure the new effect shareset is included in a soundbank, and that sound bank is loaded. Otherwise you will see errors in the Capture Log.\endaknote
4233Â /// \aknote This function will replace existing Effects on the node. If the target node is not at
4234Â /// the top of the hierarchy and is in the Actor-Mixer Hierarchy, the option "Override Parent" in
4235Â /// the Effect section in Wwise must be enabled for this node, otherwise the parent's Effect will
4246Â AkUniqueID in_shareSetID ///< ShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the effect slot
4249Â /// Sets an audio device effect shareset on the specified output device and effect slot index.
4253Â /// \aknote Make sure the new effect shareset is included in a soundbank, and that sound bank is loaded. Otherwise you will see errors in the Capture Log.\endaknote
4254Â /// \aknote This function will replace existing effects of the audio device shareset. \endaknote
4255Â /// \aknote Audio device effects support is limited to one shareset per plug-in type at any time. \endaknote
4256Â /// \aknote Errors are reported in the Wwise Capture Log if the effect cannot be set on the output device. \endaknote
4260Â AkOutputDeviceID in_outputDeviceID, ///< Output ID, as returned from AddOutput or GetOutputID. Most of the time this should be 0 to designate the main (default) output
4271Â AkChannelConfig in_channelConfig ///< Desired channel configuration. An invalid configuration (from default constructor) means "as parent".
4283Â AkChannelConfig in_channelConfig ///< Desired channel configuration. An invalid configuration (from default constructor) means "as parent".
4295Â AkChannelConfig in_channelConfig ///< Desired channel configuration. An invalid configuration (from default constructor) means "as parent".
4298Â /// Sets a game object's obstruction and occlusion levels. If SetMultiplePositions were used, values are set for all positions.
4299Â /// To assign a unique obstruction and occlusion value to each sound position, instead use AK::SoundEngine::SetMultipleObstructionAndOcclusion.
4312Â /// Sets a game object's obstruction and occlusion value for each position defined by AK::SoundEngine::SetMultiplePositions.
4313Â /// This function differs from AK::SoundEngine::SetObjectObstructionAndOcclusion as a list of obstruction/occlusion pair is provided
4314Â /// and each obstruction/occlusion pair will affect the corresponding position defined at the same index.
4315Â /// \aknote In the case the number of obstruction/occlusion pairs is smaller than the number of positions, remaining positions'
4319Â /// - \c AK_CommandTooLarge if the number of obstruction values is too large for the command queue.
4320Â /// - \c AK_InvalidParameter if one of the parameter is out of range (check the debug console)
4325Â /// \return AK_Success if occlusion/obstruction values are successfully stored for this emitter
4329Â AkObstructionOcclusionValues* in_fObstructionOcclusionValues, ///< Array of obstruction/occlusion pairs to apply
4332Â AkUInt32 in_uNumOcclusionObstruction ///< Number of obstruction/occlusion pairs specified in the provided array
4336Â /// This function will write history data for all currently loaded containers and instantiated game
4337Â /// objects (for example, current position in Sequence Containers and previously played elements in
4340Â /// This function acquires the main audio lock, and may block the caller for several milliseconds.
4351Â /// This function will read history data from the passed-in stream reader interface, and apply it to all
4355Â /// This function acquires the main audio lock, and may block the caller for several milliseconds.
4373Â /// If more than one device is active, the system will create multiple files in the same output
4376Â /// If no device is running yet, the system will return success AK_Success despite doing nothing.
4377Â /// Use RegisterAudioDeviceStatusCallback to get notified when devices are created/destructed.
4379Â /// \return AK_Success if successful, AK_Fail if there was a problem starting the output capture.
4381Â /// - The sound engine opens a stream for writing using <tt>AK::IAkStreamMgr::CreateStd()</tt>. If you are using the
4382Â /// default implementation of the Stream Manager, file opening is executed in your implementation of
4383Â /// the Low-Level IO interface <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>. The following
4384Â /// AkFileSystemFlags are passed: uCompanyID = AKCOMPANYID_AUDIOKINETIC and uCodecID = AKCODECID_PCM,
4385Â /// and the AkOpenMode is AK_OpenModeWriteOvrwr. Refer to \ref streamingmanager_lowlevel_location for
4402Â /// \return AK_Success if successful, AK_Fail if there was a problem stopping the output capture.
4435Â /// The callback will be called from the audio thread during real-time rendering and from the main thread during offline rendering.
4447Â AkOutputDeviceID in_idOutput = AK_INVALID_OUTPUT_DEVICE_ID, ///< The audio device specific id, return by AK::SoundEngine::AddOutput or AK::SoundEngine::GetOutputID
4448Â void* in_pCookie = NULL ///< Callback cookie that will be sent to the callback function along with additional information
4463Â AkOutputDeviceID in_idOutput = AK_INVALID_OUTPUT_DEVICE_ID, ///< The audio device specific id, return by AK::SoundEngine::AddOutput or AK::SoundEngine::GetOutputID
4464Â void* in_pCookie = NULL ///< Callback cookie that will be sent to the callback function along with additional information
4467Â /// Starts recording the sound engine profiling information into a file. This file can be read
4468Â /// by Wwise Authoring. The file is created at the base path. If you have integrated Wwise I/O,
4469Â /// you can use <tt>CAkDefaultIOHookDeferred::SetBasePath()</tt> (or <tt>CAkDefaultIOHookDeferred::AddBasePath()</tt>)
4470Â /// to change the location where the file is saved. The profiling session records all data types possible.
4476Â const AkOSChar* in_CaptureFileName ///< Name of the output profiler file (.prof extension recommended)
4491Â /// When offline rendering is enabled, every call to \ref RenderAudio() will generate sample data as if this much time has elapsed. If the frame time argument is less than or equal to zero, every call to RenderAudio() will generate one audio buffer.
4513Â /// Adds an output to the sound engine. Use this to add controller-attached headphones, controller speakers, DVR output, etc.
4514Â /// The in_Settings parameter contains an Audio Device shareset to specify the output plugin to use and a device ID to specify the instance, if necessary (e.g. which game controller).
4516Â /// Like most functions of AK::SoundEngine, AddOutput is asynchronous. A successful return code merely indicates that the request is properly queued.
4517Â /// Error codes returned by this function indicate various invalid parameters. To know if this function succeeds or not, and the failure code,
4526Â /// The following codes are returned directly from the function, as opposed to the AkDeviceStatusCallback
4528Â /// - \c AK_InvalidParameter: Out of range parameters or unsupported parameter combinations (see parameter list below).
4529Â /// - \c AK_IDNotFound: The audioDeviceShareset on in_settings doesn't exist. Possibly, the Init bank isn't loaded yet or was not updated with latest changes.
4530Â /// - \c AK_DeviceNotReady: The idDevice on in_settings doesn't match with a valid hardware device. Either the device doesn't exist or is disabled. Disconnected devices (headphones) are not considered "not ready" therefore won't cause this error.
4531Â /// - \c AK_NotInitialized: If AK::SoundEngine::Init was not called or if the Init.bnk was not loaded before the call.
4536Â /// - \c AK_IDNotFound: The audioDeviceShareset on in_settings doesn't exist. Possibly, the Init bank isn't loaded yet or was not updated with latest changes.
4537Â /// - \c AK_PluginNotRegistered: The audioDeviceShareset exists but the plug-in it refers to is not installed or statically linked with the game.
4538Â /// - \c AK_NotCompatible: The hardware does not support this type of output. Wwise will try to use the System output instead, and a separate callback will fire when that completes.
4539Â /// - \c AK_DeviceNotCompatible: The hardware does not support this type of output. Wwise will NOT fallback to any other type of output.
4540Â /// - \c AK_Fail: Generic code for any non-permanent conditions (e.g. disconnection) that prevent the use of the output. Wwise has created the output and sounds will be routed to it, but this output is currently silent until the temporary condition resolves.
4541Â /// - \c AK_NoDistinctListener: Outputs of the same type (same ShareSet, like controller speakers) must have distinct Listeners to make a proper routing. This doesn't happen if there is only one output of that type.
4543Â const AkOutputSettings & in_Settings, ///< Creation parameters for this output. \ref AkOutputSettings
4544Â AkOutputDeviceID *out_pDeviceID = NULL, ///< (Optional) Output ID to use with all other Output management functions. Leave to NULL if not required. \ref AK::SoundEngine::GetOutputID
4545Â const AkGameObjectID* in_pListenerIDs = NULL, ///< Specific listener(s) to attach to this device.
4546Â ///< If specified, only the sounds routed to game objects linked to those listeners will play in this device.
4547Â ///< It is necessary to have separate listeners if multiple devices of the same type can coexist (e.g. controller speakers)
4548Â ///< If not specified, sound routing simply obey the associations between Master Busses and Audio Devices setup in the Wwise Project.
4553Â /// If a listener was associated with the device, you should consider unregistering the listener prior to call RemoveOutput
4559Â AkOutputDeviceID in_idOutput ///< ID of the output to remove. Use the returned ID from AddOutput, GetOutputID, or ReplaceOutput
4562Â /// Replaces an output device previously created during engine initialization or from AddOutput, with a new output device.
4563Â /// In addition to simply removing one output device and adding a new one, the new output device will also be used on all of the master buses
4564Â /// that the old output device was associated with, and preserve all listeners that were attached to the old output device.
4566Â /// Like most functions of AK::SoundEngine, AddOutput is asynchronous. A successful return code merely indicates that the request is properly queued.
4567Â /// Error codes returned by this function indicate various invalid parameters. To know if this function succeeds or not, and the failure code,
4575Â /// - \c AK_IDNotFound: The audioDeviceShareset on in_settings doesn't exist. Possibly, the Init bank isn't loaded yet or was not updated with latest changes.
4576Â /// - \c AK_DeviceNotReady: The idDevice on in_settings doesn't match with a valid hardware device. Either the device doesn't exist or is disabled. Disconnected devices (headphones) are not considered "not ready" therefore won't cause this error.
4577Â /// - \c AK_DeviceNotFound: The in_outputDeviceId provided does not match with any of the output devices that the sound engine is currently using.
4578Â /// - \c AK_InvalidParameter: Out of range parameters or unsupported parameter combinations on in_settings
4581Â const AkOutputSettings & in_Settings, ///< Creation parameters for this output. \ref AkOutputSettings
4582Â AkOutputDeviceID in_outputDeviceId, ///< AkOutputDeviceID of the output to replace. Use 0 to target the current main output, regardless of its id. Otherwise, use the AkOutputDeviceID returned from AddOutput() or ReplaceOutput(), or generated by GetOutputID()
4583Â AkOutputDeviceID *out_pOutputDeviceId = NULL ///< (Optional) Pointer into which the method writes the AkOutputDeviceID of the new output device. If the call fails, the value pointed to will not be modified.
4587Â /// Outputs are defined by their type (Audio Device shareset) and their specific system ID. A system ID could be reused for other device types on some OS or platforms, hence the compounded ID.
4588Â /// Use 0 for in_idShareset & in_idDevice to get the Main Output ID (the one usually initialized during AK::SoundEngine::Init)
4591Â AkUniqueID in_idShareset, ///< Audio Device ShareSet ID, as defined in the Wwise Project. If needed, use AK::SoundEngine::GetIDFromString() to convert from a string. Set to AK_INVALID_UNIQUE_ID to use the default.
4592Â AkUInt32 in_idDevice ///< Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
4597Â const char* in_szShareSet, ///< Audio Device ShareSet Name, as defined in the Wwise Project. If Null, will select the Default Output shareset (always available)
4598Â AkUInt32 in_idDevice ///< Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
4604Â const wchar_t* in_szShareSet, ///< Audio Device ShareSet Name, as defined in the Wwise Project. If Null, will select the Default Output shareset (always available)
4605Â AkUInt32 in_idDevice ///< Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
4610Â /// Sets the Audio Device to which a master bus outputs. This overrides the setting in the Wwise project.
4611Â /// Can only be set on top-level busses. The Init bank should be successfully loaded prior to this call.
4612Â /// \aknote This function is useful only if used before the creation of an output, at the beginning of the sound engine setup.
4613Â /// Once active outputs using this Bus have been created, it is imperative to use AK::SoundEngine:ReplaceOutput instead to change the type of output.
4615Â /// AK_IDNotFound when either the Bus ID or the Device ID are not present in the Init bank or the bank was not loaded
4616Â /// AK_InvalidParameter when the specified bus is not a Master Bus. This function can be called only on busses that have no parent bus.
4622Â /// Sets the Audio Device to which a master bus outputs. This overrides the setting in the Wwise project.
4623Â /// Can only be set on top-level busses. The Init bank should be successfully loaded prior to this call.
4624Â /// \aknote This function is useful only if used before the creation of an output, at the beginning of the sound engine setup.
4625Â /// Once active outputs using this Bus have been created, it is imperative to use AK::SoundEngine:ReplaceOutput instead to change the type of output.
4627Â /// AK_IDNotFound when either the Bus ID or the Device ID are not present in the Init bank or the bank was not loaded
4628Â /// AK_InvalidParameter when the specified bus is not a Master Bus. This function can be called only on busses that have no parent bus.
4635Â /// Sets the Audio Device to which a master bus outputs. This overrides the setting in the Wwise project.
4636Â /// Can only be set on top-level busses. The Init bank should be successfully loaded prior to this call.
4637Â /// SetBusDevice must be preceded by a call to AddOutput for the new device shareset to be registered as an output.
4639Â /// AK_IDNotFound when either the Bus ID or the Device ID are not present in the Init bank or the bank was not loaded
4640Â /// AK_InvalidParameter when the specified bus is not a Master Bus. This function can be called only on busses that have no parent bus.
4647Â /// Returns a listing of the current devices for a given sink plug-in, including Device ID, friendly name, and state.
4651Â /// * The plug-in must have been initialized by loading the init bank or by calling \ref AK::SoundEngine::RegisterPlugin.
4654Â /// The built-in audio devices (System, Communication, Headphones, Personal, Pad Speaker) all support enumeration, on all platforms.
4655Â /// The only Wwise plug-in that support device enumeration is Motion, for the Windows platform only.
4659Â /// - \c AK_PluginNotRegistered if the plug-in has not been registered yet either by loading the init bank or by calling RegisterPluginDLL.
4664Â AkUInt32 in_ulCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
4665Â AkUInt32 in_ulPluginID, ///< Plug-in identifier (as declared in the plug-in description XML file)
4666Â AkUInt32& io_maxNumDevices, ///< In: The length of the out_deviceDescriptions array. Out: If out_deviceDescriptions is not-null, this will be set to the number of entries in out_deviceDescriptions that was populated. If out_deviceDescriptions is null, this will be set to the number of devices that may be available.
4670Â /// Returns a listing of the current devices for a given sink plug-in, including Device ID, friendly name, and state.
4674Â /// * The plug-in must have been initialized by loading the init bank or by calling \ref AK::SoundEngine::RegisterPlugin.
4675Â /// * The audio device shareset must have been loaded from a soundbank, and a physical device recognized by this plug-in must exist in the system.
4677Â /// The built-in audio devices (System, Communication, Headphones, Personal, Pad Speaker) all support enumeration, on all platforms.
4678Â /// The only Wwise plug-in that support device enumeration is Motion, for the Windows platform only.
4682Â /// AK_PluginNotRegistered if the plug-in has not been registered yet either by loading the init bank or by calling RegisterPluginDLL.
4684Â AkUniqueID in_audioDeviceShareSetID, ///< In: The audio device shareset ID for which to list the sink plug-in devices.
4685Â AkUInt32& io_maxNumDevices, ///< In: The length of the out_deviceDescriptions array. Out: If out_deviceDescriptions is not-null, this will be set to the number of entries in out_deviceDescriptions that was populated. If out_deviceDescriptions is null, this will be set to the number of devices that may be available.
4694Â AkOutputDeviceID in_idOutput, ///< Output ID to set the volume on. As returned from AddOutput or GetOutputID
4698Â /// Returns whether or not the audio device matching the device ID provided supports spatial audio (i.e. the functionality is enabled, and more than 0 dynamic objects are supported).
4699Â /// If Spatial Audio is supported, then you can call Init, AddOutput, or ReplaceOutput with an Audio Device Shareset corresponding to the respective platform-specific plug-in that
4700Â /// provides spatial audio, such as the Microsoft Spatial Sound Platform for Windows. Note that on Xbox One, you need to call EnableSpatialAudio() before the sound engine is
4701Â /// initialized, or initialize the sound engine with AkPlatformInitSettings::bEnableSpatialAudio set to true if you want spatial audio support; otherwise this will always return AK_NotCompatible.
4703Â /// AK_NotCompatible when the device ID provided does not support spatial audio, or the platform does not support spatial audio
4704Â /// AK_Fail when there is some other miscellaneous failure, or the device ID provided does not match a device that the system knows about
4707Â AkUInt32 in_idDevice ///< Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
4714Â /// This function should be called to put the sound engine in background mode, where audio isn't processed anymore. This needs to be called if the console has a background mode or some suspended state.
4715Â /// Call \c WakeupFromSuspend when your application receives the message from the OS that the process is back in foreground.
4716Â /// When suspended, the sound engine will process API messages (like PostEvent and SetSwitch) only when \ref RenderAudio() is called.
4717Â /// It is recommended to match the <b>in_bRenderAnyway</b> parameter with the behavior of the rest of your game:
4718Â /// if your game still runs in background and you must keep some kind of coherent state between the audio engine and game, then allow rendering.
4719Â /// If you want to minimize CPU when in background, then don't allow rendering and never call RenderAudio from the game.
4721Â /// Consult \ref workingwithsdks_system_calls to learn when it is appropriate to call this function for each platform.
4725Â bool in_bRenderAnyway = false, ///< If set to true, audio processing will still occur, but not outputted. When set to false, no audio will be processed at all, even upon reception of RenderAudio().
4726Â bool in_bFadeOut = true ///< Delay the suspend by one audio frame in order to fade-out. When false, the suspend takes effect immediately but audio may glitch.
4729Â /// This function should be called to wake up the sound engine and start processing audio again. This needs to be called if the console has a background mode or some suspended state.
4731Â /// Consult \ref workingwithsdks_system_calls to learn when it is appropriate to call this function for each platform.
4735Â AkUInt32 in_uDelayMs = 0 /// Delay (in milliseconds) before the wake up occurs. Rounded up to audio frame granularity. Adding a delay is useful if there is a possibility that another OS event may override the wake-up in the near future.
4738Â /// Obtains the current audio output buffer tick. This corresponds to the number of buffers produced by
AKSOUNDENGINE_API AKRESULT RegisterPluginDLL(const AkOSChar *in_DllName, const AkOSChar *in_DllPath=NULL)
AkUInt32 uMonitorQueuePoolSize
Size of the monitoring queue, in bytes. This parameter is not used in Release build.
Definition: AkSoundEngine.h:234
AKSOUNDENGINE_API AKRESULT RemoveDefaultListener(AkGameObjectID in_listenerGameObj)
AKSOUNDENGINE_API AKRESULT PrepareEvent(PreparationType in_PreparationType, const char **in_ppszString, AkUInt32 in_uNumEvent)
AKSOUNDENGINE_API AkUInt32 GetSampleRate()
void(* AkProfilerPostMarkerFunc)(AkPluginID in_uPluginID, const char *in_pszMarkerName)
Definition: AkSoundEngine.h:212
AKSOUNDENGINE_API AKRESULT SetRTPCValue(AkRtpcID in_rtpcID, AkRtpcValue in_value, AkGameObjectID in_gameObjectID=AK_INVALID_GAME_OBJECT, AkTimeMs in_uValueChangeDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear, bool in_bBypassInternalValueInterpolation=false)
AKSOUNDENGINE_API AKRESULT SetOutputDeviceEffect(AkOutputDeviceID in_outputDeviceID, AkUInt32 in_uFXIndex, AkUniqueID in_FXShareSetID)
AkBackgroundMusicChangeCallbackFunc BGMCallback
Application-defined audio source change event callback function.
Definition: AkSoundEngine.h:245
Auxiliary bus sends information per game object per given auxiliary bus.
Definition: AkTypes.h:885
Definition: AkCommonDefs.h:286
AKSOUNDENGINE_API void ExecuteActionOnPlayingID(AkActionOnEventType in_ActionType, AkPlayingID in_playingID, AkTimeMs in_uTransitionDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear)
AKSOUNDENGINE_API AKRESULT LoadBankMemoryView(const void *in_pInMemoryBankPtr, AkUInt32 in_uInMemoryBankSize, AkBankID &out_bankID)
AKSOUNDENGINE_API AKRESULT PrepareGameSyncs(PreparationType in_PreparationType, AkGroupType in_eGameSyncType, const char *in_pszGroupName, const char **in_ppszGameSyncName, AkUInt32 in_uNumGameSyncs)
AKSOUNDENGINE_API AKRESULT GetSourcePlayPositions(AkPlayingID in_PlayingID, AkSourcePosition *out_puPositions, AkUInt32 *io_pcPositions, bool in_bExtrapolate=true)
AKSOUNDENGINE_API AKRESULT Init(AkInitSettings *in_pSettings, AkPlatformInitSettings *in_pPlatformSettings)
AKSOUNDENGINE_API AKRESULT SetSwitch(AkSwitchGroupID in_switchGroup, AkSwitchStateID in_switchState, AkGameObjectID in_gameObjectID)
AKSOUNDENGINE_API bool IsPluginRegistered(AkPluginType in_eType, AkUInt32 in_ulCompanyID, AkUInt32 in_ulPluginID)
void(* AkResourceMonitorCallbackFunc)(const AkResourceMonitorDataSummary *in_pdataSummary)
Definition: AkCallback.h:385
void(* AkJobWorkerFunc)(AkJobType in_jobType, AkUInt32 in_uExecutionTimeUsec)
Definition: AkSoundEngine.h:172
AKSOUNDENGINE_API AKRESULT StopMIDIOnEvent(AkUniqueID in_eventID=AK_INVALID_UNIQUE_ID, AkGameObjectID in_gameObjectID=AK_INVALID_GAME_OBJECT, AkPlayingID in_playingID=AK_INVALID_PLAYING_ID)
AKSOUNDENGINE_API AKRESULT GetSourceStreamBuffering(AkPlayingID in_PlayingID, AkTimeMs &out_buffering, bool &out_bIsBuffering)
@ AkBankContent_StructureOnly
Use AkBankContent_StructureOnly to load only the structural content, including Events,...
Definition: AkSoundEngine.h:2707
IAkSoftwareCodec *(* AkCreateFileSourceCallback)(void *in_pCtx)
Registered file source creation function prototype.
Definition: AkTypes.h:1064
AKSOUNDENGINE_API AKRESULT StartOutputCapture(const AkOSChar *in_CaptureFileName)
AkProfilerPopTimerFunc fnProfilerPopTimer
External (optional) function for tracking performance of the sound engine that is called when a timer...
Definition: AkSoundEngine.h:267
AKSOUNDENGINE_API AKRESULT SetMaxNumVoicesLimit(AkUInt16 in_maxNumberVoices)
AKSOUNDENGINE_API AKRESULT RegisterOutputDeviceMeteringCallback(AkOutputDeviceID in_idOutput, AkOutputDeviceMeteringCallbackFunc in_pfnCallback, AkMeteringFlags in_eMeteringFlags, void *in_pCookie=NULL)
AkUInt32 uNumSamplesPerFrame
Number of samples per audio frame (256, 512, 1024, or 2048).
Definition: AkSoundEngine.h:232
Definition: AkAndroidSoundEngine.h:56
AKSOUNDENGINE_API AKRESULT SetDefaultListeners(const AkGameObjectID *in_pListenerObjs, AkUInt32 in_uNumListeners)
AKSOUNDENGINE_API AKRESULT RegisterBusVolumeCallback(AkUniqueID in_busID, AkBusCallbackFunc in_pfnCallback, void *in_pCookie=NULL)
AKSOUNDENGINE_API AKRESULT UnregisterAllGameObj()
AKSOUNDENGINE_API AKRESULT ResetRTPCValue(AkRtpcID in_rtpcID, AkGameObjectID in_gameObjectID=AK_INVALID_GAME_OBJECT, AkTimeMs in_uValueChangeDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear, bool in_bBypassInternalValueInterpolation=false)
@ AkFloorPlane_XY
The floor is oriented along the XY-plane. The front vector points towards +X, the up vector towards +...
Definition: AkSoundEngine.h:160
AkReal32 fDebugOutOfRangeLimit
Debug setting: Only used when bDebugOutOfRangeCheckEnabled is true. This defines the maximum values s...
Definition: AkSoundEngine.h:260
Definition: AkSpeakerConfig.h:444
AKSOUNDENGINE_API AKRESULT RegisterGlobalCallback(AkGlobalCallbackFunc in_pCallback, AkUInt32 in_eLocation=AkGlobalCallbackLocation_BeginRender, void *in_pCookie=NULL, AkPluginType in_eType=AkPluginTypeNone, AkUInt32 in_ulCompanyID=0, AkUInt32 in_ulPluginID=0)
AKSOUNDENGINE_API void CancelEventCallbackCookie(void *in_pCookie)
AkUInt32 updateBufferTick
Value of GetBufferTick() at the time the position was updated.
Definition: AkSoundEngine.h:286
AKRESULT(* AkGetDeviceListCallback)(AkUInt32 &io_maxNumDevices, AkDeviceDescription *out_deviceDescriptions)
Registered plugin device enumeration function prototype, used for providing lists of devices by plug-...
Definition: IAkPlugin.h:1333
AKSOUNDENGINE_API AKRESULT RegisterGameObj(AkGameObjectID in_gameObjectID)
void(* AkGlobalCallbackFunc)(AK::IAkGlobalPluginContext *in_pContext, AkGlobalCallbackLocation in_eLocation, void *in_pCookie)
Definition: AkCallback.h:378
@ Preparation_LoadAndDecode
Vorbis media is decoded when loading, and an uncompressed PCM version is used for playback.
Definition: AkSoundEngine.h:2695
AkMeteringFlags
Metering flags. Used for specifying bus metering, through AK::SoundEngine::RegisterBusVolumeCallback(...
Definition: AkTypes.h:1171
AKSOUNDENGINE_API AKRESULT GetContainerHistory(AK::IWriteBytes *in_pBytes)
AKSOUNDENGINE_API AKRESULT LoadBank(const char *in_pszString, AkBankID &out_bankID, AkBankType in_bankType=AkBankType_User)
AKSOUNDENGINE_API AKRESULT SetState(AkStateGroupID in_stateGroup, AkStateID in_state)
Platform-independent initialization settings of output devices.
Definition: AkSoundEngine.h:123
AKSOUNDENGINE_API bool IsInitialized()
@ Preparation_Unload
PrepareEvent() will unload required information to play the specified event.
Definition: AkSoundEngine.h:2694
@ AkBankContent_All
Use AkBankContent_All to load both the media and structural content.
Definition: AkSoundEngine.h:2708
void(* AkBusMeteringCallbackFunc)(AkBusMeteringCallbackInfo *in_pCallbackInfo)
Definition: AkCallback.h:292
AKSOUNDENGINE_API AKRESULT SetOfflineRenderingFrameTime(AkReal32 in_fFrameTimeInSeconds)
AKSOUNDENGINE_API AKRESULT ClearBanks()
AKSOUNDENGINE_API AKRESULT UnregisterAudioDeviceStatusCallback()
Unregisters the callback for the Audio Device status changes, registered by RegisterAudioDeviceStatus...
Definition: IBytes.h:43
AKSOUNDENGINE_API AKRESULT WakeupFromSuspend(AkUInt32 in_uDelayMs=0)
AKSOUNDENGINE_API AKRESULT SetMultipleObstructionAndOcclusion(AkGameObjectID in_EmitterID, AkGameObjectID in_uListenerID, AkObstructionOcclusionValues *in_fObstructionOcclusionValues, AkUInt32 in_uNumOcclusionObstruction)
AkUInt32 samplePosition
Position of the source (in samples) associated with that playing item.
Definition: AkSoundEngine.h:285
AKSOUNDENGINE_API AKRESULT SetOutputVolume(AkOutputDeviceID in_idOutput, AkReal32 in_fVolume)
AKSOUNDENGINE_API AKRESULT GetPanningRule(AkPanningRule &out_ePanningRule, AkOutputDeviceID in_idOutput=0)
void(* AkOutputDeviceMeteringCallbackFunc)(AkOutputDeviceMeteringCallbackInfo *in_pCallbackInfo)
Definition: AkCallback.h:302
AKSOUNDENGINE_API AKRESULT ResetRTPCValueByPlayingID(AkRtpcID in_rtpcID, AkPlayingID in_playingID, AkTimeMs in_uValueChangeDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear, bool in_bBypassInternalValueInterpolation=false)
AKSOUNDENGINE_API AKRESULT SetBankLoadIOSettings(AkReal32 in_fThroughput, AkPriority in_priority)
AKSOUNDENGINE_API AKRESULT AddOutputCaptureMarker(const char *in_MarkerText)
AKSOUNDENGINE_API AKRESULT RegisterAudioDeviceStatusCallback(AK::AkDeviceStatusCallbackFunc in_pCallback)
AKSOUNDENGINE_API AKRESULT PostTrigger(AkTriggerID in_triggerID, AkGameObjectID in_gameObjectID)
AKSOUNDENGINE_API AKRESULT PinEventInStreamCache(AkUniqueID in_eventID, AkPriority in_uActivePriority, AkPriority in_uInactivePriority)
AKSOUNDENGINE_API void CancelEventCallbackGameObject(AkGameObjectID in_gameObjectID)
Position and orientation of game objects in the world (i.e. supports 64-bit-precision position)
Definition: AkTypes.h:429
AKSOUNDENGINE_API AKRESULT ReplaceOutput(const AkOutputSettings &in_Settings, AkOutputDeviceID in_outputDeviceId, AkOutputDeviceID *out_pOutputDeviceId=NULL)
AKSOUNDENGINE_API void GetDefaultInitSettings(AkInitSettings &out_settings)
AKSOUNDENGINE_API AKRESULT RegisterPlugin(AkPluginType in_eType, AkUInt32 in_ulCompanyID, AkUInt32 in_ulPluginID, AkCreatePluginCallback in_pCreateFunc, AkCreateParamCallback in_pCreateParamFunc, AkGetDeviceListCallback in_pGetDeviceList=NULL)
FuncRequestJobWorker fnRequestJobWorker
Function called by the job manager when a new worker needs to be requested. When null,...
Definition: AkSoundEngine.h:188
AKSOUNDENGINE_API AKRESULT SetActorMixerEffect(AkUniqueID in_audioNodeID, AkUInt32 in_uFXIndex, AkUniqueID in_shareSetID)
AkSetPositionFlags
Flags to independently set the position of the emitter or listener component on a game object.
Definition: AkTypes.h:1142
AKSOUNDENGINE_API AKRESULT RegisterCodec(AkUInt32 in_ulCompanyID, AkUInt32 in_ulCodecID, AkCreateFileSourceCallback in_pFileCreateFunc, AkCreateBankSourceCallback in_pBankCreateFunc)
@ MultiPositionType_MultiDirections
Simulate one sound coming from multiple directions. Useful for repositionning sounds based on wall op...
Definition: AkTypes.h:1114
bool bUseLEngineThread
Use a separate thread for processing audio. If set to false, audio processing will occur in RenderAud...
Definition: AkSoundEngine.h:243
AKSOUNDENGINE_API AKRESULT StopProfilerCapture()
AKSOUNDENGINE_API AKRESULT SetObjectObstructionAndOcclusion(AkGameObjectID in_EmitterID, AkGameObjectID in_ListenerID, AkReal32 in_fObstructionLevel, AkReal32 in_fOcclusionLevel)
AKSOUNDENGINE_API AkOutputDeviceID GetOutputID(AkUniqueID in_idShareset, AkUInt32 in_idDevice)
AkOutputSettings(const char *in_szDeviceShareSet, AkUniqueID in_idDevice=AK_INVALID_UNIQUE_ID, AkChannelConfig in_channelConfig=AkChannelConfig(), AkPanningRule in_ePanning=AkPanningRule_Speakers)
AkUInt32 uMaxActiveWorkers[AK_NUM_JOB_TYPES]
The maximum number of concurrent workers that will be requested. Must be >= 1 for each jobType.
Definition: AkSoundEngine.h:190
AkReal32 * VectorPtr
Volume vector. Access each element with the standard bracket [] operator.
Definition: AkSpeakerVolumes.h:49
AKSOUNDENGINE_API AKRESULT DecodeBank(const void *in_pInMemoryBankPtr, AkUInt32 in_uInMemoryBankSize, AkMemPoolId in_uPoolForDecodedBank, void *&out_pDecodedBankPtr, AkUInt32 &out_uDecodedBankSize)
Definition: AkTypes.h:264
AKSOUNDENGINE_API AKRESULT StartProfilerCapture(const AkOSChar *in_CaptureFileName)
void(* AkProfilerPopTimerFunc)()
External (optional) function for tracking performance of the sound engine that is called when a timer...
Definition: AkSoundEngine.h:207
@ AkFloorPlane_XZ
The floor is oriented along the ZX-plane. The front vector points towards +Z, the up vector towards +...
Definition: AkSoundEngine.h:159
AkUInt32 uContinuousPlaybackLookAhead
Default is 1 audio quantum, also known as an audio frame. Its size is equal to AkInitSettings::uNumSa...
Definition: AkSoundEngine.h:229
AKSOUNDENGINE_API AKRESULT RemoveOutput(AkOutputDeviceID in_idOutput)
bool bEnableGameSyncPreparation
Sets to true to enable AK::SoundEngine::PrepareGameSync usage.
Definition: AkSoundEngine.h:228
AKSOUNDENGINE_API AkUInt32 GetBufferTick()
AKSOUNDENGINE_API AKRESULT RegisterResourceMonitorCallback(AkResourceMonitorCallbackFunc in_pCallback)
void * pClientData
Arbitrary data that will be passed back to the client when calling FuncRequestJobWorker.
Definition: AkSoundEngine.h:195
AKSOUNDENGINE_API AKRESULT GetOutputDeviceConfiguration(AkOutputDeviceID in_idOutput, AkChannelConfig &io_channelConfig, Ak3DAudioSinkCapabilities &io_capabilities)
AKSOUNDENGINE_API AKRESULT GetDeviceSpatialAudioSupport(AkUInt32 in_idDevice)
AKSOUNDENGINE_API AKRESULT AddListener(AkGameObjectID in_emitterGameObj, AkGameObjectID in_listenerGameObj)
AkAssertHook pfnAssertHook
External assertion handling function (optional)
Definition: AkSoundEngine.h:224
Necessary settings for setting externally-loaded sources.
Definition: AkSoundEngine.h:273
AkUInt32 uMemorySlabSize
Size of each memory slab used for job manager memory. Must be a power of two. Default is 8K.
Definition: AkSoundEngine.h:193
AKSOUNDENGINE_API AKRESULT SeekOnEvent(AkUniqueID in_eventID, AkGameObjectID in_gameObjectID, AkTimeMs in_iPosition, bool in_bSeekToNearestMarker=false, AkPlayingID in_PlayingID=AK_INVALID_PLAYING_ID)
AkUInt32 uMaxHardwareTimeoutMs
Amount of time to wait for HW devices to trigger an audio interrupt. If there is no interrupt after t...
Definition: AkSoundEngine.h:240
AKSOUNDENGINE_API AKRESULT SetScalingFactor(AkGameObjectID in_GameObjectID, AkReal32 in_fAttenuationScalingFactor)
AKSOUNDENGINE_API AKRESULT RegisterCaptureCallback(AkCaptureCallbackFunc in_pfnCallback, AkOutputDeviceID in_idOutput=AK_INVALID_OUTPUT_DEVICE_ID, void *in_pCookie=NULL)
@ Preparation_Load
PrepareEvent() will load required information to play the specified event.
Definition: AkSoundEngine.h:2693
AKSOUNDENGINE_API AKRESULT UnregisterGameObj(AkGameObjectID in_gameObjectID)
AKSOUNDENGINE_API AKRESULT SetJobMgrMaxActiveWorkers(AkJobType in_jobType, AkUInt32 in_uNewMaxActiveWorkers)
AKSOUNDENGINE_API AKRESULT RenderAudio(bool in_bAllowSyncRender=true)
AkJobMgrSettings settingsJobManager
Settings to configure the behavior of the Sound Engine's internal job manager.
Definition: AkSoundEngine.h:238
void(* AkCaptureCallbackFunc)(AkAudioBuffer &in_CaptureBuffer, AkOutputDeviceID in_idOutput, void *in_pCookie)
Definition: AkCallback.h:419
Positioning information for a sound, with specified subset of its channels.
Definition: AkTypes.h:731
AKSOUNDENGINE_API AKRESULT SetListenerSpatialization(AkGameObjectID in_uListenerID, bool in_bSpatialized, AkChannelConfig in_channelConfig, AK::SpeakerVolumes::VectorPtr in_pVolumeOffsets=NULL)
AKSOUNDENGINE_API AKRESULT SetGameObjectAuxSendValues(AkGameObjectID in_gameObjectID, AkAuxSendValue *in_aAuxSendValues, AkUInt32 in_uNumSendValues)
Settings for the Sound Engine's internal job manager.
Definition: AkSoundEngine.h:179
AKSOUNDENGINE_API AkPlayingID PostMIDIOnEvent(AkUniqueID in_eventID, AkGameObjectID in_gameObjectID, AkMIDIPost *in_pPosts, AkUInt16 in_uNumPosts, bool in_bAbsoluteOffsets=false, AkUInt32 in_uFlags=0, AkCallbackFunc in_pfnCallback=NULL, void *in_pCookie=NULL, AkPlayingID in_playingID=AK_INVALID_PLAYING_ID)
static const AkUInt32 AK_NUM_JOB_TYPES
Number of possible job types recognized by the Sound Engine.
Definition: AkTypes.h:130
void(* AkCallbackFunc)(AkCallbackType in_eType, AkCallbackInfo *in_pCallbackInfo)
Definition: AkCallback.h:272
AKRESULT(* AkBackgroundMusicChangeCallbackFunc)(bool in_bBackgroundMusicMuted, void *in_pCookie)
Definition: AkSoundEngine.h:116
AKSOUNDENGINE_API AKRESULT UnregisterCaptureCallback(AkCaptureCallbackFunc in_pfnCallback, AkOutputDeviceID in_idOutput=AK_INVALID_OUTPUT_DEVICE_ID, void *in_pCookie=NULL)
AKSOUNDENGINE_API AKRESULT AddOutputCaptureBinaryMarker(void *in_pMarkerData, AkUInt32 in_uMarkerDataSize)
AKSOUNDENGINE_API AkChannelConfig GetSpeakerConfiguration(AkOutputDeviceID in_idOutput=0)
AKSOUNDENGINE_API AKRESULT GetAudioSettings(AkAudioSettings &out_audioSettings)
AkUInt32 uMediaSize
Size, in bytes, of the data to be set for the source.
Definition: AkSoundEngine.h:276
AKSOUNDENGINE_API AKRESULT UnloadBank(const char *in_pszString, const void *in_pInMemoryBankPtr, AkBankType in_bankType=AkBankType_User)
AKSOUNDENGINE_API AKRESULT RegisterBusMeteringCallback(AkUniqueID in_busID, AkBusMeteringCallbackFunc in_pfnCallback, AkMeteringFlags in_eMeteringFlags, void *in_pCookie=NULL)
AKSOUNDENGINE_API void SetRandomSeed(AkUInt32 in_uSeed)
const AkOSChar * szPluginDLLPath
When using DLLs for plugins, specify their path. Leave NULL if DLLs are in the same folder as the gam...
Definition: AkSoundEngine.h:247
Definition: IAkPlugin.h:1365
void(* AkBusCallbackFunc)(AkSpeakerVolumeMatrixCallbackInfo *in_pCallbackInfo)
Definition: AkCallback.h:282
AkUInt32 uNumMemorySlabs
Number of memory slabs to pre-allocate for job manager memory. At least one slab per worker thread sh...
Definition: AkSoundEngine.h:192
AKSOUNDENGINE_API void GetDefaultPlatformInitSettings(AkPlatformInitSettings &out_platformSettings)
AKSOUNDENGINE_API AKRESULT TryUnsetMedia(AkSourceSettings *in_pSourceSettings, AkUInt32 in_uNumSourceSettings, AKRESULT *out_pUnsetResults)
AKSOUNDENGINE_API AKRESULT SetMultiplePositions(AkGameObjectID in_GameObjectID, const AkSoundPosition *in_pPositions, AkUInt16 in_NumPositions, MultiPositionType in_eMultiPositionType=MultiPositionType_MultiDirections, AkSetPositionFlags in_eFlags=AkSetPositionFlags_Default)
AKSOUNDENGINE_API AKRESULT GetSourcePlayPosition(AkPlayingID in_PlayingID, AkTimeMs *out_puPosition, bool in_bExtrapolate=true)
Definition: IBytes.h:111
AKSOUNDENGINE_API AKRESULT SetDistanceProbe(AkGameObjectID in_listenerGameObjectID, AkGameObjectID in_distanceProbeGameObjectID)
AKSOUNDENGINE_API AKRESULT SetListeners(AkGameObjectID in_emitterGameObj, const AkGameObjectID *in_pListenerGameObjs, AkUInt32 in_uNumListeners)
AKSOUNDENGINE_API AKRESULT SetPosition(AkGameObjectID in_GameObjectID, const AkSoundPosition &in_Position, AkSetPositionFlags in_eFlags=AkSetPositionFlags_Default)
AKSOUNDENGINE_API AKRESULT SendPluginCustomGameData(AkUniqueID in_busID, AkGameObjectID in_busObjectID, AkPluginType in_eType, AkUInt32 in_uCompanyID, AkUInt32 in_uPluginID, const void *in_pData, AkUInt32 in_uSizeInBytes)
@ AkPanningRule_Speakers
Left and right positioned 60 degrees apart (by default - see AK::SoundEngine::GetSpeakerAngles()).
Definition: AkTypes.h:1152
AKSOUNDENGINE_API AKRESULT SetBusEffect(AkUniqueID in_audioNodeID, AkUInt32 in_uFXIndex, AkUniqueID in_shareSetID)
void(* AkBankCallbackFunc)(AkUInt32 in_bankID, const void *in_pInMemoryBankPtr, AKRESULT in_eLoadResult, void *in_pCookie)
Definition: AkCallback.h:332
AKSOUNDENGINE_API void MuteBackgroundMusic(bool in_bMute)
AKSOUNDENGINE_API AKRESULT SetContainerHistory(AK::IReadBytes *in_pBytes)
void(* AkAssertHook)(const char *in_pszExpression, const char *in_pszFileName, int in_lineNumber)
Definition: AkSoundEngine.h:100
AKSOUNDENGINE_API AkUInt32 GetIDFromString(const char *in_pszString)
AKSOUNDENGINE_API AKRESULT PrepareBank(AK::SoundEngine::PreparationType in_PreparationType, const char *in_pszString, AK::SoundEngine::AkBankContent in_uFlags=AkBankContent_All, AkBankType in_bankType=AkBankType_User)
AKSOUNDENGINE_API AKRESULT SetOfflineRendering(bool in_bEnableOfflineRendering)
AKSOUNDENGINE_API AKRESULT LoadBankMemoryCopy(const void *in_pInMemoryBankPtr, AkUInt32 in_uInMemoryBankSize, AkBankID &out_bankID)
AKSOUNDENGINE_API AKRESULT SetPanningRule(AkPanningRule in_ePanningRule, AkOutputDeviceID in_idOutput=0)
AKSOUNDENGINE_API AKRESULT AddDefaultListener(AkGameObjectID in_listenerGameObj)
AKSOUNDENGINE_API AKRESULT SetGameObjectOutputBusVolume(AkGameObjectID in_emitterObjID, AkGameObjectID in_listenerObjID, AkReal32 in_fControlValue)
AKSOUNDENGINE_API AKRESULT AddOutput(const AkOutputSettings &in_Settings, AkOutputDeviceID *out_pDeviceID=NULL, const AkGameObjectID *in_pListenerIDs=NULL, AkUInt32 in_uNumListeners=0)
AKSOUNDENGINE_API AKRESULT Suspend(bool in_bRenderAnyway=false, bool in_bFadeOut=true)
Definition: AkTypes.h:244
AKSOUNDENGINE_API AKRESULT StopOutputCapture()
AKSOUNDENGINE_API AKRESULT SetSpeakerAngles(const AkReal32 *in_pfSpeakerAngles, AkUInt32 in_uNumAngles, AkReal32 in_fHeightAngle=AK_DEFAULT_HEIGHT_ANGLE, AkOutputDeviceID in_idOutput=0)
AkUInt32 uCpuMonitorQueueMaxSize
Maximum size of the CPU monitoring queue, per thread, in bytes. This parameter is not used in Release...
Definition: AkSoundEngine.h:235
AK::IAkPluginParam *(* AkCreateParamCallback)(AK::IAkPluginMemAlloc *in_pAllocator)
Registered plugin parameter node creation function prototype.
Definition: IAkPlugin.h:1331
AKSOUNDENGINE_API AKRESULT ResetListenersToDefault(AkGameObjectID in_emitterGameObj)
AKSOUNDENGINE_API AKRESULT SetBusDevice(AkUniqueID in_idBus, AkUniqueID in_idNewDevice)
AKSOUNDENGINE_API AKRESULT ExecuteActionOnEvent(AkUniqueID in_eventID, AkActionOnEventType in_ActionType, AkGameObjectID in_gameObjectID=AK_INVALID_GAME_OBJECT, AkTimeMs in_uTransitionDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear, AkPlayingID in_PlayingID=AK_INVALID_PLAYING_ID)
bool bOfflineRendering
Enables/disables offline rendering. Offline Rendering with Wwise.
Definition: AkSoundEngine.h:264
AKSOUNDENGINE_API AKRESULT SetMedia(AkSourceSettings *in_pSourceSettings, AkUInt32 in_uNumSourceSettings)
AKSOUNDENGINE_API void CancelBankCallbackCookie(void *in_pCookie)
static const AkGameObjectID AK_INVALID_GAME_OBJECT
Invalid game object (may also mean all game objects)
Definition: AkTypes.h:96
@ AkFloorPlane_YZ
The floor is oriented along the YZ-plane. The front vector points towards +Y, the up vector towards +...
Definition: AkSoundEngine.h:161
AkTimeMs msTime
Position of the source (in ms) associated with that playing item.
Definition: AkSoundEngine.h:284
void * BGMCallbackCookie
Application-defined user data for the audio source change event callback function.
Definition: AkSoundEngine.h:246
AkUniqueID sourceID
Source ID (available in the SoundBank content files)
Definition: AkSoundEngine.h:274
bool bUseSoundBankMgrThread
Use a separate thread for loading sound banks. Allows asynchronous operations.
Definition: AkSoundEngine.h:242
void(* AkDeviceStatusCallbackFunc)(AK::IAkGlobalPluginContext *in_pContext, AkUniqueID in_idAudioDeviceShareset, AkUInt32 in_idDeviceID, AkAudioDeviceEvent in_idEvent, AKRESULT in_AkResult)
Definition: AkCallback.h:401
AkUniqueID mediaID
Media ID of playing item. (corresponds to 'ID' attribute of 'File' element in SoundBank metadata file...
Definition: AkSoundEngine.h:283
Definition: AkMidiTypes.h:237
bool bDebugOutOfRangeCheckEnabled
Debug setting: Enable checks for out-of-range (and NAN) floats in the processing code....
Definition: AkSoundEngine.h:262
Definition: AkSoundEngine.h:223
AKSOUNDENGINE_API AKRESULT UnpinEventInStreamCache(AkUniqueID in_eventID)
AKSOUNDENGINE_API AKRESULT SetRTPCValueByPlayingID(AkRtpcID in_rtpcID, AkRtpcValue in_value, AkPlayingID in_playingID, AkTimeMs in_uValueChangeDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear, bool in_bBypassInternalValueInterpolation=false)
AKSOUNDENGINE_API AKRESULT UnregisterResourceMonitorCallback(AkResourceMonitorCallbackFunc in_pCallback)
AKSOUNDENGINE_API AKRESULT UnregisterGlobalCallback(AkGlobalCallbackFunc in_pCallback, AkUInt32 in_eLocation=AkGlobalCallbackLocation_BeginRender)
AkProfilerPostMarkerFunc fnProfilerPostMarker
External (optional) function for tracking significant events in the sound engine, to act as a marker ...
Definition: AkSoundEngine.h:268
AKSOUNDENGINE_API AKRESULT ClearPreparedEvents()
AKSOUNDENGINE_API AKRESULT SetVolumeThreshold(AkReal32 in_fVolumeThresholdDB)
AKSOUNDENGINE_API AkPlayingID PostEvent(AkUniqueID in_eventID, AkGameObjectID in_gameObjectID, AkUInt32 in_uFlags=0, AkCallbackFunc in_pfnCallback=NULL, void *in_pCookie=NULL, AkUInt32 in_cExternals=0, AkExternalSourceInfo *in_pExternalSources=NULL, AkPlayingID in_PlayingID=AK_INVALID_PLAYING_ID)
AKSOUNDENGINE_API void Term()
AKSOUNDENGINE_API AKRESULT GetDeviceList(AkUInt32 in_ulCompanyID, AkUInt32 in_ulPluginID, AkUInt32 &io_maxNumDevices, AkDeviceDescription *out_deviceDescriptions)
AKSOUNDENGINE_API void StopAll(AkGameObjectID in_gameObjectID=AK_INVALID_GAME_OBJECT)
AK::IAkPlugin *(* AkCreatePluginCallback)(AK::IAkPluginMemAlloc *in_pAllocator)
Registered plugin creation function prototype.
Definition: IAkPlugin.h:1329
IAkSoftwareCodec *(* AkCreateBankSourceCallback)(void *in_pCtx)
Registered bank source node creation function prototype.
Definition: AkTypes.h:1066
AKSOUNDENGINE_API AKRESULT PrepareBus(PreparationType in_PreparationType, const char **in_ppszString, AkUInt32 in_uBusses)
AKSOUNDENGINE_API AkUInt64 GetSampleTick()
AKSOUNDENGINE_API AK::IAkGlobalPluginContext * GetGlobalPluginContext()
AKSOUNDENGINE_API AKRESULT SetBusConfig(AkUniqueID in_audioNodeID, AkChannelConfig in_channelConfig)
AKSOUNDENGINE_API bool GetBackgroundMusicMute()
void(* AkProfilerPushTimerFunc)(AkPluginID in_uPluginID, const char *in_pszZoneName)
Definition: AkSoundEngine.h:201
AkProfilerPushTimerFunc fnProfilerPushTimer
External (optional) function for tracking performance of the sound engine that is called when a timer...
Definition: AkSoundEngine.h:266
AKSOUNDENGINE_API void StopPlayingID(AkPlayingID in_playingID, AkTimeMs in_uTransitionDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear)
@ AkGlobalCallbackLocation_BeginRender
Start of frame rendering, after having processed game messages.
Definition: AkCallback.h:348
void(* FuncRequestJobWorker)(AkJobWorkerFunc in_fnJobWorker, AkJobType in_jobType, AkUInt32 in_uNumWorkers, void *in_pClientData)
Callback function prototype definition used for handling requests from JobMgr for new workers to perf...
Definition: AkSoundEngine.h:181
AkUInt32 uBankReadBufferSize
The number of bytes read by the BankReader when new data needs to be loaded from disk during serializ...
Definition: AkSoundEngine.h:258
AKSOUNDENGINE_API AKRESULT RemoveListener(AkGameObjectID in_emitterGameObj, AkGameObjectID in_listenerGameObj)
AKSOUNDENGINE_API AKRESULT GetBufferStatusForPinnedEvent(AkUniqueID in_eventID, AkReal32 &out_fPercentBuffered, bool &out_bCachePinnedMemoryFull)
AKSOUNDENGINE_API AKRESULT GetSpeakerAngles(AkReal32 *io_pfSpeakerAngles, AkUInt32 &io_uNumAngles, AkReal32 &out_fHeightAngle, AkOutputDeviceID in_idOutput=0)
AKSOUNDENGINE_API void CancelEventCallback(AkPlayingID in_playingID)
Was this page helpful?
Need Support?
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageTell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise