Version
menu

Wwise SDK 2025.1.2
AkSoundEngine.h
Go to the documentation of this file.
1 /*******************************************************************************
2 The content of this file includes portions of the AUDIOKINETIC Wwise Technology
3 released in source code form as part of the SDK installer package.
4 
5 Commercial License Usage
6 
7 Licensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technology
8 may use this file in accordance with the end user license agreement provided
9 with the software or, alternatively, in accordance with the terms contained in a
10 written agreement between you and Audiokinetic Inc.
11 
12 Apache License Usage
13 
14 Alternatively, this file may be used under the Apache License, Version 2.0 (the
15 "Apache License"); you may not use this file except in compliance with the
16 Apache License. You may obtain a copy of the Apache License at
17 http://www.apache.org/licenses/LICENSE-2.0.
18 
19 Unless required by applicable law or agreed to in writing, software distributed
20 under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
21 OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for
22 the specific language governing permissions and limitations under the License.
23 
24  Copyright (c) 2025 Audiokinetic Inc.
25 *******************************************************************************/
26 
27 // AkSoundEngine.h
28 
29 /// \file
30 /// The main sound engine interface.
31 
32 
33 #ifndef _AK_SOUNDENGINE_H_
34 #define _AK_SOUNDENGINE_H_
35 
40 
41 #if defined(AK_NULL_PLATFORM)
42 // null platform has no platform-specific soundengine
43 struct AkPlatformInitSettings { };
44 #elif defined(AK_WIN)
47 
48 #elif defined (AK_MAC_OS_X)
51 
52 #elif defined (AK_IOS)
55 
56 #elif defined(AK_XBOXGC) // Gaming.Xbox platform
59 
60 #elif defined( AK_ANDROID )
63 
64 #elif defined( AK_HARMONY )
67 
68 #elif defined (AK_PS4)
71 
72 #elif defined (AK_PS5)
75 
76 #elif defined( AK_LINUX_DESKTOP )
79 
80 #elif defined( AK_EMSCRIPTEN )
83 
84 #elif defined( AK_QNX )
85 #include <AK/SoundEngine/Platforms/QNX/AkQNXSoundEngine.h>
86 #include <AK/SoundEngine/Platforms/QNX/AkPlatformContext.h>
87 
88 #elif defined( AK_NX )
91 
92 #elif defined( AK_OUNCE )
95 
96 #else
97 #error AkSoundEngine.h: Undefined platform
98 #endif
99 
100 #ifndef AK_ASSERT_HOOK
101  /// Function called on assert handling, optional
102  /// \sa
103  /// - AkInitSettings
105  const char * in_pszExpression, ///< Expression
106  const char * in_pszFileName, ///< File Name
107  int in_lineNumber ///< Line Number
108  );
109  #define AK_ASSERT_HOOK
110 #endif
111 
112 /// Callback function prototype for User Music notifications
113 /// It is useful for reacting to user music playback.
114 ///
115 /// \sa
116 /// - \ref AkGlobalCallbackFunc
117 /// - \ref AkPlatformInitSettings
118 /// - \ref background_music_and_dvr
119 ///
121  bool in_bBackgroundMusicMuted, ///< Flag indicating whether the busses tagged as "background music" in the project are muted or not.
122  void* in_pCookie ///< User-provided data, e.g. a user structure.
123  );
124 
125 /// 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.
126 /// AkFloorPlane is used in to orient the Game Object 3D Viewer in Wwise, and in the transformation of geometry instances in Wwise Spatial Audio.
128 {
129  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.
130  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.
131  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.
132  AkFloorPlane_Last, ///< End of enum, invalid value.
133  AkFloorPlane_Default = AkFloorPlane_XZ ///< The Wwise default floor plane is ZX.
134 };
135 
136 // Function that the host runtime must call to allow for jobs to execute.
137 // in_jobType is the type originally provided by AkJobMgrSettings::FuncRequestJobWorker.
138 // in_uExecutionTimeUsec is the number of microseconds that the function should execute for before terminating.
139 // Note that the deadline is only checked after each individual job completes execution, so the function may run slightly
140 // longer than intended. The "in_uExecutionTimeUsec" should be considered a suggestion or guideline, not a strict rule.
141 // A value of 0 means that the function will run until there are no more jobs ready to be immediately executed.
143  AkJobType in_jobType,
144  AkUInt32 in_uExecutionTimeUsec
145  );
146 
147 /// Settings for the Sound Engine's internal job manager
149 {
150  /// Callback function prototype definition used for handling requests from JobMgr for new workers to perform work.
152  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.
153  AkJobType in_jobType, ///< The type of job worker that has been requested. This should be passed forward to in_fnJobWorker
154  AkUInt32 in_uNumWorkers, ///< Number of workers requested
155  void * in_pClientData ///< Data provided by client in AkJobMgrSettings
156  );
157 
158  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().
159 
160  AkUInt32 uMaxActiveWorkers[AK_NUM_JOB_TYPES]; ///< The maximum number of concurrent workers that will be requested. Must be >= 1 for each jobType.
161 
162  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.
163  AkUInt32 uMemorySlabSize; ///< Size of each memory slab used for job manager memory. Must be a power of two. Default is 8K.
164 
165  void* pClientData; ///< Arbitrary data that will be passed back to the client when calling FuncRequestJobWorker
166 };
167 
168 /// 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)
169 /// in_uPluginID may be non-zero when this function is called, to provide extra data about what context this Timer was started in.
170 /// 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.
172  AkPluginID in_uPluginID,
173  const char* in_pszZoneName
174  );
175 
176 /// 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)
178 
179 ///< 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)
180 /// in_uPluginID may be non-zero when this function is called, to provide extra data about what context this Marker was posted in.
181 /// 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.
183  AkPluginID in_uPluginID,
184  const char* in_pszMarkerName
185  );
186 
187 /// Platform-independent initialization settings of the sound engine
188 /// \sa
189 /// - <tt>AK::SoundEngine::Init()</tt>
190 /// - <tt>AK::SoundEngine::GetDefaultInitSettings()</tt>
191 /// - \ref soundengine_integration_init_advanced
193 {
194  AkAssertHook pfnAssertHook; ///< External assertion handling function (optional)
195 
196  AkUInt32 uMaxNumPaths; ///< Maximum number of paths for positioning
197  AkUInt32 uCommandQueueSize; ///< Size of the command queue, in bytes
198  bool bEnableGameSyncPreparation; ///< Sets to true to enable AK::SoundEngine::PrepareGameSync usage.
199  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.
200  ///< 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.
201  AkReal32 fStreamingLookAheadRatio; ///< Multiplication factor for all streaming look-ahead heuristic values, for music streams.
202 
203  AkUInt32 uNumSamplesPerFrame; ///< Number of samples per audio frame (256, 512, 1024, or 2048).
204 
205  AkUInt32 uMonitorQueuePoolSize; ///< Size of the monitoring queue, in bytes. This parameter is not used in Release build.
206  AkUInt32 uCpuMonitorQueueMaxSize; ///< Maximum size of the CPU monitoring queue, per thread, in bytes. This parameter is not used in Release build.
207 
208  AkOutputSettings settingsMainOutput; ///< Main output device settings.
209  AkJobMgrSettings settingsJobManager; ///< Settings to configure the behavior of the Sound Engine's internal job manager
210 
211  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)
212 
213  bool bUseSoundBankMgrThread; ///< Use a Wwise-owned thread for loading sound banks. If set to false, bank-loading will occur only inside a call to AK::SoundEngine::ProcessBanks(). \sa \ref goingfurther_bankmgrthread
214  bool bUseLEngineThread; ///< Use a Wwise-owned thread for processing audio. If set to false, audio processing will occur only inside a call to AK::SoundEngine::RenderAudio(). \sa \ref goingfurther_eventmgrthread
215 
216  AkBackgroundMusicChangeCallbackFunc BGMCallback; ///< Application-defined audio source change event callback function.
217  void* BGMCallbackCookie; ///< Application-defined user data for the audio source change event callback function.
218  const AkOSChar * szPluginDLLPath; ///< When using DLLs for plugins, specify their path. Leave NULL if DLLs are in the same folder as the game executable.
219 
220  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.
221  ///< AkFloorPlane is used in to orient the Game Object 3D Viewer in Wwise, and in the transformation of geometry instances in Wwise Spatial Audio.
222 
223  AkReal32 fGameUnitsToMeters; ///< The number of game units in a meter.
224  ///< 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.
225  ///< This setting is also used to simulate real-world positioning of System Audio Objects, to improve the HRTF in some cases.
226  ///< Note that for legacy reasons, this setting's name is misleading. Its value should represent the number of game units *per* meter.
227  ///< For example, if your game engine sends positions in centimeters, the value of fGameUnitsToMeters should be 100.
228 
229  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.
230 
231  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.
232 
233  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.
234 
235  bool bOfflineRendering; ///< Enables/disables offline rendering. \ref goingfurther_offlinerendering
236 
237  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)
238  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)
239  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)
240 };
241 
242 /// Necessary settings for setting externally-loaded sources
244 {
245  AkUniqueID sourceID; ///< Source ID (available in the SoundBank content files)
246  AkUInt8* pMediaMemory; ///< Pointer to the data to be set for the source
247  AkUInt32 uMediaSize; ///< Size, in bytes, of the data to be set for the source
248 };
249 
250 /// Return values for GetSourcePlayPositions.
252 {
253  AkUniqueID audioNodeID; ///< Audio Node ID of playing item
254  AkUniqueID mediaID; ///< Media ID of playing item. (corresponds to 'ID' attribute of 'File' element in SoundBank metadata file)
255  AkTimeMs msTime; ///< Position of the source (in ms) associated with that playing item
256  AkUInt32 samplePosition; ///< Position of the source (in samples) associated with that playing item
257  AkUInt32 updateBufferTick; ///< Value of GetBufferTick() at the time the position was updated
258 };
259 
260 /// Audiokinetic namespace
261 namespace AK
262 {
263  class IReadBytes;
264  class IWriteBytes;
265 
266  /// Audiokinetic sound engine namespace
267  /// \remarks The functions in this namespace are thread-safe, unless stated otherwise.
268  namespace SoundEngine
269  {
270  ///////////////////////////////////////////////////////////////////////
271  /// @name Initialization
272  //@{
273 
274  /// Query whether or not the sound engine has been successfully initialized.
275  /// \warning This function is not thread-safe. It should not be called at the same time as \c SoundEngine::Init() or \c SoundEngine::Term().
276  /// \return \c True if the sound engine has been initialized, \c False otherwise.
277  /// \sa
278  /// - \ref soundengine_integration_init_advanced
279  /// - <tt>AK::SoundEngine::Init()</tt>
280  /// - <tt>AK::SoundEngine::Term()</tt>
282 
283  /// Initialize the sound engine.
284  /// \warning This function is not thread-safe.
285  /// \remark The initial settings should be initialized using <tt>AK::SoundEngine::GetDefaultInitSettings()</tt>
286  /// and <tt>AK::SoundEngine::GetDefaultPlatformInitSettings()</tt> to fill the structures with their
287  /// default settings. This is not mandatory, but it helps avoid backward compatibility problems.
288  ///
289  /// \return
290  /// - \c AK_Success if the initialization was successful
291  /// - \c AK_MemManagerNotInitialized if the memory manager is not available or not properly initialized
292  /// - \c AK_StreamMgrNotInitialized if the stream manager is not available or not properly initialized
293  /// - \c AK_SSEInstructionsNotSupported if the machine does not support SSE instruction (only on the PC)
294  /// - \c AK_InsufficientMemory if there is not enough memory available to initialize the sound engine properly
295  /// - \c AK_InvalidParameter if some parameters are invalid
296  /// - \c AK_AlreadyInitialized if the sound engine is already initialized, or if the provided settings result in insufficient
297  /// - \c AK_Fail for unknown errors, check with AK Support.
298  /// resources for the initialization.
299  /// \sa
300  /// - \ref soundengine_integration_init_advanced
301  /// - \ref workingwithsdks_initialization
302  /// - <tt>AK::SoundEngine::Term()</tt>
303  /// - <tt>AK::SoundEngine::GetDefaultInitSettings()</tt>
304  /// - <tt>AK::SoundEngine::GetDefaultPlatformInitSettings()</tt>
306  AkInitSettings * in_pSettings, ///< Initialization settings (can be NULL, to use the default values)
307  AkPlatformInitSettings * in_pPlatformSettings ///< Platform-specific settings (can be NULL, to use the default values)
308  );
309 
310  /// Gets the default values of the platform-independent initialization settings.
311  /// \warning This function is not thread-safe.
312  /// \sa
313  /// - \ref soundengine_integration_init_advanced
314  /// - <tt>AK::SoundEngine::Init()</tt>
315  /// - <tt>AK::SoundEngine::GetDefaultPlatformInitSettings()</tt>
317  AkInitSettings & out_settings ///< Returned default platform-independent sound engine settings
318  );
319 
320  /// Gets the default values of the platform-specific initialization settings.
321  ///
322  /// \warning This function is not thread-safe.
323  /// \sa
324  /// - \ref soundengine_integration_init_advanced
325  /// - <tt>AK::SoundEngine::Init()</tt>
326  /// - <tt>AK::SoundEngine::GetDefaultInitSettings()</tt>
328  AkPlatformInitSettings & out_platformSettings ///< Returned default platform-specific sound engine settings
329  );
330 
331  /// Terminates the sound engine.
332  /// If some sounds are still playing or events are still being processed when this function is
333  /// called, they will be stopped.
334  /// \warning This function is not thread-safe.
335  /// \warning Before calling Term, you must ensure that no other thread is accessing the sound engine.
336  /// \sa
337  /// - \ref soundengine_integration_init_advanced
338  /// - <tt>AK::SoundEngine::Init()</tt>
339  AK_EXTERNAPIFUNC( void, Term )();
340 
341  /// Gets the configured audio settings.
342  /// Call this function to get the configured audio settings.
343  ///
344  /// \warning This function is not thread-safe.
345  /// \warning Call this function only after the sound engine has been properly initialized.
346  /// \return
347  /// - \c AK_NotInitialized if <tt>AK::SoundEngine::Init()</tt> was not called
348  /// - \c AK_Success otherwise.
350  AkAudioSettings & out_audioSettings ///< Returned audio settings
351  );
352 
353  /// Gets the output speaker configuration of the specified output.
354  /// Call this function to get the speaker configuration of the output (which may not correspond
355  /// to the physical output format of the platform, in the case of downmixing provided by the platform itself).
356  /// You may initialize the sound engine with a user-specified configuration, but the resulting
357  /// configuration is determined by the sound engine, based on the platform, output type and
358  /// platform settings (for e.g. system menu or control panel option).
359  /// If the speaker configuration of the output is object-based, the speaker configuration of the
360  /// main mix is returned. To query more information on object-based output devices, see AK::SoundEngine::GetOutputDeviceConfiguration.
361  ///
362  /// It is recommended to call GetSpeakerConfiguration anytime after receiving a callback from RegisterAudioDeviceStatusCallback to know if the channel configuration has changed.
363  ///
364  /// \warning Call this function only after the sound engine has been properly initialized.
365  /// 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.
366  /// The Init.bnk must be loaded prior to this call.
367  /// \return The output configuration. An empty AkChannelConfig not AkChannelConfig::IsValid() if device does not exist or if the Init.bnk was not loaded yet.
368  /// \sa
369  /// - AkSpeakerConfig.h
370  /// - AkOutputSettings
371  /// - <tt>AK::SoundEngine::GetOutputDeviceConfiguration()</tt>
373  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
374  );
375 
376  /// Gets the configuration of the specified output device.
377  /// Call this function to get the channel configuration of the output device as well as its 3D audio capabilities.
378  /// If the configuration of the output device is object-based (io_channelConfig.eConfigType == AK_ChannelConfigType_Objects),
379  /// io_capabilities can be inspected to determine the channel configuration of the main mix (Ak3DAudioSinkCapabilities::channelConfig),
380  /// whether or not the output device uses a passthrough mix (Ak3DAudioSinkCapabilities::bPassthrough) and the maximum number of objects
381  /// that can play simultaneously on this output device (Ak3DAudioSinkCapabilities::uMax3DAudioObjects). Note that if
382  /// Ak3DAudioSinkCapabilities::bMultiChannelObjects is false, multi-channel objects will be split into multiple mono objects
383  /// before being sent to the output device.
384  ///
385  /// \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.
386  /// \return
387  /// - \c AK_Success if successful
388  /// - \c AK_IDNotFound is the output was not found in the system.
389  /// - \c AK_NotInitialized if the sound engine is not initialized
390  /// \sa
391  /// - AkSpeakerConfig.h
392  /// - AkOutputSettings
393  /// - <tt>AK::SoundEngine::GetSpeakerConfiguration()</tt>
395  AkOutputDeviceID in_idOutput,
396  AkChannelConfig& io_channelConfig,
397  Ak3DAudioSinkCapabilities& io_capabilities
398  );
399 
400  /// Gets the panning rule of the specified output.
401  /// \warning Call this function only after the sound engine has been properly initialized.
402  /// Returns the supported configuration in out_ePanningRule:
403  /// - AkPanningRule_Speakers
404  /// - AkPanningRule_Headphone
405  /// \return
406  /// - \c AK_Success if successful
407  /// - \c AK_IDNotFound is the output was not found in the system.
408  /// - \c AK_NotInitialized if the sound engine is not initialized
409  /// \sa
410  /// - AkSpeakerConfig.h
412  AkPanningRule & out_ePanningRule, ///< Returned panning rule (AkPanningRule_Speakers or AkPanningRule_Headphone) for given output.
413  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
414  );
415 
416  /// Sets the panning rule of the specified output.
417  /// This may be changed anytime once the sound engine is initialized.
418  /// \warning This function posts a message through the sound engine's internal message queue, whereas GetPanningRule() queries the current panning rule directly.
419  /// \aknote
420  /// The specified panning rule will only impact the sound if the processing format is downmixing to Stereo in the mixing process. It
421  /// will not impact the output if the audio stays in 5.1 until the end, for example.
422  /// \endaknote
424  AkPanningRule in_ePanningRule, ///< Panning rule.
425  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
426  );
427 
428  /// Gets speaker angles of the specified device. Speaker angles are used for 3D positioning of sounds over standard configurations.
429  /// Note that the current version of Wwise only supports positioning on the plane.
430  /// The speaker angles are expressed as an array of loudspeaker pairs, in degrees, relative to azimuth ]0,180].
431  /// Supported loudspeaker setups are always symmetric; the center speaker is always in the middle and thus not specified by angles.
432  /// Angles must be set in ascending order.
433  /// You may call this function with io_pfSpeakerAngles set to NULL to get the expected number of angle values in io_uNumAngles,
434  /// in order to allocate your array correctly. You may also obtain this number by calling
435  /// AK::GetNumberOfAnglesForConfig( AK_SPEAKER_SETUP_DEFAULT_PLANE ).
436  /// If io_pfSpeakerAngles is not NULL, the array is filled with up to io_uNumAngles.
437  /// Typical usage:
438  /// - AkUInt32 uNumAngles;
439  /// - GetSpeakerAngles( NULL, uNumAngles, AkOutput_Main );
440  /// - AkReal32 * pfSpeakerAngles = AkAlloca( uNumAngles * sizeof(AkReal32) );
441  /// - GetSpeakerAngles( pfSpeakerAngles, uNumAngles, AkOutput_Main );
442  /// \aknote
443  /// On most platforms, the angle set on the plane consists of 3 angles, to account for 7.1.
444  /// - 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.
445  /// - When panning to 5.1, the front speakers use angle[0], and the surround speakers use (angle[2] + angle[1]) / 2.
446  /// \endaknote
447  /// \warning Call this function only after the sound engine has been properly initialized.
448  /// \return AK_Success if device exists.
449  /// \sa SetSpeakerAngles()
451  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.
452  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.
453  AkReal32 & out_fHeightAngle, ///< Elevation of the height layer, in degrees relative to the plane [-90,90].
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
455  );
456 
457  /// Sets speaker angles of the specified device. Speaker angles are used for 3D positioning of sounds over standard configurations.
458  /// Note that the current version of Wwise only supports positioning on the plane.
459  /// The speaker angles are expressed as an array of loudspeaker pairs, in degrees, relative to azimuth ]0,180], for a 7.1 speaker configuration.
460  /// Supported loudspeaker setups are always symmetric; the center speaker is always in the middle and thus not specified by angles.
461  /// Angles must be set in ascending order.
462  /// Note:
463  /// - This function requires the minimum speaker angle between any pair of speakers to be at least 5 degrees.
464  /// - 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.
465  ///
466  /// Typical usage:
467  /// - Initialize the sound engine and/or add secondary output(s).
468  /// - Get number of speaker angles and their value into an array using GetSpeakerAngles().
469  /// - Modify the angles and call SetSpeakerAngles().
470  /// 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().
471  /// \warning This function only applies to configurations (or subset of these configurations) that are standard and whose speakers are on the plane (2D).
472  /// \return
473  /// - \c AK_Success if successful.
474  /// - \c AK_InvalidFloatValue if the value specified was NaN or Inf
475  /// - \c AK_InsufficientMemory if there wasn't enough memory in the message queue
476  /// - \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.
477  /// \sa GetSpeakerAngles()
479  const AkReal32 * in_pfSpeakerAngles, ///< Array of loudspeaker pair angles, in degrees relative to azimuth ]0,180].
480  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()).
481  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.
482  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
483  );
484 
485  /// Allows the game to set the volume threshold to be used by the sound engine to determine if a voice must go virtual.
486  /// This may be changed anytime once the sound engine was initialized.
487  /// If this function is not called, the used value will be the value specified in the platform specific project settings.
488  /// \return
489  /// - \c AK_Success if successful
490  /// - \c AK_InvalidParameter if the threshold was not between 0 and -96.3 dB.
491  /// - \c AK_InvalidFloatValue if the value specified was NaN or Inf
493  AkReal32 in_fVolumeThresholdDB ///< Volume Threshold, must be a value between 0 and -96.3 dB
494  );
495 
496  /// Allows the game to set the maximum number of non virtual voices to be played simultaneously.
497  /// This may be changed anytime once the sound engine was initialized.
498  /// If this function is not called, the used value will be the value specified in the platform specific project settings.
499  /// \return
500  /// - \c AK_InvalidParameter if the threshold was not between 1 and MaxUInt16.
501  /// - \c AK_Success if successful
503  AkUInt16 in_maxNumberVoices ///< Maximum number of non-virtual voices.
504  );
505 
506  /// Allows the game to set new values for the maximum active workers for the job manager
507  /// This may be changed anytime once the sound engine was initialized.
508  /// This function may only be used if a worker function has been set via \ref AkJobMgrSettings.
509  /// \return
510  /// - \c AK_InvalidParameter in_jobType is not a valid jobtype, or in_uNewMaxActiveWorkers is not greater than 0
511  /// - \c AK_NotInitialized JobMgr system was not already initialized with a function to request for workers
512  /// - \c AK_Success if successful
514  AkJobType in_jobType, ///< JobType to set new uMaxActiveWorkers for
515  AkUInt32 in_uNewMaxActiveWorkers ///< New maximum number of active workers will request
516  );
517 
518  //@}
519 
520  ////////////////////////////////////////////////////////////////////////
521  /// @name Rendering Audio
522  //@{
523 
524  /// Processes all commands in the sound engine's command queue.
525  /// This method has to be called periodically (once per game frame).
526  /// \sa
527  /// - \ref concept_events
528  /// - \ref soundengine_events
529  /// - <tt>AK::SoundEngine::PostEvent()</tt>
530  /// \return Always returns AK_Success
532  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.
533  );
534 
535  //@}
536 
537  ////////////////////////////////////////////////////////////////////////
538  /// @name Component Registration
539  //@{
540 
541  /// Query interface to global plug-in context used for plug-in registration/initialization.
542  /// \return Global plug-in context.
544 
545  /// Registers a plug-in with the sound engine and sets the callback functions to create the
546  /// plug-in and its parameter node.
547  /// \aknote
548  /// 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.
549  /// \endaknote
550  /// \sa
551  /// - \ref register_effects
552  /// - \ref plugin_xml
553  /// \return
554  /// - \c AK_Success if successful
555  /// - \c AK_InvalidParameter if invalid parameters were provided
556  /// - \c AK_InsufficientMemory if there isn't enough memory to register the plug-in
557  /// \remarks
558  /// Codecs and plug-ins must be registered before loading banks that use them.\n
559  /// Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
560  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
561  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
562  /// posting the event will fail.
564  AkPluginType in_eType, ///< Plug-in type (for example, source or effect)
565  AkUInt32 in_ulCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
566  AkUInt32 in_ulPluginID, ///< Plug-in identifier (as declared in the plug-in description XML file)
567  AkCreatePluginCallback in_pCreateFunc, ///< Pointer to the plug-in's creation function
568  AkCreateParamCallback in_pCreateParamFunc, ///< Pointer to the plug-in's parameter node creation function
569  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.
570  );
571 
572  /// Loads a plug-in dynamic library and registers it with the sound engine.
573  /// With dynamic linking, all plugins are automatically registered.
574  /// 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.
575  /// \return
576  /// - \c AK_Success if successful.
577  /// - \c AK_FileNotFound if the DLL is not found in the OS path or if it has extraneous dependencies not found.
578  /// - \c AK_InsufficientMemory if the system ran out of resources while loading the dynamic library
579  /// - \c AK_NotCompatible if the file was found but is not binary-compatible with the system's expected executable format
580  /// - \c AK_InvalidFile if the symbol g_pAKPluginList is not exported by the dynamic library
581  /// - \c AK_Fail if an unexpected system error was encountered
583  const AkOSChar* in_DllName, ///< Name of the DLL to load, without "lib" prefix or extension.
584  const AkOSChar* in_DllPath = NULL ///< Optional path to the DLL. Will override szPluginDLLPath that was set in AkInitSettings.
585  );
586 
587  /// Query whether plug-in is registered with the sound engine.
588  /// \return true when plug-in is registered, false otherwise.
590  AkPluginType in_eType, ///< Plug-in type (for example, source or effect)
591  AkUInt32 in_ulCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
592  AkUInt32 in_ulPluginID ///< Plug-in identifier (as declared in the plug-in description XML file)
593  );
594 
595  /// Registers a codec type with the sound engine and set the callback functions to create the
596  /// codec's file source and bank source nodes.
597  /// \aknote
598  /// 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.
599  /// \endaknote
600  /// \sa
601  /// - \ref register_effects
602  /// \return
603  /// - \c AK_Success if successful
604  /// - \c AK_InvalidParameter if invalid parameters were provided
605  /// - \c AK_InsufficientMemory if there isn't enough memory to register the plug-in
606  /// \remarks
607  /// Codecs and plug-ins must be registered before loading banks that use them.\n
608  /// Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
609  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
610  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
611  /// posting the Event will fail.
613  AkUInt32 in_ulCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
614  AkUInt32 in_ulCodecID, ///< Codec identifier (as declared in the plug-in description XML file)
615  AkCreateFileSourceCallback in_pFileCreateFunc, ///< Pointer to the codec's file source node creation function
616  AkCreateBankSourceCallback in_pBankCreateFunc ///< Pointer to the codec's bank source node creation function
617  );
618 
619  /// Registers a global callback function. This function will be called from the audio rendering thread, at the
620  /// location specified by in_eLocation. This function will also be called from the thread calling
621  /// AK::SoundEngine::Term with in_eLocation set to AkGlobalCallbackLocation_Term.
622  /// For example, in order to be called at every audio rendering pass, and once during teardown for releasing resources, you would call
623  /// RegisterGlobalCallback(myCallback, AkGlobalCallbackLocation_BeginRender | AkGlobalCallbackLocation_Term, myCookie, AkPluginTypeNone, 0, 0);
624  /// \remarks
625  /// A Plugin Type, Company ID and Plugin ID can be provided to this function to enable timing in the performance monitor.
626  /// 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.
627  /// It is illegal to call this function while already inside of a global callback.
628  /// This function might stall for several milliseconds before returning.
629  /// \return
630  /// - \c AK_Success if successful
631  /// - \c AK_InvalidParameter if parameters are out of range (check debug console or Wwise Profiler)
632  /// \sa
633  /// - <tt>AK::SoundEngine::UnregisterGlobalCallback()</tt>
634  /// - AkGlobalCallbackFunc
635  /// - AkGlobalCallbackLocation
637  AkGlobalCallbackFunc in_pCallback, ///< Function to register as a global callback.
638  AkUInt32 in_eLocation = AkGlobalCallbackLocation_BeginRender, ///< Callback location defined in AkGlobalCallbackLocation. Bitwise OR multiple locations if needed.
639  void * in_pCookie = NULL, ///< User cookie.
640  AkPluginType in_eType = AkPluginTypeNone, ///< Plug-in type (for example, source or effect). AkPluginTypeNone for no timing.
641  AkUInt32 in_ulCompanyID = 0, ///< Company identifier (as declared in the plug-in description XML file). 0 for no timing.
642  AkUInt32 in_ulPluginID = 0 ///< Plug-in identifier (as declared in the plug-in description XML file). 0 for no timing.
643  );
644 
645  /// Unregisters a global callback function, previously registered using RegisterGlobalCallback.
646  /// \remarks
647  /// It is legal to call this function while already inside of a global callback, If it is unregistering itself and not
648  /// another callback.
649  /// This function might stall for several milliseconds before returning.
650  /// \return
651  /// - \c AK_Success if successful
652  /// - \c AK_InvalidParameter if parameters are out of range (check debug console or Wwise Profiler)
653  /// \sa
654  /// - <tt>AK::SoundEngine::RegisterGlobalCallback()</tt>
655  /// - AkGlobalCallbackFunc
656  /// - AkGlobalCallbackLocation
658  AkGlobalCallbackFunc in_pCallback, ///< Function to unregister as a global callback.
659  AkUInt32 in_eLocation = AkGlobalCallbackLocation_BeginRender ///< Must match in_eLocation as passed to RegisterGlobalCallback for this callback.
660  );
661 
662  /// Registers a resource monitor callback function that gets all of the resource usage data contained in the
663  /// AkResourceMonitorDataSummary structure. This includes general information about the system, such as CPU usage,
664  /// active Voices, and Events. This function will be called from the audio rendering thread at the end of each frame.
665  /// \remarks
666  /// 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.
667  /// It is illegal to call this function while already inside of a resource callback.
668  /// This function might stall for several milliseconds before returning.
669  /// This function will return AK_Fail in Release
670  /// \sa
671  /// - <tt>AK::SoundEngine::UnregisterResourceMonitorCallback()</tt>
672  /// - AkResourceMonitorCallbackFunc
674  AkResourceMonitorCallbackFunc in_pCallback ///< Function to register as a resource monitor callback.
675  );
676 
677  /// Unregisters a resource monitor callback function, previously registered using RegisterResourceMonitorCallback.
678  /// \remarks
679  /// It is legal to call this function while already inside of a resource monitor callback, If it is unregistering itself and not
680  /// another callback.
681  /// This function might stall for several milliseconds before returning.
682  /// \sa
683  /// - <tt>AK::SoundEngine::RegisterResourceMonitorCallback()</tt>
684  /// - AkResourceMonitorCallbackFunc
686  AkResourceMonitorCallbackFunc in_pCallback ///< Function to unregister as a resource monitor callback.
687  );
688 
689  /// Registers a callback for the Audio Device status changes.
690  /// The callback will be called from the audio thread
691  /// Can be called prior to AK::SoundEngine::Init
692  /// \sa AK::SoundEngine::AddOutput
694  AK::AkDeviceStatusCallbackFunc in_pCallback ///< Function to register as a status callback.
695  );
696 
697  /// Unregisters the callback for the Audio Device status changes, registered by RegisterAudioDeviceStatusCallback
699  //@}
700 
701 #ifdef AK_SUPPORT_WCHAR
702  ////////////////////////////////////////////////////////////////////////
703  /// @name Getting ID from strings
704  //@{
705 
706  /// Universal converter from Unicode string to ID for the sound engine.
707  /// This function will hash the name based on a algorithm ( provided at : /AK/Tools/Common/AkFNVHash.h )
708  /// Note:
709  /// This function does return a AkUInt32, which is totally compatible with:
710  /// AkUniqueID, AkStateGroupID, AkStateID, AkSwitchGroupID, AkSwitchStateID, AkRtpcID, and so on...
711  /// \sa
712  /// - <tt>AK::SoundEngine::PostEvent</tt>
713  /// - <tt>AK::SoundEngine::SetRTPCValue</tt>
714  /// - <tt>AK::SoundEngine::SetSwitch</tt>
715  /// - <tt>AK::SoundEngine::SetState</tt>
716  /// - <tt>AK::SoundEngine::PostTrigger</tt>
717  /// - <tt>AK::SoundEngine::SetGameObjectAuxSendValues</tt>
718  /// - <tt>AK::SoundEngine::LoadBank</tt>
719  /// - <tt>AK::SoundEngine::UnloadBank</tt>
720  /// - <tt>AK::SoundEngine::PrepareEvent</tt>
721  /// - <tt>AK::SoundEngine::PrepareGameSyncs</tt>
722  AK_EXTERNAPIFUNC( AkUInt32, GetIDFromString )( const wchar_t* in_pszString );
723 #endif //AK_SUPPORT_WCHAR
724 
725  /// Universal converter from string to ID for the sound engine.
726  /// This function will hash the name based on a algorithm ( provided at : /AK/Tools/Common/AkFNVHash.h )
727  /// Note:
728  /// This function does return a AkUInt32, which is totally compatible with:
729  /// AkUniqueID, AkStateGroupID, AkStateID, AkSwitchGroupID, AkSwitchStateID, AkRtpcID, and so on...
730  /// \sa
731  /// - <tt>AK::SoundEngine::PostEvent</tt>
732  /// - <tt>AK::SoundEngine::SetRTPCValue</tt>
733  /// - <tt>AK::SoundEngine::SetSwitch</tt>
734  /// - <tt>AK::SoundEngine::SetState</tt>
735  /// - <tt>AK::SoundEngine::PostTrigger</tt>
736  /// - <tt>AK::SoundEngine::SetGameObjectAuxSendValues</tt>
737  /// - <tt>AK::SoundEngine::LoadBank</tt>
738  /// - <tt>AK::SoundEngine::UnloadBank</tt>
739  /// - <tt>AK::SoundEngine::PrepareEvent</tt>
740  /// - <tt>AK::SoundEngine::PrepareGameSyncs</tt>
741  AK_EXTERNAPIFUNC( AkUInt32, GetIDFromString )( const char* in_pszString );
742 
743  //@}
744 
745  ////////////////////////////////////////////////////////////////////////
746  /// @name Event Management
747  //@{
748 
749  /// Asynchronously posts an Event to the sound engine (by event ID).\n
750  /// The Event must be loaded through a SoundBank before the call to PostEvent.
751  /// The callback function can be used to be notified when markers are reached or when the event is finished (see \ref AkCallbackType).
752  /// An array of wave file sources can be provided to resolve External Sources triggered by the event.
753  /// \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.
754  /// \remarks
755  /// If used, the array of external sources should contain the information for each external source triggered by the
756  /// event. When triggering an event with multiple external sources, you need to differentiate each source
757  /// by using the cookie property in the External Source in the Wwise project and in AkExternalSourceInfo.
758  /// \aknote If an event triggers the playback of more than one external source, they must be named uniquely in the project
759  /// (therefore have a unique cookie) in order to tell them apart when filling the AkExternalSourceInfo structures.
760  /// \endaknote
761  /// \aknote
762  /// 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.
763  /// If the Event is missing, it will be requested from Wwise Authoring directly, which might cause additional latency.
764  /// \endaknote
765  /// \sa
766  /// - \ref concept_events
767  /// - \ref integrating_external_sources
768  /// - <tt>AK::SoundEngine::RenderAudio()</tt>
769  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
770  /// - <tt>AK::SoundEngine::GetSourcePlayPosition()</tt>
772  AkUniqueID in_eventID, ///< Unique ID of the event
773  AkGameObjectID in_gameObjectID, ///< Associated game object ID
774  AkUInt32 in_uFlags = 0, ///< Bitmask: see \ref AkCallbackType
775  AkCallbackFunc in_pfnCallback = NULL, ///< Callback function
776  void * in_pCookie = NULL, ///< Callback cookie that will be sent to the callback function along with additional information
777  AkUInt32 in_cExternals = 0, ///< Optional count of external source structures
778  AkExternalSourceInfo *in_pExternalSources = NULL,///< Optional array of external source resolution information
779  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.
780  );
781 
782 #ifdef AK_SUPPORT_WCHAR
783  /// Posts an Event to the sound engine (by Event name)\n
784  /// The Event must be loaded through a SoundBank before the call to PostEvent.
785  /// The callback function can be used to be notified when markers are reached or when the event is finished (see \ref AkCallbackType).
786  /// An array of wave file sources can be provided to resolve External Sources triggered by the event.
787  /// \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.
788  /// \remarks
789  /// If used, the array of external sources should contain the information for each external source triggered by the
790  /// event. When triggering an event with multiple external sources, you need to differentiate each source
791  /// by using the cookie property in the External Source in the Wwise project and in AkExternalSourceInfo.
792  /// \aknote If an event triggers the playback of more than one external source, they must be named uniquely in the project
793  /// (therefore have a unique cookie) in order to tell them apart when filling the AkExternalSourceInfo structures.
794  /// \endaknote
795  /// \aknote
796  /// 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.
797  /// If the Event is missing, it will be requested from Wwise Authoring directly, which might cause additional latency.
798  /// \endaknote
799  /// \sa
800  /// - \ref concept_events
801  /// - \ref integrating_external_sources
802  /// - <tt>AK::SoundEngine::RenderAudio()</tt>
803  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
804  /// - <tt>AK::SoundEngine::GetSourcePlayPosition()</tt>
806  const wchar_t* in_pszEventName, ///< Name of the event
807  AkGameObjectID in_gameObjectID, ///< Associated game object ID
808  AkUInt32 in_uFlags = 0, ///< Bitmask: see \ref AkCallbackType
809  AkCallbackFunc in_pfnCallback = NULL, ///< Callback function
810  void * in_pCookie = NULL, ///< Callback cookie that will be sent to the callback function along with additional information.
811  AkUInt32 in_cExternals = 0, ///< Optional count of external source structures
812  AkExternalSourceInfo *in_pExternalSources = NULL,///< Optional array of external source resolution information
813  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  );
815 #endif //AK_SUPPORT_WCHAR
816 
817  /// Posts an Event to the sound engine (by Event name)\n
818  /// The Event must be loaded through a SoundBank before the call to PostEvent.
819  /// The callback function can be used to be notified when markers are reached or when the event is finished (see \ref AkCallbackType).
820  /// An array of wave file sources can be provided to resolve External Sources triggered by the event.
821  /// \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.
822  /// \remarks
823  /// If used, the array of external sources should contain the information for each external source triggered by the
824  /// event. When triggering an event with multiple external sources, you need to differentiate each source
825  /// by using the cookie property in the External Source in the Wwise project and in AkExternalSourceInfo.
826  /// \aknote If an event triggers the playback of more than one external source, they must be named uniquely in the project
827  /// (therefore have a unique cookie) in order to tell them apart when filling the AkExternalSourceInfo structures.
828  /// \endaknote
829  /// \aknote
830  /// 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.
831  /// If the Event is missing, it will be requested from Wwise Authoring directly, which might cause additional latency.
832  /// \endaknote
833  /// \sa
834  /// - \ref concept_events
835  /// - \ref integrating_external_sources
836  /// - <tt>AK::SoundEngine::RenderAudio()</tt>
837  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
838  /// - <tt>AK::SoundEngine::GetSourcePlayPosition()</tt>
840  const char* in_pszEventName, ///< Name of the event
841  AkGameObjectID in_gameObjectID, ///< Associated game object ID
842  AkUInt32 in_uFlags = 0, ///< Bitmask: see \ref AkCallbackType
843  AkCallbackFunc in_pfnCallback = NULL, ///< Callback function
844  void * in_pCookie = NULL, ///< Callback cookie that will be sent to the callback function along with additional information.
845  AkUInt32 in_cExternals = 0, ///< Optional count of external source structures
846  AkExternalSourceInfo *in_pExternalSources = NULL,///< Optional array of external source resolution information
847  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  );
849 
850  // \deprecated Use AkActionOnEventType in the global scope.
858 
859  /// Executes an action on all nodes that are referenced in the specified event in an action of type play.
860  /// \return
861  /// - \c AK_Success if the action was successfully queued.
862  /// - \c AK_IDNotFound if the Event was not found (not loaded or there is a typo in the ID)
863  /// \sa
864  /// - <tt>AkActionOnEventType</tt>
866  AkUniqueID in_eventID, ///< Unique ID of the event
867  AkActionOnEventType in_ActionType, ///< Action to execute on all the elements that were played using the specified event.
868  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT, ///< Associated game object ID
869  AkTimeMs in_uTransitionDuration = 0, ///< Fade duration
870  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the transition
871  AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID ///< Associated PlayingID
872  );
873 
874 #ifdef AK_SUPPORT_WCHAR
875  /// Executes an action on all nodes that are referenced in the specified event in an action of type play.
876  /// \return
877  /// - \c AK_Success if the action was successfully queued.
878  /// - \c AK_IDNotFound if the Event was not found (not loaded or there is a typo in the ID)
879  /// \sa
880  /// - <tt>AkActionOnEventType</tt>
882  const wchar_t* in_pszEventName, ///< Name of the event
883  AkActionOnEventType in_ActionType, ///< Action to execute on all the elements that were played using the specified event.
884  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT, ///< Associated game object ID
885  AkTimeMs in_uTransitionDuration = 0, ///< Fade duration
886  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the transition
887  AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID ///< Associated PlayingID
888  );
889 #endif //AK_SUPPORT_WCHAR
890 
891  /// Executes an Action on all nodes that are referenced in the specified Event in an Action of type Play.
892  /// \return
893  /// - \c AK_Success if the action was successfully queued.
894  /// - \c AK_IDNotFound if the Event was not found (not loaded or there is a typo in the ID)
895  /// \sa
896  /// - <tt>AkActionOnEventType</tt>
898  const char* in_pszEventName, ///< Name of the event
899  AkActionOnEventType in_ActionType, ///< Action to execute on all the elements that were played using the specified event.
900  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT, ///< Associated game object ID
901  AkTimeMs in_uTransitionDuration = 0, ///< Fade duration
902  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the transition
903  AkPlayingID in_PlayingID = AK_INVALID_PLAYING_ID ///< Associated PlayingID
904  );
905 
906 
907  /// Executes a number of MIDI Events on all nodes that are referenced in the specified Event in an Action of type Play.
908  /// The time at which a MIDI Event is posted is determined by in_bAbsoluteOffsets. If false, each MIDI event will be
909  /// posted in AkMIDIPost::uOffset samples from the start of the current frame. If true, each MIDI event will be posted
910  /// at the absolute time AkMIDIPost::uOffset samples.
911  /// To obtain the current absolute time, see AK::SoundEngine::GetSampleTick.
912  /// The duration of a sample can be determined from the sound engine's audio settings, via a call to AK::SoundEngine::GetAudioSettings.
913  /// If a playing ID is specified then that playing ID must be active. Otherwise a new playing ID will be assigned.
914  /// \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.
915  /// \sa
916  /// - <tt>AK::SoundEngine::GetAudioSettings</tt>
917  /// - <tt>AK::SoundEngine::GetSampleTick</tt>
918  /// - <tt>AK::SoundEngine::StopMIDIOnEvent</tt>
919  /// - \ref soundengine_midi_event_playing_id
921  AkUniqueID in_eventID, ///< Unique ID of the Event
922  AkGameObjectID in_gameObjectID, ///< Associated game object ID
923  AkMIDIPost* in_pPosts, ///< MIDI Events to post
924  AkUInt16 in_uNumPosts, ///< Number of MIDI Events to post
925  bool in_bAbsoluteOffsets = false, ///< Set to true when AkMIDIPost::uOffset are absolute, false when relative to current frame
926  AkUInt32 in_uFlags = 0, ///< Bitmask: see \ref AkCallbackType
927  AkCallbackFunc in_pfnCallback = NULL, ///< Callback function
928  void * in_pCookie = NULL, ///< Callback cookie that will be sent to the callback function along with additional information
929  AkPlayingID in_playingID = AK_INVALID_PLAYING_ID ///< Target playing ID
930  );
931 
932  /// Stops MIDI notes on all nodes that are referenced in the specified event in an action of type play,
933  /// with the specified Game Object. Invalid parameters are interpreted as wildcards. For example, calling
934  /// this function with in_eventID set to AK_INVALID_UNIQUE_ID will stop all MIDI notes for Game Object
935  /// in_gameObjectID.
936  /// \return
937  /// - \c AK_Success if the stop command was queued
938  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
939  /// \sa
940  /// - <tt>AK::SoundEngine::PostMIDIOnEvent</tt>
941  /// - \ref soundengine_midi_event_playing_id
943  AkUniqueID in_eventID = AK_INVALID_UNIQUE_ID, ///< Unique ID of the Event
944  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT, ///< Associated game object ID
945  AkPlayingID in_playingID = AK_INVALID_PLAYING_ID ///< Target playing ID
946  );
947 
948 
949  /// 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
950  /// 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
951  /// uMaxCachePinnedBytes is exceeded.
952  /// \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.
953  /// \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.
954  /// \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
955  /// 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.
956  /// \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
957  /// will get cached with active priority, while all other files will get cached with inactive priority.
958  /// \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
959  /// 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.
960  /// \return
961  /// - \c AK_Success if command was queued
962  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
963  /// \sa
964  /// - <tt>AK::SoundEngine::GetBufferStatusForPinnedEvent</tt>
965  /// - <tt>AK::SoundEngine::UnpinEventInStreamCache</tt>
966  /// - <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen</tt>
967  /// - AkFileSystemFlags
969  AkUniqueID in_eventID, ///< Unique ID of the event
970  AkPriority in_uActivePriority, ///< Priority of active stream caching I/O
971  AkPriority in_uInactivePriority ///< Priority of inactive stream caching I/O
972  );
973 
974 #ifdef AK_SUPPORT_WCHAR
975  /// 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
976  /// 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
977  /// uMaxCachePinnedBytes is exceeded.
978  /// \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.
979  /// \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.
980  /// \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
981  /// 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.
982  /// \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
983  /// will get cached with active priority, while all other files will get cached with inactive priority.
984  /// \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
985  /// 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.
986  /// \return
987  /// - \c AK_Success if command was queued
988  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
989  /// \sa
990  /// - <tt>AK::SoundEngine::GetBufferStatusForPinnedEvent</tt>
991  /// - <tt>AK::SoundEngine::UnpinEventInStreamCache</tt>
992  /// - <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen</tt>
993  /// - AkFileSystemFlags
995  const wchar_t* in_pszEventName, ///< Name of the event
996  AkPriority in_uActivePriority, ///< Priority of active stream caching I/O
997  AkPriority in_uInactivePriority ///< Priority of inactive stream caching I/O
998  );
999 #endif //AK_SUPPORT_WCHAR
1000 
1001  /// 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
1002  /// 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
1003  /// uMaxCachePinnedBytes is exceeded.
1004  /// \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.
1005  /// \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.
1006  /// \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
1007  /// 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.
1008  /// \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
1009  /// will get cached with active priority, while all other files will get cached with inactive priority.
1010  /// \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
1011  /// 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.
1012  /// \return
1013  /// - \c AK_Success if command was queued
1014  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1015  /// \sa
1016  /// - <tt>AK::SoundEngine::GetBufferStatusForPinnedEvent</tt>
1017  /// - <tt>AK::SoundEngine::UnpinEventInStreamCache</tt>
1018  /// - <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen</tt>
1019  /// - AkFileSystemFlags
1021  const char* in_pszEventName, ///< Name of the event
1022  AkPriority in_uActivePriority, ///< Priority of active stream caching I/O
1023  AkPriority in_uInactivePriority ///< Priority of inactive stream caching I/O
1024  );
1025 
1026  /// 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
1027  /// 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.
1028  /// \return
1029  /// - \c AK_Success if command was queued
1030  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1031  /// \sa
1032  /// - <tt>AK::SoundEngine::PinEventInStreamCache</tt>
1033  /// - <tt>AK::SoundEngine::GetBufferStatusForPinnedEvent</tt>
1035  AkUniqueID in_eventID ///< Unique ID of the event
1036  );
1037 
1038 #ifdef AK_SUPPORT_WCHAR
1039  /// 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
1040  /// 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.
1041  /// \return
1042  /// - \c AK_Success if command was queued
1043  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1044  /// \sa
1045  /// - <tt>AK::SoundEngine::PinEventInStreamCache</tt>
1046  /// - <tt>AK::SoundEngine::GetBufferStatusForPinnedEvent</tt>
1048  const wchar_t* in_pszEventName ///< Name of the event
1049  );
1050 #endif //AK_SUPPORT_WCHAR
1051 
1052  /// 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
1053  /// 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.
1054  /// \return
1055  /// - \c AK_Success if command was queued
1056  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1057  /// \sa
1058  /// - <tt>AK::SoundEngine::PinEventInStreamCache</tt>
1059  /// - <tt>AK::SoundEngine::GetBufferStatusForPinnedEvent</tt>
1061  const char* in_pszEventName ///< Name of the event
1062  );
1063 
1064  /// Returns information about an Event that was requested to be pinned into cache via <tt>AK::SoundEngine::PinEventInStreamCache()</tt>.
1065  /// Retrieves the smallest buffer fill-percentage for each file referenced by the event, and whether
1066  /// the cache-pinned memory limit is preventing any of the files from filling up their buffer.
1067  /// \remarks To set the limit for the maximum number of bytes that can be pinned to cache, see \c AkDeviceSettings
1068  /// \return
1069  /// - \c AK_Success if command was queued
1070  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1071  /// \sa
1072  /// - <tt>AK::SoundEngine::PinEventInStreamCache</tt>
1073  /// - <tt>AK::SoundEngine::UnpinEventInStreamCache</tt>
1074  /// - AkDeviceSettings
1076  AkUniqueID in_eventID, ///< Unique ID of the event
1077  AkReal32& out_fPercentBuffered, ///< Fill-percentage (out of 100) of requested buffer size for least buffered file in the event.
1078  bool& out_bCachePinnedMemoryFull ///< True if at least one file can not complete buffering because the cache-pinned memory limit would be exceeded.
1079  );
1080 
1081  /// Returns information about an Event that was requested to be pinned into cache via <tt>AK::SoundEngine::PinEventInStreamCache()</tt>.
1082  /// Retrieves the smallest buffer fill-percentage for each file referenced by the event, and whether
1083  /// the cache-pinned memory limit is preventing any of the files from filling up their buffer.
1084  /// \remarks To set the limit for the maximum number of bytes that can be pinned to cache, see AkDeviceSettings
1085  /// \return
1086  /// - \c AK_Success if command was queued
1087  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1088  /// \sa
1089  /// - <tt>AK::SoundEngine::PinEventInStreamCache</tt>
1090  /// - <tt>AK::SoundEngine::UnpinEventInStreamCache</tt>
1091  /// - AkDeviceSettings
1093  const char* in_pszEventName, ///< Name of the event
1094  AkReal32& out_fPercentBuffered, ///< Fill-percentage (out of 100) of requested buffer size for least buffered file in the event.
1095  bool& out_bCachePinnedMemoryFull ///< True if at least one file can not complete buffering because the cache-pinned memory limit would be exceeded.
1096  );
1097 
1098 #ifdef AK_SUPPORT_WCHAR
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 AkDeviceSettings
1103  /// \return
1104  /// - \c AK_Success if command was queued
1105  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1106  /// \sa
1107  /// - <tt>AK::SoundEngine::PinEventInStreamCache</tt>
1108  /// - <tt>AK::SoundEngine::UnpinEventInStreamCache</tt>
1109  /// - AkDeviceSettings
1111  const wchar_t* in_pszEventName, ///< Name of the event
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.
1114  );
1115 #endif
1116 
1117  /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1118  ///
1119  /// Notes:
1120  /// - This works with all objects of the Containers hierarchy, including Music Segments and Music Switch Containers.
1121  /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1122  /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1123  /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1124  /// the sound that is currently playing is the first sound of the sequence.
1125  /// - Seeking is also ignored with voices that can go virtual with "From Beginning" behavior.
1126  /// - Sounds/segments are stopped if in_iPosition is greater than their duration.
1127  /// - in_iPosition is clamped internally to the beginning of the sound/segment.
1128  /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1129  /// With objects of the Containers hierarchy, markers are embedded in wave files by an external wave editor.
1130  /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1131  /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1132  /// to nearest marker. In the case of interactive music objects (Music Segments, Music Switch Containers, and Music Playlist Containers), user (wave) markers are ignored:
1133  /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1134  /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1135  /// the audio thread consumes it (after a call to RenderAudio()).
1136  ///
1137  /// Notes specific to Music Segments:
1138  /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1139  /// value to seek within the Pre-Entry.
1140  /// - Music segments cannot be looped. You may want to listen to the AK_EndOfEvent notification
1141  /// in order to restart them if required.
1142  /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1143  /// take the "look-ahead time" property of their streamed tracks into account for seeking.
1144  /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1145  /// value that was passed to the method. Use <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt> to query
1146  /// the exact position of a segment. Also, the segment will be silent during that time
1147  /// (so that it restarts precisely at the position that you specified). <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1148  /// also informs you about the remaining look-ahead time.
1149  ///
1150  /// Notes specific to Music Switch Containers:
1151  /// - Seeking triggers a music transition towards the current (or target) segment.
1152  /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1153  /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1154  /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1155  /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1156  ///
1157  /// \return
1158  /// - \c AK_Success if command was queued
1159  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1160  /// \sa
1161  /// - <tt>AK::SoundEngine::RenderAudio()</tt>
1162  /// - <tt>AK::SoundEngine::PostEvent()</tt>
1163  /// - <tt>AK::SoundEngine::GetSourcePlayPosition()</tt>
1164  /// - <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1166  AkUniqueID in_eventID, ///< Unique ID of the event
1167  AkGameObjectID in_gameObjectID, ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1168  AkTimeMs in_iPosition, ///< Desired position where playback should restart, in milliseconds
1169  bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1170  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.
1171  );
1172 
1173 #ifdef AK_SUPPORT_WCHAR
1174  /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1175  ///
1176  /// Notes:
1177  /// - This works with all objects of the Containers hierarchy, and also with Music Segments and Music Switch Containers.
1178  /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1179  /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1180  /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1181  /// the sound that is currently playing is the first sound of the sequence.
1182  /// - Seeking is also ignored with voices that can go virtual with "From Beginning" behavior.
1183  /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1184  /// value to seek within the Pre-Entry.
1185  /// - Sounds/segments are stopped if in_iPosition is greater than their duration.
1186  /// - in_iPosition is clamped internally to the beginning of the sound/segment.
1187  /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1188  /// With objects of the Containers hierarchy, markers are embedded in wave files by an external wave editor.
1189  /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1190  /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1191  /// to nearest marker. In the case of interactive music objects (Music Segments, Music Switch Containers, and Music Playlist Containers), user (wave) markers are ignored:
1192  /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1193  /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1194  /// the audio thread consumes it (after a call to RenderAudio()).
1195  ///
1196  /// Notes specific to Music Segments:
1197  /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1198  /// value to seek within the Pre-Entry.
1199  /// - Music segments cannot be looped. You may want to listen to the AK_EndOfEvent notification
1200  /// in order to restart them if required.
1201  /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1202  /// take the "look-ahead time" property of their streamed tracks into account for seeking.
1203  /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1204  /// value that was passed to the method. Use <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt> to query
1205  /// the exact position of a segment. Also, the segment will be silent during that time
1206  /// (so that it restarts precisely at the position that you specified). <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1207  /// also informs you about the remaining look-ahead time.
1208  ///
1209  /// Notes specific to Music Switch Containers:
1210  /// - Seeking triggers a music transition towards the current (or target) segment.
1211  /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1212  /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1213  /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1214  /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1215  /// \return
1216  /// - \c AK_Success if command was queued
1217  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1218  /// \sa
1219  /// - <tt>AK::SoundEngine::RenderAudio()</tt>
1220  /// - <tt>AK::SoundEngine::PostEvent()</tt>
1221  /// - <tt>AK::SoundEngine::GetSourcePlayPosition()</tt>
1222  /// - <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1224  const wchar_t* in_pszEventName, ///< Name of the event
1225  AkGameObjectID in_gameObjectID, ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1226  AkTimeMs in_iPosition, ///< Desired position where playback should restart, in milliseconds
1227  bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1228  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.
1229  );
1230 #endif //AK_SUPPORT_WCHAR
1231 
1232  /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1233  ///
1234  /// Notes:
1235  /// - This works with all objects of the Containers hierarchy, and also with Music Segments and Music Switch Containers.
1236  /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1237  /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1238  /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1239  /// the sound that is currently playing is the first sound of the sequence.
1240  /// - Seeking is also ignored with voices that can go virtual with "From Beginning" behavior.
1241  /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1242  /// value to seek within the Pre-Entry.
1243  /// - Sounds/segments are stopped if in_iPosition is greater than their duration.
1244  /// - in_iPosition is clamped internally to the beginning of the sound/segment.
1245  /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1246  /// With objects of the Containers hierarchy, markers are embedded in wave files by an external wave editor.
1247  /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1248  /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1249  /// to nearest marker. In the case of interactive music objects (Music Segments, Music Switch Containers, and Music Playlist Containers), user (wave) markers are ignored:
1250  /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1251  /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1252  /// the audio thread consumes it (after a call to RenderAudio()).
1253  ///
1254  /// Notes specific to Music Segments:
1255  /// - With Music Segments, in_iPosition is relative to the Entry Cue, in milliseconds. Use a negative
1256  /// value to seek within the Pre-Entry.
1257  /// - Music segments cannot be looped. You may want to listen to the AK_EndOfEvent notification
1258  /// in order to restart them if required.
1259  /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1260  /// take the "look-ahead time" property of their streamed tracks into account for seeking.
1261  /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1262  /// value that was passed to the method. Use <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt> to query
1263  /// the exact position of a segment. Also, the segment will be silent during that time
1264  /// (so that it restarts precisely at the position that you specified). <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1265  /// also informs you about the remaining look-ahead time.
1266  ///
1267  /// Notes specific to Music Switch Containers:
1268  /// - Seeking triggers a music transition towards the current (or target) segment.
1269  /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1270  /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1271  /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1272  /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1273  ///
1274  /// \return
1275  /// - \c AK_Success if command was queued
1276  /// - \c AK_IDNotFound if the Event ID is unknown (not loaded or typo in the ID)
1277  /// \sa
1278  /// - <tt>AK::SoundEngine::RenderAudio()</tt>
1279  /// - <tt>AK::SoundEngine::PostEvent()</tt>
1280  /// - <tt>AK::SoundEngine::GetSourcePlayPosition()</tt>
1281  /// - <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1283  const char* in_pszEventName, ///< Name of the event
1284  AkGameObjectID in_gameObjectID, ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1285  AkTimeMs in_iPosition, ///< Desired position where playback should restart, in milliseconds
1286  bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1287  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.
1288  );
1289 
1290  /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1291  /// Seek position is specified as a percentage of the sound's total duration, and takes looping into account.
1292  ///
1293  /// Notes:
1294  /// - This works with all objects of the Containers hierarchy, and also with Music Segments and Music Switch Containers.
1295  /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1296  /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1297  /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1298  /// the sound that is currently playing is the first sound of the sequence.
1299  /// - Seeking is also ignored with voices that can go virtual with "From Beginning" behavior.
1300  /// - in_iPosition is clamped internally to the beginning of the sound/segment.
1301  /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1302  /// With objects of the Containers hierarchy, markers are embedded in wave files by an external wave editor.
1303  /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1304  /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1305  /// to nearest marker. In the case of interactive music objects (Music Segments, Music Switch Containers, and Music Playlist Containers), user (wave) markers are ignored:
1306  /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1307  /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1308  /// the audio thread consumes it (after a call to RenderAudio()).
1309  ///
1310  /// Notes specific to Music Segments:
1311  /// - With Music Segments, \c in_fPercent is relative to the Entry Cue, and the segment's duration is the
1312  /// duration between its entry and exit cues. Consequently, you cannot seek within the pre-entry or
1313  /// post-exit of a segment using this method. Use absolute values instead.
1314  /// - Music Segments cannot be looped. You may want to listen to the \c AK_EndOfEvent notification
1315  /// in order to restart them if required.
1316  /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1317  /// take the "look-ahead time" property of their streamed tracks into account for seeking.
1318  /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1319  /// value that was passed to the method. Use <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt> to query
1320  /// the exact position of a segment. Also, the segment will be silent during the time that period
1321  /// (so that it restarts precisely at the position that you specified). <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1322  /// also informs you about the remaining look-ahead time.
1323  ///
1324  /// Notes specific to Music Switch Containers:
1325  /// - Seeking triggers a music transition towards the current (or target) segment.
1326  /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1327  /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1328  /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1329  /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1330  ///
1331  /// \sa
1332  /// - <tt>AK::SoundEngine::RenderAudio()</tt>
1333  /// - <tt>AK::SoundEngine::PostEvent()</tt>
1334  /// - <tt>AK::SoundEngine::GetSourcePlayPosition()</tt>
1335  /// - <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1337  AkUniqueID in_eventID, ///< Unique ID of the event
1338  AkGameObjectID in_gameObjectID , ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1339  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)
1340  bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1341  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.
1342  );
1343 
1344 #ifdef AK_SUPPORT_WCHAR
1345  /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1346  /// Seek position is specified as a percentage of the sound's total duration, and takes looping into account.
1347  ///
1348  /// Notes:
1349  /// - This works with all objects of the Containers hierarchy, and also with Music Segments and Music Switch Containers.
1350  /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1351  /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1352  /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1353  /// the sound that is currently playing is the first sound of the sequence.
1354  /// - Seeking is also ignored with voices that can go virtual with "From Beginning" behavior.
1355  /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1356  /// With objects of the Containers hierarchy, markers are embedded in wave files by an external wave editor.
1357  /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1358  /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1359  /// to nearest marker. In the case of interactive music objects (Music Segments, Music Switch Containers, and Music Playlist Containers), user (wave) markers are ignored:
1360  /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1361  /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1362  /// the audio thread consumes it (after a call to RenderAudio()).
1363  ///
1364  /// Notes specific to Music Segments:
1365  /// - With Music Segments, \c in_fPercent is relative to the Entry Cue, and the segment's duration is the
1366  /// duration between its entry and exit cues. Consequently, you cannot seek within the pre-entry or
1367  /// post-exit of a segment using this method. Use absolute values instead.
1368  /// - Music Segments cannot be looped. You may want to listen to the \c AK_EndOfEvent notification
1369  /// in order to restart them if required.
1370  /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1371  /// take the "look-ahead time" property of their streamed tracks into account for seeking.
1372  /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1373  /// value that was passed to the method. Use <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt> to query
1374  /// the exact position of a segment. Also, the segment will be silent during the time that period
1375  /// (so that it restarts precisely at the position that you specified). <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1376  /// also informs you about the remaining look-ahead time.
1377  ///
1378  /// Notes specific to Music Switch Containers:
1379  /// - Seeking triggers a music transition towards the current (or target) segment.
1380  /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1381  /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1382  /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1383  /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1384  ///
1385  /// \sa
1386  /// - <tt>AK::SoundEngine::RenderAudio()</tt>
1387  /// - <tt>AK::SoundEngine::PostEvent()</tt>
1388  /// - <tt>AK::SoundEngine::GetSourcePlayPosition()</tt>
1389  /// - <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1391  const wchar_t* in_pszEventName, ///< Name of the event
1392  AkGameObjectID in_gameObjectID , ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1393  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)
1394  bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see note above)
1395  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.
1396  );
1397 #endif //AK_SUPPORT_WCHAR
1398 
1399  /// Seeks inside all playing objects that are referenced in Play Actions of the specified Event.
1400  /// Seek position is specified as a percentage of the sound's total duration, and takes looping into account.
1401  ///
1402  /// Notes:
1403  /// - This works with all objects of the Containers hierarchy, and also with Music Segments and Music Switch Containers.
1404  /// - There is a restriction with sounds that play within a continuous sequence. Seeking is ignored
1405  /// if one of their ancestors is a continuous (random or sequence) container with crossfade or
1406  /// trigger rate transitions. Seeking is also ignored with sample-accurate transitions, unless
1407  /// the sound that is currently playing is the first sound of the sequence.
1408  /// - Seeking is also ignored with voices that can go virtual with "From Beginning" behavior.
1409  /// - If the option "Seek to nearest marker" is used, the seeking position snaps to the nearest marker.
1410  /// With objects of the Containers hierarchy, markers are embedded in wave files by an external wave editor.
1411  /// Note that looping regions ("sampler loop") are not considered as markers. Also, the "add file name marker" of the
1412  /// conversion settings dialog adds a marker at the beginning of the file, which is considered when seeking
1413  /// to nearest marker. In the case of interactive music objects (Music Segments, Music Switch Containers, and Music Playlist Containers), user (wave) markers are ignored:
1414  /// seeking occurs to the nearest segment cue (authored in the segment editor), including the Entry Cue, but excluding the Exit Cue.
1415  /// - This method posts a command in the sound engine queue, thus seeking will not occur before
1416  /// the audio thread consumes it (after a call to RenderAudio()).
1417  ///
1418  /// Notes specific to Music Segments:
1419  /// - With Music Segments, in_fPercent is relative to the Entry Cue, and the segment's duration is the
1420  /// duration between its entry and exit cues. Consequently, you cannot seek within the pre-entry or
1421  /// post-exit of a segment using this method. Use absolute values instead.
1422  /// - Music segments cannot be looped. You may want to listen to the AK_EndOfEvent notification
1423  /// in order to restart them if required.
1424  /// - In order to restart at the correct location, with all their tracks synchronized, Music Segments
1425  /// take the "look-ahead time" property of their streamed tracks into account for seeking.
1426  /// Consequently, the resulting position after a call to SeekOnEvent() might be earlier than the
1427  /// value that was passed to the method. Use <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt> to query
1428  /// the exact position of a segment. Also, the segment will be silent during the time that period
1429  /// (so that it restarts precisely at the position that you specified). <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1430  /// also informs you about the remaining look-ahead time.
1431  ///
1432  /// Notes specific to Music Switch Containers:
1433  /// - Seeking triggers a music transition towards the current (or target) segment.
1434  /// This transition is subject to the container's transition rule that matches the current and defined in the container,
1435  /// so the moment when seeking occurs depends on the rule's "Exit At" property. On the other hand, the starting position
1436  /// in the target segment depends on both the desired seeking position and the rule's "Sync To" property.
1437  /// - If the specified time is greater than the destination segment's length, the modulo is taken.
1438  ///
1439  /// \sa
1440  /// - <tt>AK::SoundEngine::RenderAudio()</tt>
1441  /// - <tt>AK::SoundEngine::PostEvent()</tt>
1442  /// - <tt>AK::SoundEngine::GetSourcePlayPosition()</tt>
1443  /// - <tt>AK::SoundEngine::GetPlayingSegmentInfo()</tt>
1445  const char* in_pszEventName, ///< Name of the event
1446  AkGameObjectID in_gameObjectID, ///< Associated game object ID; use AK_INVALID_GAME_OBJECT to affect all game objects
1447  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)
1448  bool in_bSeekToNearestMarker = false, ///< If true, the final seeking position will be made equal to the nearest marker (see notes above).
1449  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.
1450  );
1451 
1452  /// Cancels all Event callbacks associated with a specific callback cookie.\n
1453  /// \sa
1454  /// - <tt>AK::SoundEngine::PostEvent()</tt>
1456  void * in_pCookie ///< Callback cookie to be cancelled
1457  );
1458 
1459  /// Cancels all Event callbacks associated with a specific game object.\n
1460  /// \sa
1461  /// - <tt>AK::SoundEngine::PostEvent()</tt>
1463  AkGameObjectID in_gameObjectID ///< ID of the game object to be cancelled
1464  );
1465 
1466  /// Cancels all Event callbacks for a specific playing ID.
1467  /// \sa
1468  /// - <tt>AK::SoundEngine::PostEvent()</tt>
1470  AkPlayingID in_playingID ///< Playing ID of the event that must not use callbacks
1471  );
1472 
1473  /// Gets the current position of the source associated with this playing ID, obtained from PostEvent(). If more than one source is playing,
1474  /// the first to play is returned.
1475  /// Notes:
1476  /// - The source's position is updated at every audio frame, and the time at which this occurs is stored.
1477  /// When you call this function from your thread, you therefore query the position that was updated in the previous audio frame.
1478  /// If in_bExtrapolate is true (default), the returned position is extrapolated using the elapsed time since last
1479  /// sound engine update and the source's playback rate.
1480  /// \return
1481  /// - \c AK_Success if successful.
1482  /// - \c AK_InvalidParameter if the provided pointer is not valid.
1483  /// - \c AK_PlayingIDNotFound if the playing ID is invalid (not playing yet, or finished playing).
1484  /// \sa
1485  /// - \ref soundengine_query_pos
1486  /// - \ref concept_events
1488  AkPlayingID in_PlayingID, ///< Playing ID returned by <tt>AK::SoundEngine::PostEvent()</tt>
1489  AkTimeMs* out_puPosition, ///< Position of the source (in ms) associated with the specified playing ID
1490  bool in_bExtrapolate = true ///< Position is extrapolated based on time elapsed since last sound engine update.
1491  );
1492 
1493  /// Gets the current position of the sources associated with this playing ID, obtained from PostEvent().
1494  /// Notes:
1495  /// - The source's position is updated at every audio frame, and the time at which this occurs is stored.
1496  /// When you call this function from your thread, you therefore query the position that was updated in the previous audio frame.
1497  /// If in_bExtrapolate is true (default), the returned position is extrapolated using the elapsed time since last
1498  /// sound engine update and the source's playback rate.
1499  /// - If 0 is passed in for the number of entries (*in_pcPositions == 0) then only the number of positions will be returned and the
1500  /// position array (out_puPositions) will not be updated.
1501  /// - The io_pcPositions pointer must be non-NULL.
1502  /// out_puPositions may be NULL if *io_pcPositions == 0, otherwise it must be non-NULL.
1503  /// \return
1504  /// - \c AK_Success if successful.
1505  /// - \c AK_InvalidParameter if the provided pointer is not valid.
1506  /// - \c AK_PlayingIDNotFound if the playing ID is invalid (not playing yet, or finished playing).
1507  /// \sa
1508  /// - \ref soundengine_query_pos
1509  /// - \ref concept_events
1511  AkPlayingID in_PlayingID, ///< Playing ID returned by <tt>AK::SoundEngine::PostEvent()</tt>
1512  AkSourcePosition* out_puPositions, ///< Audio Node IDs and positions of sources associated with the specified playing ID
1513  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
1514  bool in_bExtrapolate = true ///< Position is extrapolated based on time elapsed since last sound engine update
1515  );
1516 
1517  /// Query information on the active segment of a music object that is playing. Use the playing ID
1518  /// that was returned from AK::SoundEngine::PostEvent(), provided that the event contained a play
1519  /// action that was targeting a music object. For any interactive music object (Music Segments, Music Switch Containers, and Music Playlist Containers),
1520  /// there is only one segment that is active at a time.
1521  /// To be able to query segment information, you must pass the AK_EnableGetMusicPlayPosition flag
1522  /// to the AK::SoundEngine::PostEvent() method. This informs the sound engine that the source associated
1523  /// with this event should be given special consideration because GetPlayingSegmentInfo() can be called
1524  /// at any time for this AkPlayingID.
1525  /// Notes:
1526  /// - If the music object is a single segment, you will get negative values for AkSegmentInfo::iCurrentPosition
1527  /// during the pre-entry. This will never occur with other types of music objects because the
1528  /// pre-entry of a segment always overlaps another active segment.
1529  /// - The active segment during the pre-entry of the first segment of a Playlist Container or a Music Switch
1530  /// Container is "nothing", as well as during the post-exit of the last segment of a Playlist (and beyond).
1531  /// - When the active segment is "nothing", out_uSegmentInfo is filled with zeros.
1532  /// - If in_bExtrapolate is true (default), AkSegmentInfo::iCurrentPosition is corrected by the amount of time elapsed
1533  /// since the beginning of the audio frame. It is thus possible that it slightly overshoots the total segment length.
1534  /// \return AK_Success if there is a playing music structure associated with the specified playing ID.
1535  /// \sa
1536  /// - AK::SoundEngine::PostEvent
1537  /// - AkSegmentInfo
1539  AkPlayingID in_PlayingID, ///< Playing ID returned by AK::SoundEngine::PostEvent().
1540  AkSegmentInfo& out_segmentInfo, ///< Structure containing information about the active segment of the music structure that is playing.
1541  bool in_bExtrapolate = true ///< Position is extrapolated based on time elapsed since last sound engine update.
1542  );
1543 
1544  /// Gets the stream buffering of the sources associated with this playing ID, obtained from PostEvent().
1545  /// Notes:
1546  /// - You need to pass AK_EnableGetSourceStreamBuffering to PostEvent() in order to use this function, otherwise
1547  /// it returns AK_Fail, even if the playing ID is valid.
1548  /// - The sources stream buffering is updated at every audio frame. If there are multiple sources associated with this playing ID,
1549  /// the value returned corresponds to the least buffered source.
1550  /// - The returned buffering status out_bIsBuffering will be true If any of the sources associated with the playing ID are actively being buffered.
1551  /// 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.
1552  /// - Purely in-memory sources are excluded from this database. If all sources are in-memory, GetSourceStreamBuffering() will return AK_PlayingIDNotFound.
1553  /// - 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.
1554  /// 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.
1555  /// \return
1556  /// - \c AK_Success if successful.
1557  /// - \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.
1558  /// \sa
1559  /// - \ref concept_events
1561  AkPlayingID in_PlayingID, ///< Playing ID returned by <tt>AK::SoundEngine::PostEvent()</tt>
1562  AkTimeMs & out_buffering, ///< Returned amount of buffering (in ms) of the source (or one of the sources) associated with that playing ID
1563  bool & out_bIsBuffering ///< Returned buffering status of the source(s) associated with that playing ID
1564  );
1565 
1566  /// Stops the current content playing associated to the specified game object ID.
1567  /// If no game object is specified, all sounds will be stopped.
1569  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT ///< (Optional)Specify a game object to stop only playback associated to the provided game object ID.
1570  );
1571 
1572  /// Stop the current content playing associated to the specified playing ID.
1573  /// \aknote
1574  /// This function is deprecated. It is functionally identical to ExecuteActionOnPlayingID() using AkActionOnEventType_Stop.
1575  /// API call in Wwise Capture Log will show ExecuteActionOnPlayingID when calling this function.
1576  /// Use ExecuteActionOnPlayingID() instead.
1577  /// \endaknote
1578  /// \sa
1579  /// - <tt>AK::SoundEngine::ExecuteActionOnPlayingID()</tt>
1581  AkPlayingID in_playingID, ///< Playing ID to be stopped.
1582  AkTimeMs in_uTransitionDuration = 0, ///< Fade duration
1583  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear ///< Curve type to be used for the transition
1584  );
1585 
1586  /// Executes an Action on the content associated to the specified playing ID.
1587  /// \sa
1588  /// - <tt>AkActionOnEventType</tt>
1590  AkActionOnEventType in_ActionType, ///< Action to execute on the specified playing ID.
1591  AkPlayingID in_playingID, ///< Playing ID on which to execute the action.
1592  AkTimeMs in_uTransitionDuration = 0, ///< Fade duration
1593  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear ///< Curve type to be used for the transition
1594  );
1595 
1596  /// Sets the random seed value. Can be used to synchronize randomness
1597  /// across instances of the Sound Engine.
1598  /// \remark This seeds the number generator used for all container randomization
1599  /// and the plug-in RNG; since it acts globally, this should be called right
1600  /// before any PostEvent call where randomness synchronization is required,
1601  /// and cannot guarantee similar results for continuous containers.
1602  /// \sa
1603  /// - <tt>AK::IAkPluginServiceRNG</tt>
1605  AkUInt32 in_uSeed ///< Random seed.
1606  );
1607 
1608  /// Mutes/Unmutes the busses tagged as background music.
1609  /// This is automatically called for platforms that have user-music support.
1610  /// This function is provided to give the same behavior on platforms that don't have user-music support.
1612  bool in_bMute ///< Sets true to mute, false to unmute.
1613  );
1614  //@}
1615 
1616  /// Gets the state of the Background Music busses. This state is either set directly
1617  /// with \c AK::SoundEngine::MuteBackgroundMusic or by the OS, if it has User Music services.
1618  /// \return true if the background music busses are muted, false if not.
1620  //@}
1621 
1622 
1623  /// Sends custom game data to a plug-in that resides on a bus (effect plug-in) or a voice (source plug-in).
1624  /// Data will be copied and stored into a separate list.
1625  /// Previous entry is deleted when a new one is sent.
1626  /// Sets the data pointer to NULL to clear item from the list.
1627  /// \aknote The plug-in type and ID are passed and matched with plugins set on the desired bus.
1628  /// This means that multiple instances of the same plug-in on a given bus' effect chain will always receive the same data.
1629  /// \endaknote
1630  /// \return AK_Success if data was sent successfully.
1632  AkUniqueID in_busID, ///< Bus ID. For source plug-ins, specify AK_INVALID_UNIQUE_ID.
1633  AkGameObjectID in_gameObjectID, ///< Game Object ID. Pass AK_INVALID_GAME_OBJECT to send custom data with global scope. Game object scope supersedes global scope, as with RTPCs.
1634  AkPluginType in_eType, ///< Plug-in type (for example, source or effect)
1635  AkUInt32 in_uCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
1636  AkUInt32 in_uPluginID, ///< Plug-in identifier (as declared in the plug-in description XML file)
1637  const void* in_pData, ///< The data blob
1638  AkUInt32 in_uSizeInBytes ///< Size of data
1639  );
1640  //@}
1641 
1642  ////////////////////////////////////////////////////////////////////////
1643  /// @name Game Objects
1644  //@{
1645 
1646  /// Registers a game object.
1647  /// \return
1648  /// - \c AK_Success if successful
1649  /// - \c AK_InvalidParameter if the specified AkGameObjectID is invalid. Range 0xFFFFFFFFFFFFFFE0 (-32) to 0xFFFFFFFFFFFFFFFF (-1) are invalid inclusively.
1650  /// \remark Registering a game object twice does nothing. Unregistering it once unregisters it no
1651  /// matter how many times it has been registered.
1652  /// \sa
1653  /// - <tt>AK::SoundEngine::UnregisterGameObj()</tt>
1654  /// - <tt>AK::SoundEngine::UnregisterAllGameObj()</tt>
1655  /// - \ref concept_gameobjects
1657  AkGameObjectID in_gameObjectID ///< ID of the game object to be registered. Valid range is [0 to 0xFFFFFFFFFFFFFFDF].
1658  );
1659 
1660  /// Registers a game object.
1661  /// \return
1662  /// - \c AK_Success if successful
1663  /// - \c AK_InvalidParameter if the specified AkGameObjectID is invalid. Range 0xFFFFFFFFFFFFFFE0 (-32) to 0xFFFFFFFFFFFFFFFF (-1) are invalid inclusively.
1664  /// \remark Registering a game object twice does nothing. Unregistering it once unregisters it no
1665  /// matter how many times it has been registered.
1666  /// \sa
1667  /// - <tt>AK::SoundEngine::UnregisterGameObj()</tt>
1668  /// - <tt>AK::SoundEngine::UnregisterAllGameObj()</tt>
1669  /// - \ref concept_gameobjects
1671  AkGameObjectID in_gameObjectID, ///< ID of the game object to be registered. Valid range is [0 to 0xFFFFFFFFFFFFFFDF].
1672  const char * in_pszObjName ///< Name of the game object (for monitoring purpose)
1673  );
1674 
1675  /// Unregisters a game object.
1676  /// \return
1677  /// - \c AK_Success if successful
1678  /// - \c AK_InvalidParameter if the specified AkGameObjectID is invalid. Range 0xFFFFFFFFFFFFFFE0 (-32) to 0xFFFFFFFFFFFFFFFF (-1) are invalid inclusively.
1679  /// \remark Registering a game object twice does nothing. Unregistering it once unregisters it no
1680  /// matter how many times it has been registered. Unregistering a game object while it is
1681  /// in use is allowed, but the control over the parameters of this game object is lost.
1682  /// For example, say a sound associated with this game object is a 3D moving sound. This sound will
1683  /// stop moving when the game object is unregistered, and there will be no way to regain control over the game object.
1684  /// \sa
1685  /// - <tt>AK::SoundEngine::RegisterGameObj()</tt>
1686  /// - <tt>AK::SoundEngine::UnregisterAllGameObj()</tt>
1687  /// - \ref concept_gameobjects
1689  AkGameObjectID in_gameObjectID ///< ID of the game object to be unregistered. Valid range is [0 to 0xFFFFFFFFFFFFFFDF]. Use
1690  ///< AK_INVALID_GAME_OBJECT to unregister all game objects.
1691  );
1692 
1693  /// Unregister all game objects, or all game objects with a particular matching set of property flags.
1694  /// This function to can be used to unregister all game objects.
1695  /// \return
1696  /// - \c AK_Success if successful
1697  /// \remark Registering a game object twice does nothing. Unregistering it once unregisters it no
1698  /// matter how many times it has been registered. Unregistering a game object while it is
1699  /// in use is allowed, but the control over the parameters of this game object is lost.
1700  /// For example, if a sound associated with this game object is a 3D moving sound, it will
1701  /// stop moving once the game object is unregistered, and there will be no way to recover
1702  /// the control over this game object.
1703  /// \sa
1704  /// - <tt>AK::SoundEngine::RegisterGameObj()</tt>
1705  /// - <tt>AK::SoundEngine::UnregisterGameObj()</tt>
1706  /// - \ref concept_gameobjects
1708  );
1709 
1710  /// Sets the position of a game object.
1711  /// \warning The object's orientation vector (in_Position.Orientation) must be normalized.
1712  /// \return
1713  /// - \c AK_Success when successful
1714  /// - \c AK_InvalidParameter if parameters are not valid, for example:
1715  /// + in_Position makes an invalid transform
1716  /// + in_eFlags is not one of the valid enum values
1717  /// + the game object ID is in the reserved ID range.
1718  /// \sa
1719  /// - \ref soundengine_3dpositions
1721  AkGameObjectID in_GameObjectID, ///< Game Object identifier
1722  const AkSoundPosition & in_Position,///< Position to set; in_Position.Orientation must be normalized.
1723  AkSetPositionFlags in_eFlags = AkSetPositionFlags_Default ///< Optional flags to independently set the position of the emitter or listener component.
1724  );
1725 
1726  /// Sets multiple positions to a single game object.
1727  /// Setting multiple positions on a single game object is a way to simulate multiple emission sources while using the resources of only one voice.
1728  /// This can be used to simulate wall openings, area sounds, or multiple objects emitting the same sound in the same area.
1729  /// \aknote
1730  /// - Calling <tt>AK::SoundEngine::SetMultiplePositions()</tt> with only one position is the same as calling <tt>AK::SoundEngine::SetPosition()</tt>
1731  /// - If a sound has diffraction enabled, it is treated as <tt>AkMultiPositionType_MultiDirections</tt>. <tt>AkMultiPositionType_MultiSources</tt> is not supported in this case.
1732  /// \endaknote
1733  /// \return
1734  /// - \c AK_Success when successful
1735  /// - \c AK_CommandTooLarge if the number of positions is too large for the command queue. Reduce the number of positions.
1736  /// - \c AK_InvalidParameter if parameters are not valid, for example:
1737  /// + in_Position makes an invalid transform
1738  /// + in_eFlags is not one of the valid enum values
1739  /// + the game object ID is in the reserved ID range.
1740  /// \sa
1741  /// - \ref soundengine_3dpositions
1742  /// - \ref soundengine_3dpositions_multiplepos
1743  /// - \ref AkMultiPositionType
1745  AkGameObjectID in_GameObjectID, ///< Game Object identifier.
1746  const AkSoundPosition * in_pPositions, ///< Array of positions to apply.
1747  AkUInt16 in_NumPositions, ///< Number of positions specified in the provided array.
1748  AkMultiPositionType in_eMultiPositionType = AkMultiPositionType_MultiDirections, ///< \ref AkMultiPositionType
1749  AkSetPositionFlags in_eFlags = AkSetPositionFlags_Default ///< Optional flags to independently set the position of the emitter or listener component.
1750  );
1751 
1752  /// Sets multiple positions to a single game object, with flexible assignment of input channels.
1753  /// Setting multiple positions on a single game object is a way to simulate multiple emission sources while using the resources of only one voice.
1754  /// This can be used to simulate wall openings, area sounds, or multiple objects emitting the same sound in the same area.
1755  /// \aknote Calling <tt>AK::SoundEngine::SetMultiplePositions()</tt> with only one position is the same as calling <tt>AK::SoundEngine::SetPosition()</tt> \endaknote
1756  /// \return
1757  /// - \c AK_Success when successful
1758  /// - \c AK_CommandTooLarge if the number of positions is too large for the command queue. Reduce the number of positions.
1759  /// - \c AK_InvalidParameter if parameters are not valid.
1760  /// \sa
1761  /// - \ref soundengine_3dpositions
1762  /// - \ref soundengine_3dpositions_multiplepos
1763  /// - \ref AkMultiPositionType
1765  AkGameObjectID in_GameObjectID, ///< Game Object identifier.
1766  const AkChannelEmitter * in_pPositions, ///< Array of positions to apply, each using its own channel mask.
1767  AkUInt16 in_NumPositions, ///< Number of positions specified in the provided array.
1768  AkMultiPositionType in_eMultiPositionType = AkMultiPositionType_MultiDirections, ///< \ref AkMultiPositionType
1769  AkSetPositionFlags in_eFlags = AkSetPositionFlags_Default ///< Optional flags to independently set the position of the emitter or listener component.
1770  );
1771 
1772  /// Sets the scaling factor of a Game Object.
1773  /// Modify the attenuation computations on this Game Object to simulate sounds with a larger or smaller area of effect.
1774  /// \return
1775  /// - \c AK_Success when successful
1776  /// - \c AK_InvalidParameter if the scaling factor specified was 0 or negative.
1777  /// - \c AK_InvalidFloatValue if the value specified was NaN or Inf
1779  AkGameObjectID in_GameObjectID, ///< Game object identifier
1780  AkReal32 in_fAttenuationScalingFactor ///< Scaling Factor, 1 means 100%, 0.5 means 50%, 2 means 200%, and so on.
1781  );
1782 
1783  /// Use the position of a separate game object for distance calculations for a specified listener.
1784  /// When <tt>AK::SoundEngine::SetDistanceProbe()</tt> is called, Wwise calculates distance attenuation and filtering
1785  /// based on the distance between the distance probe Game Object (\c in_distanceProbeGameObjectID) and the emitter Game Object's position.
1786  /// In third-person perspective applications, the distance probe Game Object may be set to the player character's position,
1787  /// and the listener Game Object's position to that of the camera. In this scenario, attenuation is based on
1788  /// the distance between the character and the sound, whereas panning, spatialization, and spread and focus calculations are base on the camera.
1789  /// Both Game Objects, \c in_listenerGameObjectID and \c in_distanceProbeGameObjectID must have been previously registered using <tt>AK::SoundEngine::RegisterGameObj</tt>.
1790  /// This function is optional. if <tt>AK::SoundEngine::SetDistanceProbe()</tt> is never called, distance calculations are based on the listener Game Object position.
1791  /// 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.
1792  /// \aknote If the distance probe Game Object is assigned multiple positions, then the first position is used for distance calculations by the listener. \endaknote
1793  /// \return
1794  /// - \c AK_Success when successful
1795  /// \sa
1796  /// - <tt>AK::SoundEngine::SetPosition()</tt>
1798  AkGameObjectID in_listenerGameObjectID, ///< Game object identifier for the listener. Must have been previously registered via RegisterGameObj.
1799  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.
1800  );
1801 
1802  //@}
1803 
1804  ////////////////////////////////////////////////////////////////////////
1805  /// @name Bank Management
1806  //@{
1807 
1808  /// Processes all pending asynchronous bank operations.
1809  /// This function must be called periodically (once per game frame) when using asynchronous bank-loading functions.
1810  ///
1811  /// When <tt>AkInitSettings::bUseSoundBankMgrThread</tt> is <tt>false</tt>, this function processes all pending operations immediately on the calling thread.
1812  ///
1813  /// \akcaution
1814  /// When <tt>AkInitSettings::bUseSoundBankMgrThread</tt> is <tt>false</tt>, this function is not thread-safe. There should be a dedicated thread to call
1815  /// this function every game frame. In addition, synchronous Bank and Prepare calls implicitely call this function. Therefore, synchronous Bank and Prepare
1816  /// calls should always be called from the same thread that is calling <tt>AK::SoundEngine::ProcessBanks</tt>.
1817  /// \endakcaution
1818  ///
1819  /// \sa
1820  /// - <tt>AK::SoundEngine::LoadBank</tt>
1821  /// - <tt>AK::SoundEngine::PrepareEvent</tt>
1822  /// - \ref goingfurther_eventmgrthread
1824 
1825  /// Unload all currently loaded banks.
1826  /// It also internally calls ClearPreparedEvents() since at least one bank must have been loaded to allow preparing events.
1827  /// \return
1828  /// - \c AK_Success if successful
1829  /// - \c AK_NotInitialized if the sound engine was not correctly initialized or if there is not enough memory to handle the command
1830  /// \sa
1831  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
1832  /// - <tt>AK::SoundEngine::LoadBank()</tt>
1833  /// - \ref soundengine_banks
1835 
1836  /// Sets the I/O settings of the bank load and prepare event processes.
1837  /// The sound engine uses default values unless explicitly set by calling this method.
1838  /// \warning This function must be called before loading banks.
1839  /// \return
1840  /// - \c AK_Success if successful
1841  /// - \c AK_NotInitialized if the sound engine was not correctly initialized
1842  /// - \c AK_InvalidParameter if some parameters are invalid, check the debug console
1843  /// \sa
1844  /// - \ref soundengine_banks
1845  /// - \ref streamingdevicemanager
1847  AkReal32 in_fThroughput, ///< Average throughput of bank data streaming (bytes/ms) (the default value is AK_DEFAULT_BANK_THROUGHPUT)
1848  AkPriority in_priority ///< Priority of bank streaming (the default value is AK_DEFAULT_PRIORITY)
1849  );
1850 
1851 #ifdef AK_SUPPORT_WCHAR
1852  /// Load a bank synchronously (by Unicode string).\n
1853  /// The bank name and type are passed to the Stream Manager.
1854  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
1855  /// A bank load request will be posted, and consumed by the Bank Manager thread.
1856  /// The function returns when the request has been completely processed.
1857  /// \return
1858  /// The bank ID, which is obtained by hashing the bank name (see GetIDFromString()).
1859  /// You may use this ID with UnloadBank().
1860  /// - \c AK_Success: Load or unload successful.
1861  /// - \c AK_BankAlreadyLoaded: This bank is already loaded, nothing done.
1862  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
1863  /// - \c AK_BankReadError: I/O error.
1864  /// - \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.
1865  /// - \c AK_InvalidFile: File specified could not be opened.
1866  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
1867  /// - \c AK_NotInitialized if the sound engine was not correctly initialized
1868  /// - \c AK_InvalidParameter if some parameters are invalid, check the debug console
1869  /// - \c AK_InvalidBankType if the bank type parameter is out of range.
1870  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure, check the debug console)
1871  /// \remarks
1872  /// - The initialization bank (Init.bnk) must be loaded first.
1873  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
1874  /// initialization bank. If you need to load SoundBanks from a different project, you
1875  /// must first unload ALL banks, including the initialization bank, then load the
1876  /// initialization bank from the other project, and finally load banks from that project.
1877  /// - Codecs and plug-ins must be registered before loading banks that use them.
1878  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
1879  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
1880  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
1881  /// posting the event will fail.
1882  /// - The sound engine internally calls GetIDFromString(in_pszString) to return the correct bank ID.
1883  /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
1884  /// not the name of the file (if you changed it), nor the full path of the file. The path should be resolved in
1885  /// your implementation of the Stream Manager, or in the Low-Level I/O module if you use the default Stream Manager's implementation.
1886  /// \aknote
1887  /// 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.
1888  /// The Capture Log will still report the missing file. For example, this will be the case when SoundBanks were not generated.
1889  /// If this option is selected, you can work without SoundBanks as long as Wwise Authoring is connected.
1890  /// The Init.bnk is still required to initialize the sound engine properly.
1891  /// \endaknote
1892  /// \sa
1893  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
1894  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
1895  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
1896  /// - \ref soundengine_banks
1897  /// - \ref integrating_elements_plugins
1898  /// - \ref streamingdevicemanager
1899  /// - \ref streamingmanager_lowlevel
1900  /// - \ref sdk_bank_training
1902  const wchar_t* in_pszString, ///< Name of the bank to load
1903  AkBankID & out_bankID, ///< Returned bank ID
1904  AkBankType in_bankType = AkBankType_User ///< Type of the bank to load
1905  );
1906 #endif //AK_SUPPORT_WCHAR
1907 
1908  /// Loads a bank synchronously.\n
1909  /// The bank name and type are passed to the Stream Manager.
1910  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
1911  /// A bank load request will be posted, and consumed by the Bank Manager thread.
1912  /// The function returns when the request has been completely processed.
1913  /// \return
1914  /// The bank ID, which is obtained by hashing the bank name (see GetIDFromString()).
1915  /// You may use this ID with UnloadBank().
1916  /// - \c AK_Success: Load or unload successful.
1917  /// - \c AK_BankAlreadyLoaded: This bank is already loaded, nothing done.
1918  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
1919  /// - \c AK_BankReadError: I/O error.
1920  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
1921  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
1922  /// - \c AK_InvalidFile: File specified could not be opened.
1923  /// - \c AK_NotInitialized if the sound engine was not correctly initialized
1924  /// - \c AK_InvalidParameter if some parameters are invalid, check the debug console
1925  /// - \c AK_InvalidBankType if the bank type parameter is out of range.
1926  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
1927  /// \remarks
1928  /// - The initialization bank (Init.bnk) must be loaded first.
1929  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
1930  /// initialization bank. If you need to load SoundBanks from a different project, you
1931  /// must first unload ALL banks, including the initialization bank, then load the
1932  /// initialization bank from the other project, and finally load banks from that project.
1933  /// - Codecs and plug-ins must be registered before loading banks that use them.
1934  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
1935  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
1936  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
1937  /// posting the event will fail.
1938  /// - The sound engine internally calls GetIDFromString(in_pszString) to return the correct bank ID.
1939  /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
1940  /// not the name of the file (if you changed it), nor the full path of the file. The path should be resolved in
1941  /// your implementation of the Stream Manager, or in the Low-Level I/O module if you use the default Stream Manager's implementation.
1942  /// \aknote
1943  /// 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.
1944  /// The Capture Log will still report the missing file. For example, this will be the case when SoundBanks were not generated.
1945  /// If this option is selected, you can work without SoundBanks as long as Wwise Authoring is connected.
1946  /// The Init.bnk is still required to initialize the sound engine properly.
1947  /// \endaknote
1948  /// \sa
1949  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
1950  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
1951  /// - <tt>AK::SoundEngine::GetIDFromString</tt>
1952  /// - \ref soundengine_banks
1953  /// - \ref integrating_elements_plugins
1954  /// - \ref streamingdevicemanager
1955  /// - \ref streamingmanager_lowlevel
1956  /// - \ref sdk_bank_training
1958  const char* in_pszString, ///< Name of the bank to load
1959  AkBankID & out_bankID, ///< Returned bank ID
1960  AkBankType in_bankType = AkBankType_User ///< Type of the bank to load
1961  );
1962 
1963  /// Loads a bank synchronously (by ID).\n
1964  /// \aknote Requires that the "Use SoundBank names" option be unchecked in the Wwise Project Settings. \endaknote
1965  /// The bank ID is passed to the Stream Manager.
1966  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
1967  /// A bank load request will be posted, and consumed by the Bank Manager thread.
1968  /// The function returns when the request has been completely processed.
1969  /// \return
1970  /// - \c AK_Success: Load or unload successful.
1971  /// - \c AK_BankAlreadyLoaded: This bank is already loaded, nothing done.
1972  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
1973  /// - \c AK_BankReadError: I/O error. The bank is either shorter than expected or its data corrupted.
1974  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
1975  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
1976  /// - \c AK_InvalidFile: File specified could not be opened.
1977  /// - \c AK_NotInitialized if the sound engine was not correctly initialized
1978  /// - \c AK_InvalidParameter if some parameters are invalid, check the debug console or Wwise Profiler
1979  /// - \c AK_InvalidBankType if the bank type parameter is out of range.
1980  /// - \c AK_FileNotFound if the bank file was not found on disk.
1981  /// - \c AK_FilePermissionError if the file permissions are wrong for the file
1982  /// - \c AK_Fail: Load or unload failed for any other reason. , check the debug console or Wwise Profiler
1983  /// \remarks
1984  /// - The initialization bank (Init.bnk) must be loaded first.
1985  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
1986  /// initialization bank. If you need to load SoundBanks from a different project, you
1987  /// must first unload ALL banks, including the initialization bank, then load the
1988  /// initialization bank from the other project, and finally load banks from that project.
1989  /// - Codecs and plug-ins must be registered before loading banks that use them.
1990  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
1991  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
1992  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
1993  /// posting the event will fail.
1994  /// \aknote
1995  /// 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.
1996  /// The Capture Log will still report the missing file. For example, this will be the case when SoundBanks were not generated.
1997  /// If this option is selected, you can work without SoundBanks as long as Wwise Authoring is connected.
1998  /// The Init.bnk is still required to initialize the sound engine properly.
1999  /// \endaknote
2000  /// \sa
2001  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2002  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2003  /// - \ref soundengine_banks
2004  /// - \ref integrating_elements_plugins
2005  /// - \ref sdk_bank_training
2007  AkBankID in_bankID, ///< Bank ID of the bank to load
2008  AkBankType in_bankType = AkBankType_User ///< Type of the bank to load
2009  );
2010 
2011  /// Loads a bank synchronously (from in-memory data, in-place, user bank only).\n
2012  ///
2013  /// IMPORTANT: Banks loaded from memory with in-place data MUST be unloaded using the UnloadBank function
2014  /// providing the same memory pointer. Make sure you are using the correct UnloadBank(...) overload
2015  ///
2016  /// Use LoadBankMemoryView when you want to manage I/O on your side. Load the bank file
2017  /// in a buffer and pass its address to the sound engine.
2018  /// In-memory loading is in-place: *** the memory must be valid until the bank is unloaded. ***
2019  /// A bank load request will be posted, and consumed by the Bank Manager thread.
2020  /// The function returns when the request has been completely processed.
2021  /// \return
2022  /// The bank ID, which is stored in the first few bytes of the bank file. You may use this
2023  /// ID with UnloadBank().
2024  /// - \c AK_Success: Load or unload successful.
2025  /// - \c AK_BankAlreadyLoaded: This bank is already loaded, nothing done.
2026  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
2027  /// - \c AK_BankReadError: I/O error.
2028  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
2029  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
2030  /// - \c AK_InvalidFile: File specified could not be opened.
2031  /// - \c AK_NotInitialized if the sound engine was not correctly initialized
2032  /// - \c AK_InvalidParameter if some parameters are invalid, check the debug console
2033  /// - \c AK_InvalidBankType if the bank is not a user-defined bank.
2034  /// - \c AK_DataAlignmentError if the data pointer is not aligned properly
2035  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2036  /// \remarks
2037  /// - The initialization bank (Init.bnk) must be loaded first.
2038  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2039  /// initialization bank. If you need to load SoundBanks from a different project, you
2040  /// must first unload ALL banks, including the initialization bank, then load the
2041  /// initialization bank from the other project, and finally load banks from that project.
2042  /// - Codecs and plug-ins must be registered before loading banks that use them.
2043  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2044  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2045  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2046  /// posting the event will fail.
2047  /// - The memory must be aligned on platform-specific AK_BANK_PLATFORM_DATA_ALIGNMENT bytes (see AkTypes.h).
2048  /// - Avoid using this function for banks containing a lot of events or structure data: this data will be unpacked into the sound engine heap,
2049  /// making the supplied bank memory redundant. For event/structure-only banks, prefer LoadBankMemoryCopy().
2050  /// \sa
2051  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2052  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2053  /// - \ref soundengine_banks
2054  /// - \ref integrating_elements_plugins
2055  /// - \ref sdk_bank_training
2057  const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is stored in sound engine, memory must remain valid)
2058  AkUInt32 in_uInMemoryBankSize, ///< Size of the in-memory bank to load
2059  AkBankID & out_bankID ///< Returned bank ID
2060  );
2061 
2062  /// Loads a bank synchronously (from in-memory data, in-place, any bank type).\n
2063  ///
2064  /// IMPORTANT: Banks loaded from memory with in-place data MUST be unloaded using the UnloadBank function
2065  /// providing the same memory pointer. Make sure you are using the correct UnloadBank(...) overload
2066  ///
2067  /// Use LoadBankMemoryView when you want to manage I/O on your side. Load the bank file
2068  /// in a buffer and pass its address to the sound engine.
2069  /// In-memory loading is in-place: *** the memory must be valid until the bank is unloaded. ***
2070  /// A bank load request will be posted, and consumed by the Bank Manager thread.
2071  /// The function returns when the request has been completely processed.
2072  /// \return
2073  /// The bank ID, which is stored in the first few bytes of the bank file. You may use this
2074  /// ID with UnloadBank().
2075  /// - \c AK_Success: Load or unload successful.
2076  /// - \c AK_BankAlreadyLoaded: This bank is already loaded, nothing done.
2077  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
2078  /// - \c AK_BankReadError: I/O error.
2079  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
2080  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
2081  /// - \c AK_InvalidFile: File specified could not be opened.
2082  /// - \c AK_NotInitialized if the sound engine was not correctly initialized
2083  /// - \c AK_InvalidParameter if some parameters are invalid, check the debug console
2084  /// - \c AK_DataAlignmentError if the data pointer is not aligned properly
2085  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2086  /// \remarks
2087  /// - The initialization bank (Init.bnk) must be loaded first.
2088  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2089  /// initialization bank. If you need to load SoundBanks from a different project, you
2090  /// must first unload ALL banks, including the initialization bank, then load the
2091  /// initialization bank from the other project, and finally load banks from that project.
2092  /// - Codecs and plug-ins must be registered before loading banks that use them.
2093  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2094  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2095  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2096  /// posting the event will fail.
2097  /// - The memory must be aligned on platform-specific AK_BANK_PLATFORM_DATA_ALIGNMENT bytes (see AkTypes.h).
2098  /// - Avoid using this function for banks containing a lot of events or structure data: this data will be unpacked into the sound engine heap,
2099  /// making the supplied bank memory redundant. For event/structure-only banks, prefer LoadBankMemoryCopy().
2100  /// \sa
2101  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2102  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2103  /// - \ref soundengine_banks
2104  /// - \ref integrating_elements_plugins
2105  /// - \ref sdk_bank_training
2107  const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is stored in sound engine, memory must remain valid)
2108  AkUInt32 in_uInMemoryBankSize, ///< Size of the in-memory bank to load
2109  AkBankID & out_bankID, ///< Returned bank ID
2110  AkBankType & out_bankType ///< Returned bank type
2111  );
2112 
2113  /// Loads a bank synchronously (from in-memory data, out-of-place, user bank only).\n
2114  ///
2115  /// NOTE: Banks loaded from in-memory with out-of-place data must be unloaded using the standard UnloadBank function
2116  /// (with no memory pointer). Make sure you are using the correct UnloadBank(...) overload
2117  ///
2118  /// Use LoadBankMemoryCopy when you want to manage I/O on your side. Load the bank file
2119  /// in a buffer and pass its address to the sound engine, the media section of the bank will be copied into newly
2120  /// allocated memory.
2121  /// In-memory loading is out-of-place: the buffer can be release as soon as the function returns. The advantage of using this
2122  /// over the in-place version is that there is no duplication of bank structures.
2123  /// A bank load request will be posted, and consumed by the Bank Manager thread.
2124  /// The function returns when the request has been completely processed.
2125  /// \return
2126  /// The bank ID, which is stored in the first few bytes of the bank file. You may use this
2127  /// ID with UnloadBank().
2128  /// - \c AK_Success: Load or unload successful.
2129  /// - \c AK_BankAlreadyLoaded: This bank is already loaded, nothing done.
2130  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
2131  /// - \c AK_BankReadError: I/O error.
2132  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
2133  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
2134  /// - \c AK_InvalidFile: File specified could not be opened.
2135  /// - \c AK_NotInitialized if the sound engine was not correctly initialized
2136  /// - \c AK_InvalidParameter if some parameters are invalid, check the debug console
2137  /// - \c AK_InvalidBankType if the bank is not a user-defined bank.
2138  /// - \c AK_DataAlignmentError if the data pointer is not aligned properly
2139  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2140  /// \remarks
2141  /// - The initialization bank (Init.bnk) must be loaded first.
2142  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2143  /// initialization bank. If you need to load SoundBanks from a different project, you
2144  /// must first unload ALL banks, including the initialization bank, then load the
2145  /// initialization bank from the other project, and finally load banks from that project.
2146  /// - Codecs and plug-ins must be registered before loading banks that use them.
2147  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2148  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2149  /// 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  /// posting the event will fail.
2151  /// \sa
2152  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2153  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2154  /// - \ref soundengine_banks
2155  /// - \ref integrating_elements_plugins
2156  /// - \ref sdk_bank_training
2158  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)
2159  AkUInt32 in_uInMemoryBankSize, ///< Size of the in-memory bank to load
2160  AkBankID & out_bankID ///< Returned bank ID
2161  );
2162 
2163  /// Loads a bank synchronously (from in-memory data, out-of-place, any bank type).\n
2164  ///
2165  /// NOTE: Banks loaded from in-memory with out-of-place data must be unloaded using the standard UnloadBank function
2166  /// (with no memory pointer). Make sure you are using the correct UnloadBank(...) overload
2167  ///
2168  /// Use LoadBankMemoryCopy when you want to manage I/O on your side. Load the bank file
2169  /// in a buffer and pass its address to the sound engine, the media section of the bank will be copied into newly
2170  /// allocated memory.
2171  /// In-memory loading is out-of-place: the buffer can be release as soon as the function returns. The advantage of using this
2172  /// over the in-place version is that there is no duplication of bank structures.
2173  /// A bank load request will be posted, and consumed by the Bank Manager thread.
2174  /// The function returns when the request has been completely processed.
2175  /// \return
2176  /// The bank ID, which is stored in the first few bytes of the bank file. You may use this
2177  /// ID with UnloadBank().
2178  /// - \c AK_Success: Load or unload successful.
2179  /// - \c AK_BankAlreadyLoaded: This bank is already loaded, nothing done.
2180  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
2181  /// - \c AK_BankReadError: I/O error.
2182  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
2183  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
2184  /// - \c AK_InvalidFile: File specified could not be opened.
2185  /// - \c AK_NotInitialized if the sound engine was not correctly initialized
2186  /// - \c AK_InvalidParameter if some parameters are invalid, check the debug console
2187  /// - \c AK_DataAlignmentError if the data pointer is not aligned properly
2188  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2189  /// \remarks
2190  /// - The initialization bank (Init.bnk) must be loaded first.
2191  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2192  /// initialization bank. If you need to load SoundBanks from a different project, you
2193  /// must first unload ALL banks, including the initialization bank, then load the
2194  /// initialization bank from the other project, and finally load banks from that project.
2195  /// - Codecs and plug-ins must be registered before loading banks that use them.
2196  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2197  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2198  /// 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  /// posting the event will fail.
2200  /// \sa
2201  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2202  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2203  /// - \ref soundengine_banks
2204  /// - \ref integrating_elements_plugins
2205  /// - \ref sdk_bank_training
2207  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)
2208  AkUInt32 in_uInMemoryBankSize, ///< Size of the in-memory bank to load
2209  AkBankID & out_bankID, ///< Returned bank ID
2210  AkBankType & out_bankType ///< Returned bank type
2211  );
2212 
2213  /// 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.
2214  /// \n
2215  /// 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.
2217  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)
2218  AkUInt32 in_uInMemoryBankSize, ///< Size of the in-memory bank to decode
2219  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.
2220  void * & out_pDecodedBankPtr, ///< Decoded bank memory location.
2221  AkUInt32 & out_uDecodedBankSize ///< Decoded bank memory size.
2222  );
2223 
2224 #ifdef AK_SUPPORT_WCHAR
2225  /// Loads a bank asynchronously (by Unicode string).\n
2226  /// The bank name is passed to the Stream Manager.
2227  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
2228  /// A bank load request will be posted to the Bank Manager consumer thread.
2229  /// The function returns immediately.
2230  /// \return
2231  /// AK_Success if the scheduling was successful, AK_Fail otherwise.
2232  /// Use a callback to be notified when completed, and get the status of the request.
2233  /// The bank ID, which is obtained by hashing the bank name (see GetIDFromString()).
2234  /// You may use this ID with UnloadBank().
2235  /// \remarks
2236  /// - The initialization bank (Init.bnk) must be loaded first.
2237  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2238  /// initialization bank. If you need to load SoundBanks from a different project, you
2239  /// must first unload ALL banks, including the initialization bank, then load the
2240  /// initialization bank from the other project, and finally load banks from that project.
2241  /// - Codecs and plug-ins must be registered before loading banks that use them.
2242  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2243  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2244  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2245  /// posting the event will fail.
2246  /// - The sound engine internally calls GetIDFromString(in_pszString) to return the correct bank ID.
2247  /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2248  /// not the name of the file (if you changed it), nor the full path of the file. The path should be resolved in
2249  /// your implementation of the Stream Manager (<tt>AK::IAkStreamMgr::CreateStd()</tt>), or in the Low-Level I/O module
2250  /// (<tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>) if you use the default Stream Manager's implementation.
2251  /// - The cookie (in_pCookie) is passed to the Low-Level I/O module for your convenience, in <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>
2252  /// as AkFileSystemFlags::pCustomParam.
2253  /// \aknote
2254  /// 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.
2255  /// This might be the case when sound banks were not generated, for example. The Capture Log will still report the missing file.
2256  /// This allows working without sound banks, as long as the Wwise Authoring is connected.
2257  /// The Init.bnk is still required to initialize the sound engine properly though.
2258  /// \endaknote
2259  /// \sa
2260  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2261  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2262  /// - AkBankCallbackFunc
2263  /// - \ref soundengine_banks
2264  /// - \ref integrating_elements_plugins
2265  /// - \ref streamingdevicemanager
2266  /// - \ref streamingmanager_lowlevel
2267  /// - \ref sdk_bank_training
2269  const wchar_t* in_pszString, ///< Name/path of the bank to load
2270  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2271  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)
2272  AkBankID & out_bankID, ///< Returned bank ID
2273  AkBankType in_bankType = AkBankType_User ///< Type of the bank to load
2274  );
2275 #endif //AK_SUPPORT_WCHAR
2276 
2277  /// Loads a bank asynchronously.\n
2278  /// The bank name is passed to the Stream Manager.
2279  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
2280  /// A bank load request will be posted to the Bank Manager consumer thread.
2281  /// The function returns immediately.
2282  /// \return
2283  /// - \c AK_Success if the scheduling was successful,
2284  /// - \c AK_InvalidBankType if in_bankType was invalid
2285  /// Use a callback to be notified when completed, and get the status of the request.
2286  /// The bank ID, which is obtained by hashing the bank name (see GetIDFromString()).
2287  /// You may use this ID with UnloadBank().
2288  /// \remarks
2289  /// - The initialization bank (Init.bnk) must be loaded first.
2290  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2291  /// initialization bank. If you need to load SoundBanks from a different project, you
2292  /// must first unload ALL banks, including the initialization bank, then load the
2293  /// initialization bank from the other project, and finally load banks from that project.
2294  /// - Codecs and plug-ins must be registered before loading banks that use them.
2295  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2296  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2297  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2298  /// posting the Event will fail.
2299  /// - The sound engine internally calls GetIDFromString(in_pszString) to return the correct bank ID.
2300  /// Therefore, \c in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2301  /// not the name of the file (if you changed it), nor the full path of the file. The path should be resolved in
2302  /// your implementation of the Stream Manager (<tt>AK::IAkStreamMgr::CreateStd()</tt>), or in the Low-Level I/O module
2303  /// (<tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>) if you use the default Stream Manager's implementation.
2304  /// - The cookie (in_pCookie) is passed to the Low-Level I/O module for your convenience, in <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>
2305  /// as <tt>AkFileSystemFlags::pCustomParam</tt>.
2306  /// \aknote
2307  /// 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.
2308  /// This might be the case when sound banks were not generated, for example. The Capture Log will still report the missing file.
2309  /// This allows working without sound banks, as long as Wwise Authoring is connected.
2310  /// The Init.bnk is still required to initialize the sound engine properly though.
2311  /// \endaknote
2312  /// \sa
2313  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2314  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2315  /// - AkBankCallbackFunc
2316  /// - \ref soundengine_banks
2317  /// - \ref integrating_elements_plugins
2318  /// - \ref streamingdevicemanager
2319  /// - \ref streamingmanager_lowlevel
2320  /// - \ref sdk_bank_training
2322  const char* in_pszString, ///< Name/path of the bank to load
2323  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2324  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)
2325  AkBankID & out_bankID, ///< Returned bank ID
2326  AkBankType in_bankType = AkBankType_User ///< Type of the bank to load
2327  );
2328 
2329  /// Loads a bank asynchronously (by ID).\n
2330  /// \aknote Requires that the "Use SoundBank names" option be unchecked in the Wwise Project Settings. \endaknote
2331  /// The bank ID is passed to the Stream Manager.
2332  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
2333  /// A bank load request will be posted to the Bank Manager consumer thread.
2334  /// The function returns immediately.
2335  /// \return
2336  /// - \c AK_Success if the scheduling was successful,
2337  /// - \c AK_InvalidBankType if in_bankType was invalid
2338  /// Use a callback to be notified when completed, and get the status of the request.
2339  /// The bank ID, which is obtained by hashing the bank name (see GetIDFromString()).
2340  /// You may use this ID with \c UnloadBank().
2341  /// \remarks
2342  /// - The initialization bank (Init.bnk) must be loaded first.
2343  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2344  /// initialization bank. If you need to load SoundBanks from a different project, you
2345  /// must first unload ALL banks, including the initialization bank, then load the
2346  /// initialization bank from the other project, and finally load banks from that project.
2347  /// - Codecs and plug-ins must be registered before loading banks that use them.
2348  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2349  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2350  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2351  /// posting the event will fail.
2352  /// - The file path should be resolved in your implementation of the Stream Manager, or in the Low-Level I/O module if
2353  /// 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.
2354  /// - The cookie (in_pCookie) is passed to the Low-Level I/O module for your convenience, in <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>
2355  /// as AkFileSystemFlags::pCustomParam.
2356  /// \aknote
2357  /// 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.
2358  /// This might be the case when sound banks were not generated, for example. The Capture Log will still report the missing file.
2359  /// This allows working without sound banks, as long as Wwise Authoring is connected.
2360  /// The Init.bnk is still required to initialize the sound engine properly though.
2361  /// \endaknote
2362  /// \sa
2363  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2364  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2365  /// - AkBankCallbackFunc
2366  /// - \ref soundengine_banks
2367  /// - \ref integrating_elements_plugins
2368  /// - \ref sdk_bank_training
2370  AkBankID in_bankID, ///< Bank ID of the bank to load
2371  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2372  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)
2373  AkBankType in_bankType = AkBankType_User ///< Type of the bank to load
2374  );
2375 
2376  /// Loads a bank asynchronously (from in-memory data, in-place, user bank only).\n
2377  ///
2378  /// IMPORTANT: Banks loaded from memory with in-place data MUST be unloaded using the UnloadBank function
2379  /// providing the same memory pointer. Make sure you are using the correct UnloadBank(...) overload
2380  ///
2381  /// Use LoadBankMemoryView when you want to manage I/O on your side. Load the bank file
2382  /// in a buffer and pass its address to the sound engine.
2383  /// In-memory loading is in-place: *** the memory must be valid until the bank is unloaded. ***
2384  /// A bank load request will be posted to the Bank Manager consumer thread.
2385  /// The function returns immediately.
2386  /// \return
2387  /// - \c AK_Success if the scheduling was successful,
2388  /// - \c AK_InvalidBankType if the bank is not a user-defined bank.
2389  /// - \c AK_DataAlignmentError if the data pointer is not aligned properly
2390  /// Use a callback to be notified when completed, and get the status of the request.
2391  /// The bank ID, which is obtained by hashing the bank name (see GetIDFromString()).
2392  /// You may use this ID with UnloadBank().
2393  /// \remarks
2394  /// - The initialization bank (Init.bnk) must be loaded first.
2395  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2396  /// initialization bank. If you need to load SoundBanks from a different project, you
2397  /// must first unload ALL banks, including the initialization bank, then load the
2398  /// initialization bank from the other project, and finally load banks from that project.
2399  /// - Codecs and plug-ins must be registered before loading banks that use them.
2400  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2401  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2402  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2403  /// posting the event will fail.
2404  /// - The memory must be aligned on platform-specific AK_BANK_PLATFORM_DATA_ALIGNMENT bytes (see AkTypes.h).
2405  /// - Avoid using this function for banks containing a lot of events or structure data: this data will be unpacked into the sound engine heap,
2406  /// making the supplied bank memory redundant. For event/structure-only banks, prefer LoadBankMemoryCopy().
2407  /// \sa
2408  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2409  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2410  /// - AkBankCallbackFunc
2411  /// - \ref soundengine_banks
2412  /// - \ref integrating_elements_plugins
2413  /// - \ref sdk_bank_training
2415  const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is stored in sound engine, memory must remain valid)
2416  AkUInt32 in_uInMemoryBankSize, ///< Size of the in-memory bank to load
2417  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2418  void * in_pCookie, ///< Callback cookie
2419  AkBankID & out_bankID ///< Returned bank ID
2420  );
2421 
2422  /// Loads a bank asynchronously (from in-memory data, in-place, any bank type).\n
2423  ///
2424  /// IMPORTANT: Banks loaded from memory with in-place data MUST be unloaded using the UnloadBank function
2425  /// providing the same memory pointer. Make sure you are using the correct UnloadBank(...) overload
2426  ///
2427  /// Use LoadBankMemoryView when you want to manage I/O on your side. Load the bank file
2428  /// in a buffer and pass its address to the sound engine.
2429  /// In-memory loading is in-place: *** the memory must be valid until the bank is unloaded. ***
2430  /// A bank load request will be posted to the Bank Manager consumer thread.
2431  /// The function returns immediately.
2432  /// \return
2433  /// - \c AK_Success if the scheduling was successful,
2434  /// - \c AK_DataAlignmentError if the data pointer is not aligned properly
2435  /// Use a callback to be notified when completed, and get the status of the request.
2436  /// The bank ID, which is obtained by hashing the bank name (see GetIDFromString()).
2437  /// You may use this ID with UnloadBank().
2438  /// \remarks
2439  /// - The initialization bank (Init.bnk) must be loaded first.
2440  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2441  /// initialization bank. If you need to load SoundBanks from a different project, you
2442  /// must first unload ALL banks, including the initialization bank, then load the
2443  /// initialization bank from the other project, and finally load banks from that project.
2444  /// - Codecs and plug-ins must be registered before loading banks that use them.
2445  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2446  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2447  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2448  /// posting the event will fail.
2449  /// - The memory must be aligned on platform-specific AK_BANK_PLATFORM_DATA_ALIGNMENT bytes (see AkTypes.h).
2450  /// - Avoid using this function for banks containing a lot of events or structure data: this data will be unpacked into the sound engine heap,
2451  /// making the supplied bank memory redundant. For event/structure-only banks, prefer LoadBankMemoryCopy().
2452  /// \sa
2453  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2454  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2455  /// - AkBankCallbackFunc
2456  /// - \ref soundengine_banks
2457  /// - \ref integrating_elements_plugins
2458  /// - \ref sdk_bank_training
2460  const void * in_pInMemoryBankPtr, ///< Pointer to the in-memory bank to load (pointer is stored in sound engine, memory must remain valid)
2461  AkUInt32 in_uInMemoryBankSize, ///< Size of the in-memory bank to load
2462  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2463  void * in_pCookie, ///< Callback cookie
2464  AkBankID & out_bankID, ///< Returned bank ID
2465  AkBankType & out_bankType ///< Returned bank type
2466  );
2467 
2468  /// Loads a bank asynchronously (from in-memory data, out-of-place, user bank only).\n
2469  ///
2470  /// NOTE: Banks loaded from in-memory with out-of-place data must be unloaded using the standard UnloadBank function
2471  /// (with no memory pointer). Make sure you are using the correct UnloadBank(...) overload
2472  ///
2473  /// Use LoadBankMemoryCopy when you want to manage I/O on your side. Load the bank file
2474  /// in a buffer and pass its address to the sound engine, the media section of the bank will be copied into newly allocated
2475  /// memory.
2476  /// In-memory loading is out-of-place: the buffer can be released after the callback function is called. The advantage of using this
2477  /// over the in-place version is that there is no duplication of bank structures.
2478  /// A bank load request will be posted to the Bank Manager consumer thread.
2479  /// The function returns immediately.
2480  /// \return
2481  /// - \c AK_Success if the scheduling was successful,
2482  /// - \c AK_InvalidBankType if the bank is not a user-defined bank.
2483  /// - \c AK_DataAlignmentError if the data pointer is not aligned properly
2484  /// Use a callback to be notified when completed, and get the status of the request.
2485  /// The bank ID, which is obtained by hashing the bank name (see GetIDFromString()).
2486  /// You may use this ID with UnloadBank().
2487  /// \remarks
2488  /// - The initialization bank (Init.bnk) must be loaded first.
2489  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2490  /// initialization bank. If you need to load SoundBanks from a different project, you
2491  /// must first unload ALL banks, including the initialization bank, then load the
2492  /// initialization bank from the other project, and finally load banks from that project.
2493  /// - Codecs and plug-ins must be registered before loading banks that use them.
2494  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2495  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2496  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2497  /// posting the event will fail.
2498  /// \sa
2499  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2500  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2501  /// - AkBankCallbackFunc
2502  /// - \ref soundengine_banks
2503  /// - \ref integrating_elements_plugins
2504  /// - \ref sdk_bank_training
2506  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  AkUInt32 in_uInMemoryBankSize, ///< Size of the in-memory bank to load
2508  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2509  void* in_pCookie, ///< Callback cookie
2510  AkBankID& out_bankID ///< Returned bank ID
2511  );
2512 
2513  /// Loads a bank asynchronously (from in-memory data, out-of-place, any bank type).\n
2514  ///
2515  /// NOTE: Banks loaded from in-memory with out-of-place data must be unloaded using the standard UnloadBank function
2516  /// (with no memory pointer). Make sure you are using the correct UnloadBank(...) overload
2517  ///
2518  /// Use LoadBankMemoryCopy when you want to manage I/O on your side. Load the bank file
2519  /// in a buffer and pass its address to the sound engine, the media section of the bank will be copied into newly allocated
2520  /// memory.
2521  /// In-memory loading is out-of-place: the buffer can be released after the callback function is called. The advantage of using this
2522  /// over the in-place version is that there is no duplication of bank structures.
2523  /// A bank load request will be posted to the Bank Manager consumer thread.
2524  /// The function returns immediately.
2525  /// \return
2526  /// - \c AK_Success if the scheduling was successful,
2527  /// - \c AK_InvalidBankType if in_bankType was invalid
2528  /// - \c AK_DataAlignmentError if the data pointer is not aligned properly
2529  /// Use a callback to be notified when completed, and get the status of the request.
2530  /// The bank ID, which is obtained by hashing the bank name (see GetIDFromString()).
2531  /// You may use this ID with UnloadBank().
2532  /// \remarks
2533  /// - The initialization bank (Init.bnk) must be loaded first.
2534  /// - All SoundBanks subsequently loaded must come from the same Wwise project as the
2535  /// initialization bank. If you need to load SoundBanks from a different project, you
2536  /// must first unload ALL banks, including the initialization bank, then load the
2537  /// initialization bank from the other project, and finally load banks from that project.
2538  /// - Codecs and plug-ins must be registered before loading banks that use them.
2539  /// - Loading a bank referencing an unregistered plug-in or codec will result in a load bank success,
2540  /// but the plug-ins will not be used. More specifically, playing a sound that uses an unregistered effect plug-in
2541  /// will result in audio playback without applying the said effect. If an unregistered source plug-in is used by an event's audio objects,
2542  /// posting the event will fail.
2543  /// \sa
2544  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2545  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2546  /// - AkBankCallbackFunc
2547  /// - \ref soundengine_banks
2548  /// - \ref integrating_elements_plugins
2549  /// - \ref sdk_bank_training
2551  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)
2552  AkUInt32 in_uInMemoryBankSize, ///< Size of the in-memory bank to load
2553  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2554  void * in_pCookie, ///< Callback cookie
2555  AkBankID & out_bankID, ///< Returned bank ID
2556  AkBankType & out_bankType ///< Returned bank type
2557  );
2558 
2559 #ifdef AK_SUPPORT_WCHAR
2560  /// Unloads a bank synchronously (by Unicode string).\n
2561  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
2562  /// \return AK_Success if successful, AK_Fail otherwise. AK_Success is returned when the bank was not loaded.
2563  /// \remarks
2564  /// - The sound engine internally calls GetIDFromString(in_pszString) to retrieve the bank ID,
2565  /// then it calls the synchronous version of UnloadBank() by ID.
2566  /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2567  /// not the name of the file (if you changed it), nor the full path of the file.
2568  /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2569  /// This means that streamed sounds or generated sounds will not be stopped.
2570  /// \sa
2571  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2572  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2573  /// - \ref soundengine_banks
2575  const wchar_t* in_pszString, ///< Name of the bank to unload
2576  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.
2577  AkBankType in_bankType = AkBankType_User ///< Type of the bank to unload
2578  );
2579 #endif //AK_SUPPORT_WCHAR
2580 
2581  /// Unloads a bank synchronously.\n
2582  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
2583  /// \return AK_Success if successful, AK_Fail otherwise. AK_Success is returned when the bank was not loaded.
2584  /// \remarks
2585  /// - The sound engine internally calls GetIDFromString(in_pszString) to retrieve the bank ID,
2586  /// then it calls the synchronous version of UnloadBank() by ID.
2587  /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2588  /// not the name of the file (if you changed it), nor the full path of the file.
2589  /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2590  /// This means that streamed sounds or generated sounds will not be stopped.
2591  /// \sa
2592  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2593  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2594  /// - \ref soundengine_banks
2596  const char* in_pszString, ///< Name of the bank to unload
2597  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.
2598  AkBankType in_bankType = AkBankType_User ///< Type of the bank to unload
2599  );
2600 
2601  /// Unloads a bank synchronously (by ID and memory pointer).\n
2602  /// \return AK_Success if successful, AK_Fail otherwise. AK_Success is returned when the bank was not loaded.
2603  /// \remarks
2604  /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2605  /// This means that streamed sounds or generated sounds will not be stopped.
2606  /// \sa
2607  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2608  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2609  /// - \ref soundengine_banks
2611  AkBankID in_bankID, ///< ID of the bank to unload
2612  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.
2613  AkBankType in_bankType = AkBankType_User ///< Type of the bank to unload
2614  );
2615 
2616 #ifdef AK_SUPPORT_WCHAR
2617  /// Unloads a bank asynchronously (by Unicode string).\n
2618  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
2619  /// \return AK_Success if scheduling successful (use a callback to be notified when completed)
2620  /// \remarks
2621  /// The sound engine internally calls GetIDFromString(in_pszString) to retrieve the bank ID,
2622  /// then it calls the synchronous version of UnloadBank() by ID.
2623  /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2624  /// not the name of the file (if you changed it), nor the full path of the file.
2625  /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2626  /// This means that streamed sounds or generated sounds will not be stopped.
2627  /// \sa
2628  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2629  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2630  /// - AkBankCallbackFunc
2631  /// - \ref soundengine_banks
2633  const wchar_t* in_pszString, ///< Name of the bank to unload
2634  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  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2636  void * in_pCookie, ///< Callback cookie (reserved to user, passed to the callback function)
2637  AkBankType in_bankType = AkBankType_User ///< Type of the bank to unload
2638  );
2639 #endif //AK_SUPPORT_WCHAR
2640 
2641  /// Unloads a bank asynchronously.\n
2642  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
2643  /// \return AK_Success if scheduling successful (use a callback to be notified when completed)
2644  /// \remarks
2645  /// The sound engine internally calls GetIDFromString(in_pszString) to retrieve the bank ID,
2646  /// then it calls the synchronous version of UnloadBank() by ID.
2647  /// Therefore, in_pszString should be the real name of the SoundBank (with or without the BNK extension - it is trimmed internally),
2648  /// not the name of the file (if you changed it), nor the full path of the file.
2649  /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2650  /// This means that streamed sounds or generated sounds will not be stopped.
2651  /// \sa
2652  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2653  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2654  /// - AkBankCallbackFunc
2655  /// - \ref soundengine_banks
2657  const char* in_pszString, ///< Name of the bank to unload
2658  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.
2659  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2660  void * in_pCookie, ///< Callback cookie (reserved to user, passed to the callback function)
2661  AkBankType in_bankType = AkBankType_User ///< Type of the bank to unload
2662  );
2663 
2664  /// Unloads a bank asynchronously (by ID and memory pointer).\n
2665  /// See \ref soundengine_banks_general for a discussion on using strings and IDs.
2666  /// \return AK_Success if scheduling successful (use a callback to be notified when completed)
2667  /// \remarks
2668  /// - In order to force the memory deallocation of the bank, sounds that use media from this bank will be stopped.
2669  /// This means that streamed sounds or generated sounds will not be stopped.
2670  /// \sa
2671  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2672  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2673  /// - AkBankCallbackFunc
2674  /// - \ref soundengine_banks
2676  AkBankID in_bankID, ///< ID of the bank to unload
2677  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.
2678  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2679  void * in_pCookie, ///< Callback cookie (reserved to user, passed to the callback function)
2680  AkBankType in_bankType = AkBankType_User ///< Type of the bank to unload
2681  );
2682 
2683  /// Cancels all Event callbacks associated with a specific callback cookie specified while loading Banks of preparing Events.\n
2684  /// \sa
2685  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2686  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
2687  /// - <tt>AK::SoundEngine::UnloadBank()</tt>
2688  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2689  /// - AkBankCallbackFunc
2691  void * in_pCookie ///< Callback cookie to be canceled
2692  );
2693 
2694  /// Preparation type.
2695  /// \sa
2696  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
2697  /// - <tt>AK::SoundEngine::PrepareGameSyncs()</tt>
2698  /// - <tt>AK::SoundEngine::PrepareBank()</tt>
2700  {
2701  Preparation_Load, ///< \c PrepareEvent() will load required information to play the specified event.
2702  Preparation_Unload, ///< \c PrepareEvent() will unload required information to play the specified event.
2703  Preparation_LoadAndDecode, ///< Vorbis media is decoded when loading, and an uncompressed PCM version is used for playback.
2704  Preparation_Last, ///< End of enum, invalid value.
2705  };
2706 
2707  /// Parameter to be passed to <tt>AK::SoundEngine::PrepareBank()</tt>.
2708  /// Use AkBankContent_All to load both the media and structural content from the bank.
2709  /// 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.
2710  /// \sa
2711  /// - <tt>AK::SoundEngine::PrepareBank()</tt>
2712  /// - \ref soundengine_banks_preparingbanks
2714  {
2715  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.
2716  AkBankContent_All, ///< Use AkBankContent_All to load both the media and structural content.
2717  AkBankContent_Last ///< End of enum, invalid value.
2718  };
2719 
2720 #ifdef AK_SUPPORT_WCHAR
2721  /// 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
2722  /// 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(),
2723  /// will prevent in-memory duplication of media at the cost of some memory fragmentation.
2724  /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2725  /// allowing using PrepareEvent() to load media on demand.
2726  /// \sa
2727  /// - \ref soundengine_banks_preparingbanks
2728  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2729  /// - <tt>AK::SoundEngine::PreparationType</tt>
2730  /// \remarks
2731  /// 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
2732  /// 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;
2733  /// 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.
2735  AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2736  const wchar_t* in_pszString, ///< Name of the bank to Prepare/Unprepare.
2737  AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2738  AkBankType in_bankType = AkBankType_User ///< Type of the bank to Prepare/Unprepare.
2739  );
2740 #endif //AK_SUPPORT_WCHAR
2741 
2742  /// 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
2743  /// 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(),
2744  /// will prevent in-memory duplication of media at the cost of some memory fragmentation.
2745  /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2746  /// allowing using PrepareEvent() to load media on demand.
2747  /// \sa
2748  /// - \ref soundengine_banks_preparingbanks
2749  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2750  /// - <tt>AK::SoundEngine::PreparationType</tt>
2751  /// \remarks
2752  /// \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
2753  /// 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;
2754  /// 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.
2756  AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2757  const char* in_pszString, ///< Name of the bank to Prepare/Unprepare.
2758  AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2759  AkBankType in_bankType = AkBankType_User ///< Type of the bank to Prepare/Unprepare.
2760  );
2761 
2762  /// \n\aknote Requires that the "Use SoundBank names" option be unchecked in the Wwise Project Settings. \endaknote
2763  /// 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
2764  /// 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(),
2765  /// will prevent in-memory duplication of media at the cost of some memory fragmentation.
2766  /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2767  /// allowing using PrepareEvent() to load media on demand.
2768  /// \sa
2769  /// - \ref soundengine_banks_preparingbanks
2770  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2771  /// - <tt>AK::SoundEngine::PreparationType</tt>
2772  /// \remarks
2773  /// \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
2774  /// 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;
2775  /// 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.
2777  AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2778  AkBankID in_bankID, ///< ID of the bank to Prepare/Unprepare.
2779  AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2780  AkBankType in_bankType = AkBankType_User ///< Type of the bank to Prepare/Unprepare.
2781  );
2782 
2783 #ifdef AK_SUPPORT_WCHAR
2784  /// 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
2785  /// 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(),
2786  /// will prevent in-memory duplication of media at the cost of some memory fragmentation.
2787  /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2788  /// allowing using PrepareEvent() to load media on demand.
2789  /// \sa
2790  /// - \ref soundengine_banks_preparingbanks
2791  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2792  /// - <tt>AK::SoundEngine::PreparationType</tt>
2793  /// \remarks
2794  /// 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
2795  /// 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;
2796  /// 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.
2798  AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2799  const wchar_t* in_pszString, ///< Name of the bank to Prepare/Unprepare.
2800  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2801  void * in_pCookie, ///< Callback cookie (reserved to user, passed to the callback function)
2802  AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2803  AkBankType in_bankType = AkBankType_User ///< Type of the bank to Prepare/Unprepare.
2804  );
2805 #endif //AK_SUPPORT_WCHAR
2806 
2807  /// 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
2808  /// 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(),
2809  /// will prevent in-memory duplication of media at the cost of some memory fragmentation.
2810  /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2811  /// allowing using PrepareEvent() to load media on demand.
2812  /// \sa
2813  /// - \ref soundengine_banks_preparingbanks
2814  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2815  /// - <tt>AK::SoundEngine::PreparationType()</tt>
2816  /// \remarks
2817  /// 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
2818  /// 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;
2819  /// 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.
2821  AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2822  const char* in_pszString, ///< Name of the bank to Prepare/Unprepare.
2823  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2824  void * in_pCookie, ///< Callback cookie (reserved to user, passed to the callback function)
2825  AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2826  AkBankType in_bankType = AkBankType_User ///< Type of the bank to Prepare/Unprepare.
2827  );
2828 
2829  /// \n\aknote Requires that the "Use SoundBank names" option be unchecked in the Wwise Project Settings. \endaknote
2830  /// 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
2831  /// 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(),
2832  /// will prevent in-memory duplication of media at the cost of some memory fragmentation.
2833  /// Calling this function specifying the flag AkBankContent_StructureOnly will load only the structural part (including events) of this bank,
2834  /// allowing using PrepareEvent() to load media on demand.
2835  /// \sa
2836  /// - \ref soundengine_banks_preparingbanks
2837  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2838  /// - <tt>AK::SoundEngine::PreparationType()</tt>
2839  /// \remarks
2840  /// \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
2841  /// 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;
2842  /// 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.
2844  AK::SoundEngine::PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2845  AkBankID in_bankID, ///< ID of the bank to Prepare/Unprepare.
2846  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
2847  void * in_pCookie, ///< Callback cookie (reserved to user, passed to the callback function)
2848  AK::SoundEngine::AkBankContent in_uFlags = AkBankContent_All, ///< Structures only (including events) or all content.
2849  AkBankType in_bankType = AkBankType_User ///< Type of the bank to Prepare/Unprepare.
2850  );
2851 
2852  /// Clear all previously prepared events.\n
2853  /// \return
2854  /// - \c AK_Success if successful.
2855  /// - \c AK_Fail if the sound engine was not correctly initialized or if there is not enough memory to handle the command.
2856  /// \remarks
2857  /// The function \c ClearBanks() also clears all prepared events.
2858  /// \sa
2859  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
2860  /// - <tt>AK::SoundEngine::ClearBanks()</tt>
2862 
2863 #ifdef AK_SUPPORT_WCHAR
2864  /// Prepares or unprepares Events synchronously (by Unicode string).\n
2865  /// The Events are identified by strings, and converted to IDs internally
2866  /// (see \ref soundengine_banks_general for a discussion on using strings and IDs).
2867  /// Before invoking \c PrepareEvent(), use \c LoadBank() to explicitly load the SoundBank(s)
2868  /// that contain the Events and structures. When a request is posted to the
2869  /// Bank Manager consumer thread, it will resolve all dependencies needed to
2870  /// successfully post the specified Events and load the required loose media files.
2871  /// \aknote Before version 2015.1, the required media files could be included
2872  /// in a separate media SoundBank. As described in \ref whatsnew_2015_1_migration,
2873  /// however,\c PrepareEvent() now only looks for loose media files.
2874  /// \endaknote
2875  /// The function returns when the request is completely processed.
2876  /// \return
2877  /// - \c AK_Success: Prepare/un-prepare successful.
2878  /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareEvent() does not exist.
2879  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
2880  /// - \c AK_BankReadError: I/O error.
2881  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
2882  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
2883  /// - \c AK_InvalidFile: File specified could not be opened.
2884  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
2885  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2886  /// \remarks
2887  /// Whenever at least one event fails to be resolved, the actions performed for all
2888  /// other events are cancelled.
2889  /// \sa
2890  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
2891  /// - <tt>AK::SoundEngine::ClearPreparedEvents()</tt>
2892  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
2893  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2894  /// - \ref soundengine_banks
2895  /// - \ref sdk_bank_training
2897  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2898  const wchar_t** in_ppszString, ///< Array of event names
2899  AkUInt32 in_uNumEvent ///< Number of events in the array
2900  );
2901 #endif //AK_SUPPORT_WCHAR
2902 
2903  /// Prepares or unprepares events synchronously.\n
2904  /// The Events are identified by strings and converted to IDs internally
2905  /// (see \ref soundengine_banks_general for a discussion on using strings and IDs).
2906  /// Before invoking PrepareEvent(), use LoadBank() to explicitly load the SoundBank(s)
2907  /// that contain the Events and structures. When a request is posted to the
2908  /// Bank Manager consumer thread, it will resolve all dependencies needed to
2909  /// successfully post the specified Events and load the required loose media files.
2910  /// \aknote Before version 2015.1, the required media files could be included
2911  /// in a separate media SoundBank. As described in \ref whatsnew_2015_1_migration,
2912  /// however, PrepareEvent() now only looks for loose media files.
2913  /// \endaknote
2914  /// The function returns when the request is completely processed.
2915  /// \return
2916  /// - \c AK_Success: Prepare/un-prepare successful.
2917  /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareEvent() does not exist.
2918  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
2919  /// - \c AK_BankReadError: I/O error.
2920  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
2921  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
2922  /// - \c AK_InvalidFile: File specified could not be opened.
2923  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
2924  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2925  /// \remarks
2926  /// Whenever at least one event fails to be resolved, the actions performed for all
2927  /// other events are cancelled.
2928  /// \aknote The use of PrepareEvent is incompatible with LoadBank, using in-memory data.
2929  /// \endaknote
2930  /// \sa
2931  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
2932  /// - <tt>AK::SoundEngine::ClearPreparedEvents()</tt>
2933  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
2934  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2935  /// - \ref soundengine_banks
2936  /// - \ref sdk_bank_training
2938  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2939  const char** in_ppszString, ///< Array of event names
2940  AkUInt32 in_uNumEvent ///< Number of events in the array
2941  );
2942 
2943  /// Prepares or unprepares events synchronously (by ID).
2944  /// The Events are identified by their ID (see \ref soundengine_banks_general for a discussion on using strings and IDs).
2945  /// Before invoking PrepareEvent(), use LoadBank() to explicitly load the SoundBank(s)
2946  /// that contain the Events and structures. When a request is posted to the
2947  /// Bank Manager consumer thread, it will resolve all dependencies needed to
2948  /// successfully post the specified Events and load the required loose media files.
2949  /// \aknote Before version 2015.1, the required media files could be included
2950  /// in a separate media SoundBank. As described in \ref whatsnew_2015_1_migration,
2951  /// however, PrepareEvent() now only looks for loose media files.
2952  /// \endaknote
2953  /// The function returns when the request is completely processed.
2954  /// \return
2955  /// - \c AK_Success: Prepare/un-prepare successful.
2956  /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareEvent() does not exist.
2957  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
2958  /// - \c AK_BankReadError: I/O error.
2959  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
2960  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
2961  /// - \c AK_InvalidFile: File specified could not be opened.
2962  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
2963  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
2964  /// \remarks
2965  /// Whenever at least one event fails to be resolved, the actions performed for all
2966  /// other events are cancelled.
2967  /// \sa
2968  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
2969  /// - <tt>AK::SoundEngine::ClearPreparedEvents()</tt>
2970  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
2971  /// - <tt>AK::SoundEngine::LoadBank()</tt>
2972  /// - \ref soundengine_banks
2973  /// - \ref sdk_bank_training
2975  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
2976  AkUniqueID* in_pEventID, ///< Array of event IDs
2977  AkUInt32 in_uNumEvent ///< Number of event IDs in the array
2978  );
2979 
2980 #ifdef AK_SUPPORT_WCHAR
2981  /// Prepares or unprepares an event asynchronously (by Unicode string).
2982  /// The Events are identified by string (see \ref soundengine_banks_general for a discussion on using strings and IDs).
2983  /// Before invoking PrepareEvent(), use LoadBank() to explicitly load the SoundBank(s)
2984  /// that contain the Events and structures. When a request is posted to the
2985  /// Bank Manager consumer thread, it will resolve all dependencies needed to
2986  /// successfully post the specified Events and load the required loose media files.
2987  /// \aknote Before version 2015.1, the required media files could be included
2988  /// in a separate media SoundBank. As described in \ref whatsnew_2015_1_migration,
2989  /// however, \c PrepareEvent() now only looks for loose media files.
2990  /// \endaknote
2991  /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
2992  /// \return AK_Success if scheduling is was successful, AK_Fail otherwise.
2993  /// \remarks
2994  /// Whenever at least one Event fails to be resolved, the actions performed for all
2995  /// other Events are cancelled.
2996  /// \sa
2997  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
2998  /// - <tt>AK::SoundEngine::ClearPreparedEvents()</tt>
2999  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3000  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3001  /// - AkBankCallbackFunc
3002  /// - \ref soundengine_banks
3003  /// - \ref sdk_bank_training
3005  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3006  const wchar_t** in_ppszString, ///< Array of event names
3007  AkUInt32 in_uNumEvent, ///< Number of events in the array
3008  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
3009  void * in_pCookie ///< Callback cookie (reserved to user, passed to the callback function)
3010  );
3011 #endif //AK_SUPPORT_WCHAR
3012 
3013  /// Prepares or unprepares an event asynchronously.
3014  /// The Events are identified by string (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3015  /// Before invoking PrepareEvent(), use LoadBank() to explicitly load the SoundBank(s)
3016  /// that contain the Events and structures. When a request is posted to the
3017  /// Bank Manager consumer thread, it will resolve all dependencies needed to
3018  /// successfully post the specified Events and load the required loose media files.
3019  /// \aknote Before version 2015.1, the required media files could be included
3020  /// in a separate media SoundBank. As described in \ref whatsnew_2015_1_migration,
3021  /// however, PrepareEvent() now only looks for loose media files.
3022  /// \endaknote
3023  /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3024  /// \return AK_Success if scheduling is was successful, AK_Fail otherwise.
3025  /// \remarks
3026  /// Whenever at least one event fails to be resolved, the actions performed for all
3027  /// other events are cancelled.
3028  /// \sa
3029  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
3030  /// - <tt>AK::SoundEngine::ClearPreparedEvents()</tt>
3031  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3032  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3033  /// - AkBankCallbackFunc
3034  /// - \ref soundengine_banks
3035  /// - \ref sdk_bank_training
3037  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3038  const char** in_ppszString, ///< Array of event names
3039  AkUInt32 in_uNumEvent, ///< Number of events in the array
3040  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
3041  void * in_pCookie ///< Callback cookie (reserved to user, passed to the callback function)
3042  );
3043 
3044  /// Prepares or unprepares events asynchronously (by ID).\n
3045  /// The Events are identified by their ID (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3046  /// Before invoking PrepareEvent(), use LoadBank() to explicitly load the SoundBank(s)
3047  /// that contain the Events and structures. When a request is posted to the
3048  /// Bank Manager consumer thread, it will resolve all dependencies needed to
3049  /// successfully post the specified Events and load the required loose media files.
3050  /// \aknote Before version 2015.1, the required media files could be included
3051  /// in a separate media SoundBank. As described in \ref whatsnew_2015_1_migration,
3052  /// however, PrepareEvent() now only looks for loose media files.
3053  /// \endaknote
3054  /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3055  /// \return AK_Success if scheduling is was successful, AK_Fail otherwise.
3056  /// \remarks
3057  /// Whenever at least one event fails to be resolved, the actions performed for all
3058  /// other events are cancelled.
3059  /// \sa
3060  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
3061  /// - <tt>AK::SoundEngine::ClearPreparedEvents()</tt>
3062  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3063  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3064  /// - AkBankCallbackFunc
3065  /// - \ref soundengine_banks
3066  /// - \ref sdk_bank_training
3068  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3069  AkUniqueID* in_pEventID, ///< Array of event IDs
3070  AkUInt32 in_uNumEvent, ///< Number of event IDs in the array
3071  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
3072  void * in_pCookie ///< Callback cookie (reserved to user, passed to the callback function)
3073  );
3074 
3075 #ifdef AK_SUPPORT_WCHAR
3076  /// Prepares or unprepares busses synchronously (by Unicode string).\n
3077  /// The Busses are identified by strings and converted to IDs internally
3078  /// (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3079  /// Before invoking PrepareBus(), use LoadBank() to explicitly load the SoundBank(s)
3080  /// that contain the Bus structures. When a request is posted to the
3081  /// Bank Manager consumer thread, it will load the required loose media files for effects
3082  /// placed on the specified busses.
3083  /// The function returns when the request is completely processed.
3084  /// \return
3085  /// - \c AK_Success: Prepare/un-prepare successful.
3086  /// - \c AK_IDNotFound: At least one of the bus IDs does not exist.
3087  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
3088  /// - \c AK_BankReadError: I/O error.
3089  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
3090  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
3091  /// - \c AK_InvalidFile: File specified could not be opened.
3092  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
3093  /// - \c AK_Fail: Load or unload failed for any other reason.
3094  /// \remarks
3095  /// Whenever at least one bus fails to be resolved, the actions performed for all
3096  /// other busses are cancelled.
3097  /// \sa
3098  /// - <tt>AK::SoundEngine::PrepareBus()</tt>
3099  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3100  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3101  /// - AkBankCallbackFunc
3102  /// - \ref soundengine_banks
3103  /// - \ref sdk_bank_training
3105  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3106  const wchar_t** in_ppszString, ///< Array of bus names
3107  AkUInt32 in_uBusses ///< Number of bus names in the array
3108  );
3109 #endif //AK_SUPPORT_WCHAR
3110 
3111  /// Prepares or unprepares busses synchronously.\n
3112  /// The Busses are identified by strings and converted to IDs internally
3113  /// (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3114  /// Before invoking PrepareBus(), use LoadBank() to explicitly load the SoundBank(s)
3115  /// that contain the Bus structures. When a request is posted to the
3116  /// Bank Manager consumer thread, it will load the required loose media files for effects
3117  /// placed on the specified busses.
3118  /// The function returns when the request is completely processed.
3119  /// \return
3120  /// - \c AK_Success: Prepare/un-prepare successful.
3121  /// - \c AK_IDNotFound: At least one of the bus IDs does not exist.
3122  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
3123  /// - \c AK_BankReadError: I/O error.
3124  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
3125  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
3126  /// - \c AK_InvalidFile: File specified could not be opened.
3127  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
3128  /// - \c AK_Fail: Load or unload failed for any other reason.
3129  /// \remarks
3130  /// Whenever at least one bus fails to be resolved, the actions performed for all
3131  /// other busses are cancelled.
3132  /// \sa
3133  /// - <tt>AK::SoundEngine::PrepareBus()</tt>
3134  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3135  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3136  /// - AkBankCallbackFunc
3137  /// - \ref soundengine_banks
3138  /// - \ref sdk_bank_training
3140  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3141  const char** in_ppszString, ///< Array of bus names
3142  AkUInt32 in_uBusses ///< Number of bus names in the array
3143  );
3144 
3145  /// Prepares or unprepares busses synchronously (by ID).\n
3146  /// The Busses are identified by their ID (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3147  /// Before invoking PrepareBus(), use LoadBank() to explicitly load the SoundBank(s)
3148  /// that contain the Bus structures. When a request is posted to the
3149  /// Bank Manager consumer thread, it will load the required loose media files for effects
3150  /// placed on the specified busses.
3151  /// The function returns when the request is completely processed.
3152  /// \return
3153  /// - \c AK_Success: Prepare/un-prepare successful.
3154  /// - \c AK_IDNotFound: At least one of the bus IDs does not exist.
3155  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
3156  /// - \c AK_BankReadError: I/O error.
3157  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
3158  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
3159  /// - \c AK_InvalidFile: File specified could not be opened.
3160  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
3161  /// - \c AK_Fail: Load or unload failed for any other reason.
3162  /// \remarks
3163  /// Whenever at least one bus fails to be resolved, the actions performed for all
3164  /// other busses are cancelled.
3165  /// \sa
3166  /// - <tt>AK::SoundEngine::PrepareBus()</tt>
3167  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3168  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3169  /// - AkBankCallbackFunc
3170  /// - \ref soundengine_banks
3171  /// - \ref sdk_bank_training
3173  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3174  AkUniqueID* in_pBusID, ///< Array of bus IDs
3175  AkUInt32 in_uBusses ///< Number of bus IDs in the array
3176  );
3177 
3178 #ifdef AK_SUPPORT_WCHAR
3179  /// Prepares or unprepares busses asynchronously (by Unicode string).\n
3180  /// The Busses are identified by string (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3181  /// Before invoking PrepareBus(), use LoadBank() to explicitly load the SoundBank(s)
3182  /// that contain the Bus structures. When a request is posted to the
3183  /// Bank Manager consumer thread, it will load the required loose media files for effects
3184  /// placed on the specified busses.
3185  /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3186  /// \return AK_Success if scheduling is was successful, AK_Fail otherwise.
3187  /// \remarks
3188  /// Whenever at least one bus fails to be resolved, the actions performed for all
3189  /// other busses are cancelled.
3190  /// \sa
3191  /// - <tt>AK::SoundEngine::PrepareBus()</tt>
3192  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3193  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3194  /// - AkBankCallbackFunc
3195  /// - \ref soundengine_banks
3196  /// - \ref sdk_bank_training
3198  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3199  const wchar_t** in_ppszString, ///< Array of bus names
3200  AkUInt32 in_uBusses, ///< Number of bus names in the array
3201  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
3202  void* in_pCookie ///< Callback cookie (reserved to user, passed to the callback function)
3203  );
3204 #endif //AK_SUPPORT_WCHAR
3205 
3206  /// Prepares or unprepares busses asynchronously.\n
3207  /// The Busses are identified by string (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3208  /// Before invoking PrepareBus(), use LoadBank() to explicitly load the SoundBank(s)
3209  /// that contain the Bus structures. When a request is posted to the
3210  /// Bank Manager consumer thread, it will load the required loose media files for effects
3211  /// placed on the specified busses.
3212  /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3213  /// \return AK_Success if scheduling is was successful, AK_Fail otherwise.
3214  /// \remarks
3215  /// Whenever at least one bus fails to be resolved, the actions performed for all
3216  /// other busses are cancelled.
3217  /// \sa
3218  /// - <tt>AK::SoundEngine::PrepareBus()</tt>
3219  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3220  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3221  /// - AkBankCallbackFunc
3222  /// - \ref soundengine_banks
3223  /// - \ref sdk_bank_training
3225  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3226  const char** in_ppszString, ///< Array of bus names
3227  AkUInt32 in_uBusses, ///< Number of bus names in the array
3228  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
3229  void* in_pCookie ///< Callback cookie (reserved to user, passed to the callback function)
3230  );
3231 
3232  /// Prepares or unprepares busses asynchronously (by ID).\n
3233  /// The Busses are identified by their ID (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3234  /// Before invoking PrepareBus(), use LoadBank() to explicitly load the SoundBank(s)
3235  /// that contain the Bus structures. When a request is posted to the
3236  /// Bank Manager consumer thread, it will load the required loose media files for effects
3237  /// placed on the specified busses.
3238  /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3239  /// \return AK_Success if scheduling is was successful, AK_Fail otherwise.
3240  /// \remarks
3241  /// Whenever at least one bus fails to be resolved, the actions performed for all
3242  /// other busses are cancelled.
3243  /// \sa
3244  /// - <tt>AK::SoundEngine::PrepareBus()</tt>
3245  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3246  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3247  /// - AkBankCallbackFunc
3248  /// - \ref soundengine_banks
3249  /// - \ref sdk_bank_training
3251  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3252  AkUniqueID* in_pBusID, ///< Array of bus IDs
3253  AkUInt32 in_uBusses, ///< Number of bus IDs in the array
3254  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
3255  void* in_pCookie ///< Callback cookie (reserved to user, passed to the callback function)
3256  );
3257 
3258  /// Indicates the location of a specific Media ID in memory
3259  /// The sources are identified by their ID (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3260  /// \return AK_Success if operation was successful, AK_InvalidParameter if in_pSourceSettings is invalid or media sizes are 0.
3262  AkSourceSettings * in_pSourceSettings, ///< Array of Source Settings
3263  AkUInt32 in_uNumSourceSettings ///< Number of Source Settings in the array
3264  );
3265 
3266  /// Removes the specified source from the list of loaded media, only if this media is not already in use.
3267  /// The sources are identified by their ID (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3268  /// \aknote Media that is still in use by the sound engine should not be unset. It is marked for removal to prevent additional use.
3269  /// If this function returns AK_ResourceInUse, then the client must not release memory for this media.
3270  /// Instead, the client should retry the TryUnsetMedia operation later with the same parameters and check for AK_Success.
3271  /// \endaknote
3272  /// 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.
3273  /// out_pUnsetResults will be filled with either AK_Success or AK_ResourceInUse, indicating which media was still in use and not unset.
3274  /// \return
3275  /// - \c AK_Success: Operation was successful, and the memory can be released on the client side.
3276  /// - \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.
3277  /// - \c AK_InvalidParameter: in_pSourceSettings is invalid
3279  AkSourceSettings* in_pSourceSettings, ///< Array of Source Settings
3280  AkUInt32 in_uNumSourceSettings, ///< Number of Source Settings in the array
3281  AKRESULT* out_pUnsetResults ///< (optional, can be null) Array of result codes
3282  );
3283 
3284 #ifdef AK_SUPPORT_WCHAR
3285  /// Prepares or unprepares game syncs synchronously (by Unicode string).\n
3286  /// The group and game syncs are specified by string (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3287  /// The game syncs definitions must already exist in the sound engine by having
3288  /// explicitly loaded the bank(s) that contain them (with LoadBank()).
3289  /// A request is posted to the Bank Manager consumer thread. It will resolve all
3290  /// dependencies needed to successfully set this game sync group to one of the
3291  /// game sync values specified, and load the required banks, if applicable.
3292  /// The function returns when the request has been completely processed.
3293  /// \return
3294  /// - \c AK_Success: Prepare/un-prepare successful.
3295  /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareGameSyncs() does not exist.
3296  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
3297  /// - \c AK_BankReadError: I/O error.
3298  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
3299  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
3300  /// - \c AK_InvalidFile: File specified could not be opened.
3301  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
3302  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
3303  /// \remarks
3304  /// You need to call PrepareGameSyncs() if the sound engine was initialized with AkInitSettings::bEnableGameSyncPreparation
3305  /// set to true. When set to false, the sound engine automatically prepares all game syncs when preparing events,
3306  /// so you never need to call this function.
3307  /// \sa
3308  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3309  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
3310  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3311  /// - \c AkInitSettings
3312  /// - \ref soundengine_banks
3313  /// - \ref sdk_bank_training
3315  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3316  AkGroupType in_eGameSyncType, ///< The type of game sync.
3317  const wchar_t* in_pszGroupName, ///< The State Group Name or the Switch Group Name.
3318  const wchar_t** in_ppszGameSyncName, ///< The specific ID of the state to either support or not support.
3319  AkUInt32 in_uNumGameSyncs ///< The number of game sync in the string array.
3320  );
3321 #endif //AK_SUPPORT_WCHAR
3322 
3323  /// Prepares or unprepares game syncs synchronously.\n
3324  /// The group and game syncs are specified by string (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3325  /// The game syncs definitions must already exist in the sound engine by having
3326  /// explicitly loaded the bank(s) that contain them (with LoadBank()).
3327  /// A request is posted to the Bank Manager consumer thread. It will resolve all
3328  /// dependencies needed to successfully set this game sync group to one of the
3329  /// game sync values specified, and load the required banks, if applicable.
3330  /// The function returns when the request has been completely processed.
3331  /// \return
3332  /// - \c AK_Success: Prepare/un-prepare successful.
3333  /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareGameSyncs() does not exist.
3334  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
3335  /// - \c AK_BankReadError: I/O error.
3336  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
3337  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
3338  /// - \c AK_InvalidFile: File specified could not be opened.
3339  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
3340  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
3341  /// \remarks
3342  /// You need to call PrepareGameSyncs() if the sound engine was initialized with AkInitSettings::bEnableGameSyncPreparation
3343  /// set to true. When set to false, the sound engine automatically prepares all game syncs when preparing events,
3344  /// so you never need to call this function.
3345  /// \sa
3346  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3347  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
3348  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3349  /// - AkInitSettings
3350  /// - \ref soundengine_banks
3351  /// - \ref sdk_bank_training
3353  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3354  AkGroupType in_eGameSyncType, ///< The type of game sync.
3355  const char* in_pszGroupName, ///< The State Group Name or the Switch Group Name.
3356  const char** in_ppszGameSyncName, ///< The specific ID of the state to either support or not support.
3357  AkUInt32 in_uNumGameSyncs ///< The number of game sync in the string array.
3358  );
3359 
3360  /// Prepares or unprepares game syncs synchronously (by ID).\n
3361  /// The group and game syncs are specified by ID (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3362  /// The game syncs definitions must already exist in the sound engine by having
3363  /// explicitly loaded the bank(s) that contain them (with LoadBank()).
3364  /// A request is posted to the Bank Manager consumer thread. It will resolve all
3365  /// dependencies needed to successfully set this game sync group to one of the
3366  /// game sync values specified, and load the required banks, if applicable.
3367  /// The function returns when the request has been completely processed.
3368  /// \return
3369  /// - \c AK_Success: Prepare/un-prepare successful.
3370  /// - \c AK_IDNotFound: At least one of the event/game sync identifiers passed to PrepareGameSyncs() does not exist.
3371  /// - \c AK_InsufficientMemory: Insufficient memory to store bank data.
3372  /// - \c AK_BankReadError: I/O error.
3373  /// - \c AK_WrongBankVersion: Invalid bank version: make sure the version of Wwise that
3374  /// you used to generate the SoundBanks matches that of the SDK you are currently using.
3375  /// - \c AK_InvalidFile: File specified could not be opened.
3376  /// - \c AK_InvalidParameter: Invalid parameter, invalid memory alignment.
3377  /// - \c AK_Fail: Load or unload failed for any other reason. (Most likely small allocation failure)
3378  /// \remarks
3379  /// You need to call \c PrepareGameSyncs() if the sound engine was initialized with \c AkInitSettings::bEnableGameSyncPreparation
3380  /// set to \c true. When set to \c false, the sound engine automatically prepares all game syncs when preparing Events,
3381  /// so you never need to call this function.
3382  /// \sa
3383  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3384  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
3385  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3386  /// - AkInitSettings
3387  /// - \ref soundengine_banks
3388  /// - \ref sdk_bank_training
3390  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3391  AkGroupType in_eGameSyncType, ///< The type of game sync.
3392  AkUInt32 in_GroupID, ///< The State Group ID or the Switch Group ID.
3393  AkUInt32* in_paGameSyncID, ///< Array of ID of the game syncs to either support or not support.
3394  AkUInt32 in_uNumGameSyncs ///< The number of game sync ID in the array.
3395  );
3396 
3397 #ifdef AK_SUPPORT_WCHAR
3398  /// Prepares or unprepares game syncs asynchronously (by Unicode string).\n
3399  /// The group and game syncs are specified by string (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3400  /// The game syncs definitions must already exist in the sound engine by having
3401  /// explicitly loaded the bank(s) that contain them (with <tt>LoadBank()</tt>).
3402  /// A request is posted to the Bank Manager consumer thread. It will resolve all
3403  /// dependencies needed to successfully set this game sync group to one of the
3404  /// game sync values specified, and load the required banks, if applicable.
3405  /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3406  /// \return AK_Success if scheduling is was successful, AK_Fail otherwise.
3407  /// \remarks
3408  /// You need to call \c PrepareGameSyncs() if the sound engine was initialized with \c AkInitSettings::bEnableGameSyncPreparation
3409  /// set to \c true. When set to \c false, the sound engine automatically prepares all game syncs when preparing Events,
3410  /// so you never need to call this function.
3411  /// \sa
3412  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3413  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
3414  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3415  /// - \c AkInitSettings
3416  /// - \c AkBankCallbackFunc
3417  /// - \ref soundengine_banks
3418  /// - \ref sdk_bank_training
3420  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3421  AkGroupType in_eGameSyncType, ///< The type of game sync.
3422  const wchar_t* in_pszGroupName, ///< The State Group Name or the Switch Group Name.
3423  const wchar_t** in_ppszGameSyncName, ///< The specific ID of the state to either support or not support.
3424  AkUInt32 in_uNumGameSyncs, ///< The number of game sync in the string array.
3425  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
3426  void * in_pCookie ///< Callback cookie (reserved to user, passed to the callback function)
3427  );
3428 #endif //AK_SUPPORT_WCHAR
3429 
3430  /// Prepares or unprepares game syncs asynchronously.\n
3431  /// The group and game syncs are specified by string (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3432  /// The game syncs definitions must already exist in the sound engine by having
3433  /// explicitly loaded the bank(s) that contain them (with LoadBank()).
3434  /// A request is posted to the Bank Manager consumer thread. It will resolve all
3435  /// dependencies needed to successfully set this game sync group to one of the
3436  /// game sync values specified, and load the required banks, if applicable.
3437  /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3438  /// \return AK_Success if scheduling is was successful, AK_Fail otherwise.
3439  /// \remarks
3440  /// You need to call PrepareGameSyncs() if the sound engine was initialized with AkInitSettings::bEnableGameSyncPreparation
3441  /// set to true. When set to false, the sound engine automatically prepares all game syncs when preparing events,
3442  /// so you never need to call this function.
3443  /// \sa
3444  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3445  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
3446  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3447  /// - AkInitSettings
3448  /// - AkBankCallbackFunc
3449  /// - \ref soundengine_banks
3450  /// - \ref sdk_bank_training
3452  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3453  AkGroupType in_eGameSyncType, ///< The type of game sync.
3454  const char* in_pszGroupName, ///< The State Group Name or the Switch Group Name.
3455  const char** in_ppszGameSyncName, ///< The specific ID of the state to either support or not support.
3456  AkUInt32 in_uNumGameSyncs, ///< The number of game sync in the string array.
3457  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
3458  void * in_pCookie ///< Callback cookie (reserved to user, passed to the callback function)
3459  );
3460 
3461  /// Prepares or un-prepare game syncs asynchronously (by ID).\n
3462  /// The group and game syncs are specified by ID (see \ref soundengine_banks_general for a discussion on using strings and IDs).
3463  /// The game syncs definitions must already exist in the sound engine by having
3464  /// explicitly loaded the bank(s) that contain them (with LoadBank()).
3465  /// A request is posted to the Bank Manager consumer thread. It will resolve all
3466  /// dependencies needed to successfully set this game sync group to one of the
3467  /// game sync values specified, and load the required banks, if applicable.
3468  /// The function returns immediately. Use a callback to be notified when the request has finished being processed.
3469  /// \return AK_Success if scheduling is was successful, AK_Fail otherwise.
3470  /// \remarks
3471  /// You need to call PrepareGameSyncs() if the sound engine was initialized with AkInitSettings::bEnableGameSyncPreparation
3472  /// set to true. When set to false, the sound engine automatically prepares all Game Syncs when preparing Events,
3473  /// so you never need to call this function.
3474  /// \sa
3475  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3476  /// - <tt>AK::SoundEngine::PrepareEvent()</tt>
3477  /// - <tt>AK::SoundEngine::LoadBank()</tt>
3478  /// - AkInitSettings
3479  /// - AkBankCallbackFunc
3480  /// - \ref soundengine_banks
3481  /// - \ref sdk_bank_training
3483  PreparationType in_PreparationType, ///< Preparation type ( Preparation_Load or Preparation_Unload )
3484  AkGroupType in_eGameSyncType, ///< The type of game sync.
3485  AkUInt32 in_GroupID, ///< The State Group ID or the Switch Group ID.
3486  AkUInt32* in_paGameSyncID, ///< Array of ID of the Game Syncs to either support or not support.
3487  AkUInt32 in_uNumGameSyncs, ///< The number of game sync ID in the array.
3488  AkBankCallbackFunc in_pfnBankCallback, ///< Callback function
3489  void * in_pCookie ///< Callback cookie (reserved to user, passed to the callback function)
3490  );
3491 
3492  //@}
3493 
3494 
3495  ////////////////////////////////////////////////////////////////////////
3496  /// @name Listeners
3497  //@{
3498 
3499  /// Sets a game object's associated listeners.
3500  /// 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.
3501  /// Calling this function will override the default set of listeners and in_emitterGameObj will now reference its own, unique set of listeners.
3502  /// \return
3503  /// - \c AK_Success if successful
3504  /// - \c AK_CommandTooLarge if the number of positions is too large for the command queue. Reduce the number of positions.
3505  /// \sa
3506  /// - <tt>AK::SoundEngine::AddListener</tt>
3507  /// - <tt>AK::SoundEngine::RemoveListener</tt>
3508  /// - <tt>AK::SoundEngine::SetDefaultListeners</tt>
3509  /// - \ref soundengine_listeners
3511  AkGameObjectID in_emitterGameObj, ///< Emitter game object. Must have been previously registered via RegisterGameObj.
3512  const AkGameObjectID* in_pListenerGameObjs, ///< Array of listener game object IDs that will be activated for in_emitterGameObj.
3513  AkUInt32 in_uNumListeners ///< Length of array
3514  );
3515 
3516  /// Add a single listener to a game object's set of associated listeners.
3517  /// 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.
3518  /// Calling this function will override the default set of listeners and in_emitterGameObj will now reference its own, unique set of listeners.
3519  /// \sa
3520  /// - <tt>AK::SoundEngine::SetListeners</tt>
3521  /// - <tt>AK::SoundEngine::RemoveListener</tt>
3522  /// - <tt>AK::SoundEngine::SetDefaultListeners</tt>
3523  /// - \ref soundengine_listeners
3525  AkGameObjectID in_emitterGameObj, ///< Emitter game object. Must have been previously registered via RegisterGameObj.
3526  AkGameObjectID in_listenerGameObj ///< Listener game object IDs that will be activated for in_emitterGameObj.
3527  );
3528 
3529  /// Remove a single listener from a game object's set of active listeners.
3530  /// Calling this function will override the default set of listeners and in_emitterGameObj will now reference its own, unique set of listeners.
3531  /// \sa
3532  /// - <tt>AK::SoundEngine::SetListeners</tt>
3533  /// - <tt>AK::SoundEngine::AddListener</tt>
3534  /// - <tt>AK::SoundEngine::SetDefaultListeners</tt>
3535  /// - \ref soundengine_listeners
3537  AkGameObjectID in_emitterGameObj, ///< Emitter game object.
3538  AkGameObjectID in_listenerGameObj ///< Listener game object IDs that will be deactivated for in_emitterGameObj. Game objects must have been previously registered.
3539  );
3540 
3541  /// 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
3542  /// a call to AddListener, RemoveListener, SetListeners or SetGameObjectOutputBusVolume is made on that game object.
3543  /// 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.
3544  /// \return Always returns AK_Success
3545  /// \sa
3546  /// - \ref soundengine_listeners
3548  const AkGameObjectID* in_pListenerObjs, ///< Array of listener game object IDs that will be activated for subsequent registrations. Game objects must have been previously registered.
3549  AkUInt32 in_uNumListeners ///< Length of array
3550  );
3551 
3552  /// Add a single listener to the default set of listeners. Upon registration, all game objects reference the default listener set, until
3553  /// a call to AddListener, RemoveListener, SetListeners or SetGameObjectOutputBusVolume is made on that game object.
3554  /// \sa
3555  /// - <tt>AK::SoundEngine::SetDefaultListeners</tt>
3556  /// - <tt>AK::SoundEngine::RemoveDefaultListener</tt>
3557  /// - \ref soundengine_listeners
3559  AkGameObjectID in_listenerGameObj ///< Listener game object IDs that will be added to the default set of listeners.
3560  );
3561 
3562  /// Remove a single listener from the default set of listeners. Upon registration, all game objects reference the default listener set, until
3563  /// a call to AddListener, RemoveListener, SetListeners or SetGameObjectOutputBusVolume is made on that game object.
3564  /// \sa
3565  /// - <tt>AK::SoundEngine::SetDefaultListeners</tt>
3566  /// - <tt>AK::SoundEngine::AddDefaultListener</tt>
3567  /// - \ref soundengine_listeners
3569  AkGameObjectID in_listenerGameObj ///< Listener game object IDs that will be removed from the default set of listeners.
3570  );
3571 
3572  /// 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>.
3573  /// \return Always returns AK_Success
3574  /// \sa
3575  /// - <tt>AK::SoundEngine::SetListeners</tt>
3576  /// - <tt>AK::SoundEngine::SetDefaultListeners</tt>
3577  /// - <tt>AK::SoundEngine::SetGameObjectOutputBusVolume</tt>
3578  /// - \ref soundengine_listeners
3580  AkGameObjectID in_emitterGameObj ///< Emitter game object.
3581  );
3582 
3583  /// Sets a listener's spatialization parameters. This lets you define listener-specific
3584  /// volume offsets for each audio channel.
3585  /// If \c in_bSpatialized is false, only \c in_pVolumeOffsets is used for this listener (3D positions
3586  /// have no effect on the speaker distribution). Otherwise, \c in_pVolumeOffsets is added to the speaker
3587  /// distribution computed for this listener.
3588  /// Use helper functions of \c AK::SpeakerVolumes to manipulate the vector of volume offsets in_pVolumeOffsets.
3589  ///
3590  /// \remarks
3591  /// - If a sound is mixed into a bus that has a different speaker configuration than in_channelConfig,
3592  /// standard up/downmix rules apply.
3593  /// - Sounds with 3D Spatialization set to None will not be affected by these parameters.
3594  /// \return
3595  /// - \c AK_Success if message was successfully posted to sound engine queue
3596  /// - \c AK_InvalidFloatValue if the value specified was NaN or Inf
3597  /// - \c AK_InsufficientMemory if there wasn't enough memory in the message queue
3598  /// \sa
3599  /// - \ref soundengine_listeners_spatial
3601  AkGameObjectID in_uListenerID, ///< Listener game object ID
3602  bool in_bSpatialized, ///< Spatialization toggle (True : enable spatialization, False : disable spatialization)
3603  AkChannelConfig in_channelConfig, ///< Channel configuration associated with volumes in_pVolumeOffsets. Ignored if in_pVolumeOffsets is NULL.
3604  AK::SpeakerVolumes::VectorPtr in_pVolumeOffsets = NULL ///< Per-speaker volume offset, in dB. See AkSpeakerVolumes.h for how to manipulate this vector.
3605  );
3606 
3607  //@}
3608 
3609 
3610  ////////////////////////////////////////////////////////////////////////
3611  /// @name Game Syncs
3612  //@{
3613 
3614  /// Sets the value of a real-time parameter control (by ID).
3615  /// With this function, you may set a game parameter value with global scope or with game object scope.
3616  /// 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
3617  /// game objects that not yet registered, or already registered but not overridden with a value with game object scope.
3618  /// To set a game parameter value with global scope, pass \c AK_INVALID_GAME_OBJECT as the game object.
3619  /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3620  /// value for \c in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3621  /// according to the interpolation curve. If you call <tt>SetRTPCValue()</tt> with <tt>in_uValueChangeDuration = 0</tt> in the
3622  /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3623  /// function at every game frame, you should not use \c in_uValueChangeDuration, as it would have no effect and it is less efficient.
3624  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3625  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3626  /// \return
3627  /// - \c AK_Success if the value was successfully set
3628  /// - \c AK_InvalidFloatValue if the value specified was NaN, Inf or FLT_MAX (3.402823e+38)
3629  /// - \c AK_InvalidID if in_rtpcID is AK_INVALID_UNIQUE_ID (0)
3630  /// \sa
3631  /// - \ref soundengine_rtpc
3632  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3634  AkRtpcID in_rtpcID, ///< ID of the game parameter
3635  AkRtpcValue in_value, ///< Value to set
3636  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT,///< Associated game object ID
3637  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3638  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3639  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.
3640  );
3641 
3642 #ifdef AK_SUPPORT_WCHAR
3643  /// Sets the value of a real-time parameter control (by Unicode string name).
3644  /// With this function, you may set a game parameter value to global scope or to game object scope.
3645  /// 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
3646  /// game objects that not yet registered, or already registered but not overridden with a value with game object scope.
3647  /// To set a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3648  /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3649  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3650  /// according to the interpolation curve. If you call SetRTPCValue() with in_uValueChangeDuration = 0 in the
3651  /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3652  /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3653  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3654  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3655  /// \return
3656  /// - \c AK_Success if the value was successfully set
3657  /// - \c AK_InvalidFloatValue if the value specified was NaN, Inf or FLT_MAX (3.402823e+38)
3658  /// - \c AK_InvalidID if in_pszRtpcName is NULL.
3659  /// \aknote Strings are case-insensitive. \endaknote
3660  /// \sa
3661  /// - \ref soundengine_rtpc
3663  const wchar_t* in_pszRtpcName, ///< Name of the game parameter
3664  AkRtpcValue in_value, ///< Value to set
3665  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT,///< Associated game object ID
3666  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3667  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3668  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.
3669  );
3670 #endif //AK_SUPPORT_WCHAR
3671 
3672  /// Sets the value of a real-time parameter control.
3673  /// With this function, you may set a game parameter value with global scope or with game object scope.
3674  /// 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
3675  /// game objects that not yet registered, or already registered but not overridden with a value with game object scope.
3676  /// To set a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3677  /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3678  /// value for \c in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3679  /// according to the interpolation curve. If you call SetRTPCValue() with in_uValueChangeDuration = 0 in the
3680  /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3681  /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3682  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3683  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3684  /// \return
3685  /// - \c AK_Success if the value was successfully set
3686  /// - \c AK_InvalidFloatValue if the value specified was NaN, Inf or FLT_MAX (3.402823e+38)
3687  /// - \c AK_InvalidID if in_pszRtpcName is NULL.
3688  /// \aknote Strings are case-insensitive. \endaknote
3689  /// \sa
3690  /// - \ref soundengine_rtpc
3692  const char* in_pszRtpcName, ///< Name of the game parameter
3693  AkRtpcValue in_value, ///< Value to set
3694  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT,///< Associated game object ID
3695  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3696  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3697  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.
3698  );
3699 
3700  /// Sets the value of a real-time parameter control (by ID).
3701  /// With this function, you may set a game parameter value on playing id scope.
3702  /// Playing id scope supersedes both game object scope and global scope.
3703  /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3704  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3705  /// according to the interpolation curve. If you call SetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3706  /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3707  /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3708  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3709  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3710  /// - \c AK_Success if successful
3711  /// - \c AK_PlayingIDNotFound if in_playingID is not found.
3712  /// - \c AK_InvalidID if in_pszRtpcName is NULL.
3713  /// - \c AK_InvalidFloatValue if the value specified was NaN, Inf or FLT_MAX (3.402823e+38)
3714  /// \sa
3715  /// - \ref soundengine_rtpc
3716  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3718  AkRtpcID in_rtpcID, ///< ID of the game parameter
3719  AkRtpcValue in_value, ///< Value to set
3720  AkPlayingID in_playingID, ///< Associated playing ID
3721  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3722  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3723  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.
3724  );
3725 
3726 #ifdef AK_SUPPORT_WCHAR
3727  /// Sets the value of a real-time parameter control (by Unicode string name).
3728  /// With this function, you may set a game parameter value on playing ID scope.
3729  /// Playing id scope supersedes both game object scope and global scope.
3730  /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3731  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3732  /// according to the interpolation curve. If you call SetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3733  /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3734  /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3735  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3736  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3737  /// - \c AK_Success if successful
3738  /// - \c AK_PlayingIDNotFound if in_playingID is not found.
3739  /// - \c AK_InvalidID if in_pszRtpcName is NULL.
3740  /// - \c AK_InvalidFloatValue if the value specified was NaN, Inf or FLT_MAX (3.402823e+38)
3741  /// \sa
3742  /// - \ref soundengine_rtpc
3743  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3745  const wchar_t* in_pszRtpcName, ///< Name of the game parameter
3746  AkRtpcValue in_value, ///< Value to set
3747  AkPlayingID in_playingID, ///< Associated playing ID
3748  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3749  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3750  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.
3751  );
3752 #endif //AK_SUPPORT_WCHAR
3753 
3754  /// Sets the value of a real-time parameter control (by string name).
3755  /// With this function, you may set a game parameter value on playing id scope.
3756  /// Playing id scope supersedes both game object scope and global scope.
3757  /// With this function, you may also change the value of a game parameter over time. To do so, specify a non-zero
3758  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3759  /// according to the interpolation curve. If you call SetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3760  /// middle of an interpolation, the interpolation stops and the new value is set directly. Thus, if you call this
3761  /// function at every game frame, you should not use in_uValueChangeDuration, as it would have no effect and it is less efficient.
3762  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3763  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3764  /// - \c AK_Success if successful
3765  /// - \c AK_PlayingIDNotFound if in_playingID is not found.
3766  /// - \c AK_InvalidID if in_pszRtpcName is NULL.
3767  /// - \c AK_InvalidFloatValue if the value specified was NaN, Inf or FLT_MAX (3.402823e+38)
3768  /// \sa
3769  /// - \ref soundengine_rtpc
3770  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3772  const char* in_pszRtpcName, ///< Name of the game parameter
3773  AkRtpcValue in_value, ///< Value to set
3774  AkPlayingID in_playingID, ///< Associated playing ID
3775  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3776  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3777  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.
3778  );
3779 
3780  /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3781  /// With this function, you may reset a game parameter to its default value with global scope or with game object scope.
3782  /// Game object scope supersedes global scope. Game parameter values reset with global scope are applied to all
3783  /// game objects that were not overridden with a value with game object scope.
3784  /// To reset a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3785  /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3786  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3787  /// according to the interpolation curve. If you call SetRTPCValue() or ResetRTPCValue() with in_uValueChangeDuration = 0 in the
3788  /// middle of an interpolation, the interpolation stops and the new value is set directly.
3789  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3790  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3791  /// \return
3792  /// - \c AK_Success when successful
3793  /// - \c AK_InvalidID if in_rtpcID is AK_INVALID_UNIQUE_ID (0)
3794  /// \sa
3795  /// - \ref soundengine_rtpc
3796  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3797  /// - <tt>AK::SoundEngine::SetRTPCValue()</tt>
3799  AkRtpcID in_rtpcID, ///< ID of the game parameter
3800  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT,///< Associated game object ID
3801  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3802  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3803  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.
3804  );
3805 
3806 #ifdef AK_SUPPORT_WCHAR
3807  /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3808  /// With this function, you may reset a game parameter to its default value with global scope or with game object scope.
3809  /// Game object scope supersedes global scope. Game parameter values reset with global scope are applied to all
3810  /// game objects that were not overridden with a value with game object scope.
3811  /// To reset a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3812  /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3813  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3814  /// according to the interpolation curve. If you call SetRTPCValue() or ResetRTPCValue() with in_uValueChangeDuration = 0 in the
3815  /// middle of an interpolation, the interpolation stops and the new value is set directly.
3816  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3817  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3818  /// \return
3819  /// - \c AK_Success if successful
3820  /// - \c AK_InvalidID if in_pszParamName is NULL.
3821  /// \aknote Strings are case-insensitive. \endaknote
3822  /// \sa
3823  /// - \ref soundengine_rtpc
3824  /// - <tt>AK::SoundEngine::SetRTPCValue()</tt>
3826  const wchar_t* in_pszRtpcName, ///< Name of the game parameter
3827  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT,///< Associated game object ID
3828  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3829  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3830  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.
3831  );
3832 #endif //AK_SUPPORT_WCHAR
3833 
3834  /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3835  /// With this function, you may reset a game parameter to its default value with global scope or with game object scope.
3836  /// Game object scope supersedes global scope. Game parameter values reset with global scope are applied to all
3837  /// game objects that were not overridden with a value with game object scope.
3838  /// To reset a game parameter value with global scope, pass AK_INVALID_GAME_OBJECT as the game object.
3839  /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3840  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3841  /// according to the interpolation curve. If you call SetRTPCValue() or ResetRTPCValue() with in_uValueChangeDuration = 0 in the
3842  /// middle of an interpolation, the interpolation stops and the new value is set directly.
3843  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3844  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3845  /// \return
3846  /// - \c AK_Success if successful
3847  /// - \c AK_InvalidID if in_pszParamName is NULL.
3848  /// \aknote Strings are case-insensitive. \endaknote
3849  /// \sa
3850  /// - \ref soundengine_rtpc
3851  /// - <tt>AK::SoundEngine::SetRTPCValue()</tt>
3853  const char* in_pszRtpcName, ///< Name of the game parameter
3854  AkGameObjectID in_gameObjectID = AK_INVALID_GAME_OBJECT,///< Associated game object ID
3855  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3856  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3857  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.
3858  );
3859 
3860  /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3861  /// With this function, you may reset a game parameter to its default value on playing id scope.
3862  /// Playing id scope supersedes both game object scope and global scope.
3863  /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3864  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3865  /// according to the interpolation curve.
3866  /// If you call SetRTPCValueByPlayingID() or ReetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3867  /// middle of an interpolation, the interpolation stops and the new value is set directly.
3868  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3869  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3870  /// \return
3871  /// - \c AK_Success when successful
3872  /// - \c AK_InvalidID if in_playingID is AK_INVALID_PLAYING_ID (0)
3873  /// \sa
3874  /// - \ref soundengine_rtpc
3875  /// - <tt>AK::SoundEngine::SetRTPCValueByPlayingID()</tt>
3877  AkRtpcID in_rtpcID, ///< ID of the game parameter
3878  AkPlayingID in_playingID, ///< Associated playing ID
3879  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3880  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3881  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.
3882  );
3883 
3884 #ifdef AK_SUPPORT_WCHAR
3885  /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3886  /// With this function, you may reset a game parameter to its default value on playing id scope.
3887  /// Playing id scope supersedes both game object scope and global scope.
3888  /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3889  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3890  /// according to the interpolation curve.
3891  /// If you call SetRTPCValueByPlayingID() or ReetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3892  /// middle of an interpolation, the interpolation stops and the new value is set directly.
3893  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3894  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3895  /// \return
3896  /// - \c AK_Success when successful
3897  /// - \c AK_InvalidID if in_playingID is AK_INVALID_PLAYING_ID (0) or if if in_pszParamName is NULL.
3898  /// \aknote Strings are case-insensitive. \endaknote
3899  /// \sa
3900  /// - \ref soundengine_rtpc
3901  /// - <tt>AK::SoundEngine::SetRTPCValueByPlayingID()</tt>
3902  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3904  const wchar_t* in_pszRtpcName, ///< Name of the game parameter
3905  AkPlayingID in_playingID, ///< Associated playing ID
3906  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards in_value
3907  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3908  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.
3909  );
3910 #endif //AK_SUPPORT_WCHAR
3911 
3912  /// Resets the value of the game parameter to its default value, as specified in the Wwise project.
3913  /// With this function, you may reset a game parameter to its default value on playing id scope.
3914  /// Playing id scope supersedes both game object scope and global scope.
3915  /// With this function, you may also reset the value of a game parameter over time. To do so, specify a non-zero
3916  /// value for in_uValueChangeDuration. At each audio frame, the game parameter value will be updated internally
3917  /// according to the interpolation curve.
3918  /// If you call SetRTPCValueByPlayingID() or ReetRTPCValueByPlayingID() with in_uValueChangeDuration = 0 in the
3919  /// middle of an interpolation, the interpolation stops and the new value is set directly.
3920  /// See \ref soundengine_rtpc_pergameobject, \ref soundengine_rtpc_buses and
3921  /// \ref soundengine_rtpc_effects for more details on RTPC scope.
3922  /// \return
3923  /// - \c AK_Success when successful
3924  /// - \c AK_InvalidID if in_playingID is AK_INVALID_PLAYING_ID (0) or if if in_pszParamName is NULL.
3925  /// \aknote Strings are case-insensitive. \endaknote
3926  /// \sa
3927  /// - \ref soundengine_rtpc
3928  /// - <tt>AK::SoundEngine::SetRTPCValueByPlayingID()</tt>
3929  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3931  const char* in_pszRtpcName, ///< Name of the game parameter
3932  AkPlayingID in_playingID, ///< Associated playing ID
3933  AkTimeMs in_uValueChangeDuration = 0, ///< Duration during which the game parameter is interpolated towards its default value
3934  AkCurveInterpolation in_eFadeCurve = AkCurveInterpolation_Linear, ///< Curve type to be used for the game parameter interpolation
3935  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.
3936  );
3937 
3938  /// Sets the State of a Switch Group (by IDs).
3939  /// \return Always returns AK_Success
3940  /// \sa
3941  /// - \ref soundengine_switch
3942  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3944  AkSwitchGroupID in_switchGroup, ///< ID of the Switch Group
3945  AkSwitchStateID in_switchState, ///< ID of the Switch
3946  AkGameObjectID in_gameObjectID ///< Associated game object ID
3947  );
3948 
3949 #ifdef AK_SUPPORT_WCHAR
3950  /// Sets the State of a Switch Group (by Unicode string names).
3951  /// \return
3952  /// - \c AK_Success if successful
3953  /// - \c AK_InvalidID if the switch or Switch Group name was not resolved to an existing ID\n
3954  /// Make sure that the banks were generated with the "include string" option.
3955  /// \aknote Strings are case-insensitive. \endaknote
3956  /// \sa
3957  /// - \ref soundengine_switch
3959  const wchar_t* in_pszSwitchGroup, ///< Name of the Switch Group
3960  const wchar_t* in_pszSwitchState, ///< Name of the Switch
3961  AkGameObjectID in_gameObjectID ///< Associated game object ID
3962  );
3963 #endif //AK_SUPPORT_WCHAR
3964 
3965  /// Sets the state of a Switch Group.
3966  /// \return
3967  /// - \c AK_Success if successful
3968  /// - \c AK_InvalidID if the switch or Switch Group name was not resolved to an existing ID\n
3969  /// Make sure that the banks were generated with the "include string" option.
3970  /// \aknote Strings are case-insensitive. \endaknote
3971  /// \sa
3972  /// - \ref soundengine_switch
3974  const char* in_pszSwitchGroup, ///< Name of the Switch Group
3975  const char* in_pszSwitchState, ///< Name of the Switch
3976  AkGameObjectID in_gameObjectID ///< Associated game object ID
3977  );
3978 
3979  /// Post the specified trigger (by IDs).
3980  /// \return Always returns AK_Success
3981  /// \sa
3982  /// - \ref soundengine_triggers
3983  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
3985  AkTriggerID in_triggerID, ///< ID of the trigger
3986  AkGameObjectID in_gameObjectID ///< Associated game object ID
3987  );
3988 
3989 #ifdef AK_SUPPORT_WCHAR
3990  /// Posts the specified trigger (by Unicode string name).
3991  /// \return
3992  /// - \c AK_Success if successful
3993  /// - \c AK_InvalidID if the trigger name was null
3994  /// Make sure that the banks were generated with the "include string" option.
3995  /// \aknote Strings are case-insensitive. \endaknote
3996  /// \sa
3997  /// - \ref soundengine_triggers
3999  const wchar_t* in_pszTrigger, ///< Name of the trigger
4000  AkGameObjectID in_gameObjectID ///< Associated game object ID
4001  );
4002 #endif //AK_SUPPORT_WCHAR
4003 
4004  /// Posts the specified trigger.
4005  /// \return
4006  /// - \c AK_Success if successful
4007  /// - \c AK_InvalidID if the trigger name was null
4008  /// Make sure that the banks were generated with the "include string" option.
4009  /// \aknote Strings are case-insensitive. \endaknote
4010  /// \sa
4011  /// - \ref soundengine_triggers
4013  const char* in_pszTrigger, ///< Name of the trigger
4014  AkGameObjectID in_gameObjectID ///< Associated game object ID
4015  );
4016 
4017  /// Sets the state of a State Group (by IDs).
4018  /// \return Always returns AK_Success
4019  /// \sa
4020  /// - \ref soundengine_states
4021  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
4023  AkStateGroupID in_stateGroup, ///< ID of the State Group
4024  AkStateID in_state ///< ID of the state
4025  );
4026 
4027 #ifdef AK_SUPPORT_WCHAR
4028  /// Sets the state of a State Group (by Unicode string names).
4029  /// \return
4030  /// - \c AK_Success if successful
4031  /// - \c AK_InvalidID if the state or State Group name was null
4032  /// Make sure that the banks were generated with the "include string" option.
4033  /// \aknote Strings are case-insensitive. \endaknote
4034  /// \sa
4035  /// - \ref soundengine_states
4036  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
4038  const wchar_t* in_pszStateGroup, ///< Name of the State Group
4039  const wchar_t* in_pszState ///< Name of the state
4040  );
4041 #endif //AK_SUPPORT_WCHAR
4042 
4043  /// Sets the state of a State Group.
4044  /// \return
4045  /// - \c AK_Success if successful
4046  /// - \c AK_InvalidID if the state or State Group name was null
4047  /// Make sure that the banks were generated with the "include string" option.
4048  /// \aknote Strings are case-insensitive. \endaknote
4049  /// \sa
4050  /// - \ref soundengine_states
4051  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
4053  const char* in_pszStateGroup, ///< Name of the State Group
4054  const char* in_pszState ///< Name of the state
4055  );
4056 
4057  //@}
4058 
4059  ////////////////////////////////////////////////////////////////////////
4060  /// @name Environments
4061  //@{
4062 
4063  /// Sets the Auxiliary Busses to route the specified game object
4064  /// To clear the game object's auxiliary sends, \c in_uNumSendValues must be 0.
4065  /// \sa
4066  /// - \ref soundengine_environments
4067  /// - \ref soundengine_environments_dynamic_aux_bus_routing
4068  /// - \ref soundengine_environments_id_vs_string
4069  /// - <tt>AK::SoundEngine::GetIDFromString()</tt>
4070  /// \return
4071  /// - \c AK_Success if successful
4072  /// - \c AK_InvalidParameter if a duplicated environment is found in the array
4073  /// - \c AK_InvalidFloatValue if the value specified was NaN or Inf
4075  AkGameObjectID in_gameObjectID, ///< Associated game object ID
4076  AkAuxSendValue* in_aAuxSendValues, ///< Variable-size array of AkAuxSendValue structures
4077  ///< (it may be NULL if no environment must be set)
4078  AkUInt32 in_uNumSendValues ///< The number of auxiliary busses at the pointer's address
4079  ///< (it must be 0 if no environment is set)
4080  );
4081 
4082  /// Registers a callback to allow the game to modify or override the volume to be applied at the output of an audio bus.
4083  /// The callback must be registered once per bus ID.
4084  /// Call with <tt>in_pfnCallback = NULL</tt> to unregister.
4085  /// \aknote The bus in_busID needs to be a mixing bus.\endaknote
4086  /// \aknote The callback function will not be called for the Main Audio Bus, since the output of this bus is not a bus, but is instead an Audio Device.\endaknote
4087  /// \sa
4088  /// - \ref goingfurther_speakermatrixcallback
4089  /// - \ref soundengine_environments
4090  /// - AkSpeakerVolumeMatrixCallbackInfo
4091  /// - <tt>AK::IAkMixerInputContext</tt>
4092  /// - <tt>AK::IAkMixerPluginContext</tt>
4093  /// \return
4094  /// - \c AK_Success if successful
4095  /// - \c AK_IDNotFound if the bus is not found
4096  /// - \c AK_NotInitialized if the sound engine is not initialized
4097  /// - \c AK_InsufficientMemory if there is not enough memory to complete the operation
4099  AkUniqueID in_busID, ///< Bus ID, as obtained by GetIDFromString( bus_name ).
4100  AkBusCallbackFunc in_pfnCallback, ///< Callback function.
4101  void* in_pCookie = NULL ///< User cookie.
4102  );
4103 
4104  /// 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
4105  /// 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.
4106  /// The callback must be registered once per bus ID.
4107  /// Call with in_pfnCallback = NULL or in_eMeteringFlags = AK_NoMetering to unregister.
4108  /// \aknote The bus in_busID needs to be a mixing bus.\endaknote
4109  /// \sa
4110  /// - \ref goingfurther_speakermatrixcallback
4111  /// - AkBusMeteringCallbackFunc
4112  /// - <tt>AK::AkMetering</tt>
4113  /// \return
4114  /// - \c AK_Success if successful
4115  /// - \c AK_IDNotFound if the bus is not found
4116  /// - \c AK_NotInitialized if the sound engine is not initialized
4117  /// - \c AK_InsufficientMemory if there is not enough memory to complete the operation
4119  AkUniqueID in_busID, ///< Bus ID, as obtained by GetIDFromString( bus_name ).
4120  AkBusMeteringCallbackFunc in_pfnCallback, ///< Callback function.
4121  AkMeteringFlags in_eMeteringFlags, ///< Metering flags.
4122  void* in_pCookie = NULL ///< User cookie.
4123  );
4124 
4125  /// 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
4126  /// 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.
4127  /// The callback must be registered once per device shareset ID.
4128  /// Call with in_pfnCallback = NULL or in_eMeteringFlags = AK_NoMetering to unregister.
4129  /// \sa
4130  /// - \ref goingfurther_speakermatrixcallback
4131  /// - AkOutputDeviceMeteringCallbackFunc
4132  /// - <tt>AK::AkMetering</tt>
4133  /// \return
4134  /// - \c AK_Success if successful
4135  /// - \c AK_DeviceNotFound if the device is not found
4136  /// - \c AK_NotInitialized if the sound engine is not initialized
4137  /// - \c AK_InsufficientMemory if there is not enough memory to complete the operation
4139  AkOutputDeviceID in_idOutput, ///< Output ID, as returned from AddOutput or GetOutputID. You can pass 0 for the main (default) output
4140  AkOutputDeviceMeteringCallbackFunc in_pfnCallback, ///< Callback function.
4141  AkMeteringFlags in_eMeteringFlags, ///< Metering flags.
4142  void* in_pCookie = NULL ///< User cookie.
4143  );
4144 
4145  /// Sets the Output Bus Volume (direct) to be used for the specified game object.
4146  /// The control value is a number ranging from 0.0f to 1.0f.
4147  /// 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
4148  /// 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.
4149  /// \sa
4150  /// - \ref AK::SoundEngine::ResetListenersToDefault
4151  /// - \ref soundengine_environments
4152  /// - \ref soundengine_environments_setting_dry_environment
4153  /// - \ref soundengine_environments_id_vs_string
4154  /// \return
4155  /// - \c AK_Success when successful
4156  /// - \c AK_InvalidFloatValue if the value specified was NaN or Inf
4158  AkGameObjectID in_emitterObjID, ///< Associated emitter game object ID
4159  AkGameObjectID in_listenerObjID, ///< Associated listener game object ID. Pass AK_INVALID_GAME_OBJECT to set the Output Bus Volume for all connected listeners.
4160  AkReal32 in_fControlValue ///< A multiplier in the range [0.0f:16.0f] ( -∞ dB to +24 dB).
4161  ///< A value greater than 1.0f will amplify the sound.
4162  );
4163 
4164  /// Sets an Effect ShareSet at the specified audio node and Effect slot index.
4165  /// \aknote
4166  /// Replacing effects is preferably done through a Set Effect Event Action.
4167  /// \endaknote
4168  /// The target node cannot be a Bus, to set effects on a bus, use SetBusEffect() instead.
4169  /// \aknote The option "Override Parent" in
4170  /// the Effect section in Wwise must be enabled for this node, otherwise the parent's effect will
4171  /// still be the one in use and the call to SetContainerEffect will have no impact.
4172  /// \endaknote
4173  /// \return Always returns AK_Success
4175  AkUniqueID in_audioNodeID, ///< Can be a member of the Containers Hierarchy (not a bus).
4176  AkUInt32 in_uFXIndex, ///< Effect slot index (0-254)
4177  AkUniqueID in_shareSetID ///< ShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the effect slot
4178  );
4179 
4180 
4181  /// Sets an Effect ShareSet at the specified audio node and Effect slot index.
4182  /// \aknote
4183  /// This function is deprecated. Use SetContainerEffect instead.
4184  /// \endaknote
4185  /// \aknote
4186  /// Replacing effects is preferably done through a Set Effect Event Action.
4187  /// \endaknote
4188  /// The target node cannot be a Bus, to set effects on a bus, use SetBusEffect() instead.
4189  /// \aknote The option "Override Parent" in
4190  /// the Effect section in Wwise must be enabled for this node, otherwise the parent's effect will
4191  /// still be the one in use and the call to SetActorMixerEffect will have no impact.
4192  /// \endaknote
4193  /// \return Always returns AK_Success
4195  AkUniqueID in_audioNodeID, ///< Can be a member of the Containers Hierarchy (not a bus).
4196  AkUInt32 in_uFXIndex, ///< Effect slot index (0-254)
4197  AkUniqueID in_shareSetID ///< ShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the effect slot
4198  );
4199 
4200  /// Sets an Effect ShareSet at the specified bus and Effect slot index.
4201  /// \aknote
4202  /// Replacing effects is preferably done through a Set Effect Event Action.
4203  /// \endaknote
4204  /// The Bus can either be an Audio Bus or an Auxiliary Bus.
4205  /// This adds a reference on the audio node to an existing ShareSet.
4206  /// \aknote This function has unspecified behavior when adding an Effect to a currently playing
4207  /// Bus which does not have any Effects, or removing the last Effect on a currently playing bus.
4208  /// \endaknote
4209  /// \aknote This function will replace existing Effects on the node. If the target node is not at
4210  /// the top of the hierarchy and is in the Containers hierarchy, the option "Override Parent" in
4211  /// the Effect section in Wwise must be enabled for this node, otherwise the parent's Effect will
4212  /// still be the one in use and the call to SetBusEffect will have no impact.
4213  /// \endaknote
4214  /// \return
4215  /// - \c AK_Success when successfully posted.
4216  /// - \c AK_IDNotFound if the Bus isn't found by in_audioNodeID
4217  /// - \c AK_InvalidParameter if in_uFXIndex isn't in range
4219  AkUniqueID in_audioNodeID, ///< Bus Short ID.
4220  AkUInt32 in_uFXIndex, ///< Effect slot index (0-254)
4221  AkUniqueID in_shareSetID ///< ShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the Effect slot
4222  );
4223 
4224 #ifdef AK_SUPPORT_WCHAR
4225  /// Sets an Effect ShareSet at the specified Bus and Effect slot index.
4226  /// \aknote
4227  /// Replacing effects is preferably done through a Set Effect Event Action.
4228  /// \endaknote
4229  /// The Bus can either be an Audio Bus or an Auxiliary Bus.
4230  /// This adds a reference on the audio node to an existing ShareSet.
4231  /// \aknote This function has unspecified behavior when adding an Effect to a currently playing
4232  /// bus which does not have any Effects, or removing the last Effect on a currently playing Bus.
4233  /// \endaknote
4234  /// \aknote This function will replace existing Effects on the node. If the target node is not at
4235  /// the top of the hierarchy and is in the Containers, the option "Override Parent" in
4236  /// the Effect section in Wwise must be enabled for this node, otherwise the parent's Effect will
4237  /// still be the one in use and the call to \c SetBusEffect will have no impact.
4238  /// \endaknote
4239  /// \returns
4240  /// - \c AK_Success when successfully posted.
4241  /// - \c AK_IDNotFound if the Bus name doesn't point to a valid bus.
4242  /// - \c AK_InvalidID if in_pszBusName is null
4243  /// - \c AK_InvalidParameter if in_uFXIndex isn't in range or in_pszBusName is null
4245  const wchar_t* in_pszBusName, ///< Bus name
4246  AkUInt32 in_uFXIndex, ///< Effect slot index (0-254)
4247  AkUniqueID in_shareSetID ///< ShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the effect slot
4248  );
4249 #endif //AK_SUPPORT_WCHAR
4250 
4251  /// Sets an Effect ShareSet at the specified Bus and Effect slot index.
4252  /// \aknote
4253  /// Replacing effects is preferably done through a Set Effect Event Action.
4254  /// \endaknote
4255  /// The Bus can either be an Audio Bus or an Auxiliary Bus.
4256  /// This adds a reference on the audio node to an existing ShareSet.
4257  /// \aknote This function has unspecified behavior when adding an Effect to a currently playing
4258  /// Bus which does not have any effects, or removing the last Effect on a currently playing bus.
4259  /// \endaknote
4260  /// \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
4261  /// \aknote This function will replace existing Effects on the node. If the target node is not at
4262  /// the top of the hierarchy and is in the Containers, the option "Override Parent" in
4263  /// the Effect section in Wwise must be enabled for this node, otherwise the parent's Effect will
4264  /// still be the one in use and the call to SetBusEffect will have no impact.
4265  /// \endaknote
4266  /// \returns
4267  /// - \c AK_Success when successfully posted.
4268  /// - \c AK_IDNotFound if the Bus name doesn't point to a valid bus.
4269  /// - \c AK_InvalidParameter if in_uFXIndex isn't in range
4270  /// - \c AK_InvalidID if in_pszBusName is null
4272  const char* in_pszBusName, ///< Bus name
4273  AkUInt32 in_uFXIndex, ///< Effect slot index (0-254)
4274  AkUniqueID in_shareSetID ///< ShareSets ID; pass AK_INVALID_UNIQUE_ID to clear the effect slot
4275  );
4276 
4277  /// Sets an audio device effect shareset on the specified output device and effect slot index.
4278  /// \aknote
4279  /// Replacing effects is preferably done through a Set Effect Event Action.
4280  /// \endaknote
4281  /// \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
4282  /// \aknote This function will replace existing effects of the audio device shareset. \endaknote
4283  /// \aknote Audio device effects support is limited to one shareset per plug-in type at any time. \endaknote
4284  /// \aknote Errors are reported in the Wwise Capture Log if the effect cannot be set on the output device. \endaknote
4285 
4286  /// \returns Always returns AK_Success
4288  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
4289  AkUInt32 in_uFXIndex, ///< Effect slot index (0-254)
4290  AkUniqueID in_FXShareSetID ///< Effect ShareSet ID
4291  );
4292 
4293  /// Forces channel configuration for the specified bus.
4294  /// \aknote You cannot change the configuration of the master bus.\endaknote
4295  ///
4296  /// \return Always returns AK_Success
4298  AkUniqueID in_audioNodeID, ///< Bus Short ID.
4299  AkChannelConfig in_channelConfig ///< Desired channel configuration. An invalid configuration (from default constructor) means "as parent".
4300  );
4301 
4302 #ifdef AK_SUPPORT_WCHAR
4303  /// Forces channel configuration for the specified bus.
4304  /// \aknote You cannot change the configuration of the master bus.\endaknote
4305  ///
4306  /// \returns
4307  /// - \c AK_Success when successful
4308  /// - \c AK_InvalidID if in_pszBusName is null
4310  const wchar_t* in_pszBusName, ///< Bus name
4311  AkChannelConfig in_channelConfig ///< Desired channel configuration. An invalid configuration (from default constructor) means "as parent".
4312  );
4313 #endif //AK_SUPPORT_WCHAR
4314 
4315  /// Forces channel configuration for the specified bus.
4316  /// \aknote You cannot change the configuration of the master bus.\endaknote
4317  ///
4318  /// \returns
4319  /// - \c AK_Success when successful
4320  /// - \c AK_InvalidID if in_pszBusName is null
4322  const char* in_pszBusName, ///< Bus name
4323  AkChannelConfig in_channelConfig ///< Desired channel configuration. An invalid configuration (from default constructor) means "as parent".
4324  );
4325 
4326  /// Resets the channel configuration for the specified bus back to the value loaded from soundbanks.
4327  /// Useful to clear any value set by AK::SoundEngine::SetBusConfig.
4328  /// \aknote You cannot change the configuration of the master bus.\endaknote
4329  ///
4330  /// \return Always returns AK_Success
4332  AkUniqueID in_audioNodeID ///< Bus Short ID.
4333  );
4334 
4335 #ifdef AK_SUPPORT_WCHAR
4336  /// Resets the channel configuration for the specified bus back to the value loaded from soundbanks.
4337  /// Useful to clear any value set by AK::SoundEngine::SetBusConfig.
4338  /// \aknote You cannot change the configuration of the master bus.\endaknote
4339  ///
4340  /// \returns
4341  /// - \c AK_Success when successful
4342  /// - \c AK_InvalidID if in_pszBusName is null
4344  const wchar_t* in_pszBusName ///< Bus name
4345  );
4346 #endif //AK_SUPPORT_WCHAR
4347 
4348  /// Resets the channel configuration for the specified bus back to the value loaded from soundbanks.
4349  /// Useful to clear any value set by AK::SoundEngine::SetBusConfig.
4350  /// \aknote You cannot change the configuration of the master bus.\endaknote
4351  ///
4352  /// \returns
4353  /// - \c AK_Success when successful
4354  /// - \c AK_InvalidID if in_pszBusName is null
4356  const char* in_pszBusName ///< Bus name
4357  );
4358 
4359  /// Forces channel configuration for the specified Sidechain Mix at run-time.
4360  ///
4361  /// Standard, ambisonic, and anonymous channel configs are supported.
4362  /// If a channel config of type AK_ChannelConfigType_UseDeviceMain or AK_ChannelConfigType_UseDevicePassthrough are specified,
4363  /// then the Primary Device's channel config for its Main Mix or Passthrough Mix is used, as appropriate.
4364  /// Audio Object channel configs are not supported for Sidechain Mixes.
4365  ///
4366  /// An invalid channel configuration (from default constructor) can be used to clear any previously-set config set via the soundengine API, and revert to what was loaded from soundbanks.
4367  ///
4368  /// \return Always returns AK_Success
4370  AkUniqueID in_sidechainMixId, ///< SidechainMix Short ID.
4371  AkChannelConfig in_channelConfig ///< Desired channel configuration.
4372  );
4373 
4374 #ifdef AK_SUPPORT_WCHAR
4375  /// Forces channel configuration for the specified Sidechain Mix at run-time.
4376  ///
4377  /// Standard, ambisonic, and anonymous channel configs are supported.
4378  /// If a channel config of type AK_ChannelConfigType_UseDeviceMain or AK_ChannelConfigType_UseDevicePassthrough are specified,
4379  /// then the Primary Device's channel config for its Main Mix or Passthrough Mix is used, as appropriate.
4380  /// Audio Object channel configs are not supported for Sidechain Mixes.
4381  ///
4382  /// An invalid channel configuration (from default constructor) can be used to clear any previously-set config set via the soundengine API, and revert to what was loaded from soundbanks.
4383  ///
4384  /// \returns
4385  /// - \c AK_Success when successful
4386  /// - \c AK_InvalidID if in_pszSidechainMixName is null
4388  const wchar_t* in_pszSidechainMixName, ///< SidechainMix name
4389  AkChannelConfig in_channelConfig ///< Desired channel configuration. An invalid configuration (from default constructor) means "as parent".
4390  );
4391 #endif //AK_SUPPORT_WCHAR
4392 
4393  /// Forces channel configuration for the specified Sidechain Mix at run-time.
4394  ///
4395  /// Standard, ambisonic, and anonymous channel configs are supported.
4396  /// If a channel config of type AK_ChannelConfigType_UseDeviceMain or AK_ChannelConfigType_UseDevicePassthrough are specified,
4397  /// then the Primary Device's channel config for its Main Mix or Passthrough Mix is used, as appropriate.
4398  /// Audio Object channel configs are not supported for Sidechain Mixes.
4399  ///
4400  /// An invalid channel configuration (from default constructor) can be used to clear any previously-set config set via the soundengine API, and revert to what was loaded from soundbanks.
4401  ///
4402  /// \returns
4403  /// - \c AK_Success when successful
4404  /// - \c AK_InvalidID if in_pszSidechainMixName is null
4406  const char* in_pszSidechainMixName, ///< SidechainMix name
4407  AkChannelConfig in_channelConfig ///< Desired channel configuration. An invalid configuration (from default constructor) means "as parent".
4408  );
4409 
4410  /// Sets a game object's obstruction and occlusion levels. If SetMultiplePositions were used, values are set for all positions.
4411  /// To assign a unique obstruction and occlusion value to each sound position, instead use AK::SoundEngine::SetMultipleObstructionAndOcclusion.
4412  /// This function is used to affect how an object should be heard by a specific listener.
4413  /// \sa
4414  /// - \ref soundengine_obsocc
4415  /// - \ref soundengine_environments
4416  /// \return Always returns AK_Success
4418  AkGameObjectID in_EmitterID, ///< Emitter game object ID
4419  AkGameObjectID in_ListenerID, ///< Listener game object ID
4420  AkReal32 in_fObstructionLevel, ///< ObstructionLevel: [0.0f..1.0f]
4421  AkReal32 in_fOcclusionLevel ///< OcclusionLevel: [0.0f..1.0f]
4422  );
4423 
4424  /// Sets a game object's obstruction and occlusion value for each position defined by AK::SoundEngine::SetMultiplePositions.
4425  /// This function differs from AK::SoundEngine::SetObjectObstructionAndOcclusion as a list of obstruction/occlusion pair is provided
4426  /// and each obstruction/occlusion pair will affect the corresponding position defined at the same index.
4427  /// \aknote In the case the number of obstruction/occlusion pairs is smaller than the number of positions, remaining positions'
4428  /// obstruction/occlusion values are set to 0.0. \endaknote
4429  /// \return
4430  /// - \c AK_Success if successful
4431  /// - \c AK_CommandTooLarge if the number of obstruction values is too large for the command queue.
4432  /// - \c AK_InvalidParameter if one of the parameter is out of range (check the debug console)
4433  /// - \c AK_InvalidFloatValue if one of the occlusion/obstruction values is NaN or Inf.
4434  /// \sa
4435  /// - \ref soundengine_obsocc
4436  /// - \ref soundengine_environments
4437  /// \return AK_Success if occlusion/obstruction values are successfully stored for this emitter
4439  AkGameObjectID in_EmitterID, ///< Emitter game object ID
4440  AkGameObjectID in_uListenerID, ///< Listener game object ID
4441  AkObstructionOcclusionValues* in_fObstructionOcclusionValues, ///< Array of obstruction/occlusion pairs to apply
4442  ///< ObstructionLevel: [0.0f..1.0f]
4443  ///< OcclusionLevel: [0.0f..1.0f]
4444  AkUInt32 in_uNumOcclusionObstruction ///< Number of obstruction/occlusion pairs specified in the provided array
4445  );
4446 
4447  /// Saves the playback history of container structures.
4448  /// This function will write history data for all currently loaded containers and instantiated game
4449  /// objects (for example, current position in Sequence Containers and previously played elements in
4450  /// Random Containers).
4451  /// \remarks
4452  /// This function acquires the main audio lock, and may block the caller for several milliseconds.
4453  /// \return
4454  /// - \c AK_Success when successful
4455  /// - \c AK_Fail is in_pBytes could not be parsed (corruption or data is truncated)
4456  /// \sa
4457  /// - <tt>AK::SoundEngine::SetContainerHistory()</tt>
4459  AK::IWriteBytes * in_pBytes ///< Pointer to IWriteBytes interface used to save the history.
4460  );
4461 
4462  /// Restores the playback history of container structures.
4463  /// This function will read history data from the passed-in stream reader interface, and apply it to all
4464  /// currently loaded containers and instantiated game objects. Game objects are matched by
4465  /// ID. History for unloaded structures and unknown game objects will be skipped.
4466  /// \remarks
4467  /// This function acquires the main audio lock, and may block the caller for several milliseconds.
4468  /// \return
4469  /// - \c AK_Success if successful
4470  /// - \c AK_InsufficientMemory if not enough memory is available for IReadBytes operation
4471  /// \sa
4472  /// - <tt>AK::SoundEngine::GetContainerHistory()</tt>
4474  AK::IReadBytes * in_pBytes ///< Pointer to IReadBytes interface used to load the history.
4475  );
4476 
4477  //@}
4478 
4479  ////////////////////////////////////////////////////////////////////////
4480  /// @name Capture
4481  //@{
4482 
4483  /// Starts recording the sound engine audio output.
4484  /// StartOutputCapture outputs a wav file per current output device of the sound engine.
4485  /// If more than one device is active, the system will create multiple files in the same output
4486  /// directory and will append numbers at the end of the provided filename.
4487  ///
4488  /// If no device is running yet, the system will return success AK_Success despite doing nothing.
4489  /// Use RegisterAudioDeviceStatusCallback to get notified when devices are created/destructed.
4490  ///
4491  /// \return AK_Success if successful, AK_Fail if there was a problem starting the output capture.
4492  /// \remark
4493  /// - The sound engine opens a stream for writing using <tt>AK::IAkStreamMgr::CreateStd()</tt>. If you are using the
4494  /// default implementation of the Stream Manager, file opening is executed in your implementation of
4495  /// the Low-Level IO interface <tt>AK::StreamMgr::IAkLowLevelIOHook::BatchOpen()</tt>. The following
4496  /// AkFileSystemFlags are passed: uCompanyID = AKCOMPANYID_AUDIOKINETIC and uCodecID = AKCODECID_PCM,
4497  /// and the AkOpenMode is AK_OpenModeWriteOvrwr. See \ref streamingmanager_lowlevel_location for
4498  /// more details on managing the deployment of your Wwise generated data.
4499  /// \return
4500  /// - \c AK_Success when successful
4501  /// - \c AK_InvalidParameter if in_CaptureFileName is null.
4502  /// - \c AK_InsufficientMemory if not enough memory is available.
4503  /// \sa
4504  /// - <tt>AK::SoundEngine::StopOutputCapture()</tt>
4505  /// - <tt>AK::StreamMgr::SetFileLocationResolver()</tt>
4506  /// - \ref streamingdevicemanager
4507  /// - \ref streamingmanager_lowlevel_location
4508  /// - RegisterAudioDeviceStatusCallback
4510  const AkOSChar* in_CaptureFileName ///< Name of the output capture file
4511  );
4512 
4513  /// Stops recording the sound engine audio output.
4514  /// \return AK_Success if successful, AK_Fail if there was a problem stopping the output capture.
4515  /// \sa
4516  /// - <tt>AK::SoundEngine::StartOutputCapture()</tt>
4518 
4519  /// Adds text marker in audio output file.
4520  /// \return
4521  /// - \c AK_Success when successful
4522  /// - \c AK_InvalidParameter if in_MarkerText is null.
4523  /// - \c AK_InsufficientMemory if not enough memory is available.
4524  /// \sa
4525  /// - <tt>AK::SoundEngine::StartOutputCapture()</tt>
4527  const char* in_MarkerText, ///< Text of the marker
4528  AkUInt32 in_uSamplePos = AK_INVALID_SAMPLE_POS ///< Sample to attach the marker to. If set to AK_INVALID_SAMPLE_POS, marker is added at the current recording time.
4529  );
4530 
4531  /// Adds binary data to a marker in audio output file.
4532  /// \return
4533  /// - \c AK_Success when successful
4534  /// - \c AK_InvalidParameter if in_pMarkerData is null or in_uMarkerDataSize is zero.
4535  /// - \c AK_InsufficientMemory if not enough memory is available.
4536  /// \sa
4537  /// - <tt>AK::SoundEngine::StartOutputCapture()</tt>
4539  void* in_pMarkerData, ///< Marker data
4540  AkUInt32 in_uMarkerDataSize, ///< Size of the marker data
4541  AkUInt32 in_uSamplePos = AK_INVALID_SAMPLE_POS ///< Sample to attach the marker to. If set to AK_INVALID_SAMPLE_POS, marker is added at the current recording time.
4542  );
4543 
4544  /// Gets the system sample rate.
4545  /// \return The sample rate.
4547 
4548  /// Registers a callback used for retrieving audio samples.
4549  /// The callback will be called from the audio thread during real-time rendering and from the main thread during offline rendering.
4550  /// \return
4551  /// - \c AK_Success when successful
4552  /// - \c AK_DeviceNotFound if the audio device ID doesn't match to a device in use.
4553  /// - \c AK_InvalidParameter when in_pfnCallback is null
4554  /// - \c AK_NotInitialized if the sound engine is not initialized at this time
4555  /// \sa
4556  /// - <tt>AK::SoundEngine::AddOutput()</tt>
4557  /// - <tt>AK::SoundEngine::GetOutputID()</tt>
4558  /// - <tt>AK::SoundEngine::UnregisterCaptureCallback()</tt>
4560  AkCaptureCallbackFunc in_pfnCallback, ///< Capture callback function to register.
4561  AkOutputDeviceID in_idOutput = AK_INVALID_OUTPUT_DEVICE_ID, ///< The audio device specific id, return by AK::SoundEngine::AddOutput or AK::SoundEngine::GetOutputID
4562  void* in_pCookie = NULL ///< Callback cookie that will be sent to the callback function along with additional information
4563  );
4564 
4565  /// Unregisters a callback used for retrieving audio samples.
4566  /// \return
4567  /// - \c AK_Success when successful
4568  /// - \c AK_DeviceNotFound if the audio device ID doesn't match to a device in use.
4569  /// - \c AK_InvalidParameter when in_pfnCallback is null
4570  /// - \c AK_NotInitialized if the sound engine is not initialized at this time
4571  /// \sa
4572  /// - <tt>AK::SoundEngine::AddOutput()</tt>
4573  /// - <tt>AK::SoundEngine::GetOutputID()</tt>
4574  /// - <tt>AK::SoundEngine::RegisterCaptureCallback()</tt>
4576  AkCaptureCallbackFunc in_pfnCallback, ///< Capture callback function to unregister.
4577  AkOutputDeviceID in_idOutput = AK_INVALID_OUTPUT_DEVICE_ID, ///< The audio device specific id, return by AK::SoundEngine::AddOutput or AK::SoundEngine::GetOutputID
4578  void* in_pCookie = NULL ///< Callback cookie that will be sent to the callback function along with additional information
4579  );
4580 
4581  /// Starts recording the sound engine profiling information into a file. This file can be read
4582  /// by Wwise Authoring. The file is created at the base path. If you have integrated Wwise I/O,
4583  /// you can use <tt>CAkDefaultIOHookDeferred::SetBasePath()</tt> (or <tt>CAkDefaultIOHookDeferred::AddBasePath()</tt>)
4584  /// to change the location where the file is saved. The profiling session records all data types possible.
4585  /// Note that this call captures peak metering for all the busses loaded and mixing
4586  /// while this call is invoked.
4587  /// \remark This function is provided as a utility tool only. It does nothing if it is
4588  /// called in the release configuration and returns AK_NotCompatible.
4590  const AkOSChar* in_CaptureFileName ///< Name of the output profiler file (.prof extension recommended)
4591  );
4592 
4593  /// Stops recording the sound engine profiling information.
4594  /// \remark This function is provided as a utility tool only. It does nothing if it is
4595  /// called in the release configuration and returns AK_NotCompatible.
4597 
4598  //@}
4599 
4600  ////////////////////////////////////////////////////////////////////////
4601  /// @name Offline Rendering
4602  //@{
4603 
4604  /// Sets the offline rendering frame time in seconds.
4605  /// 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.
4606  ///
4607  /// \sa \ref goingfurther_offlinerendering
4608  /// \return Always returns AK_Success
4610  AkReal32 in_fFrameTimeInSeconds ///< frame time in seconds used during offline rendering
4611  );
4612 
4613  /// Enables/disables offline rendering.
4614  ///
4615  /// \sa \ref goingfurther_offlinerendering
4616  /// \return Always returns AK_Success
4618  bool in_bEnableOfflineRendering ///< enables/disables offline rendering
4619  );
4620 
4621  //@}
4622 
4623  ////////////////////////////////////////////////////////////////////////
4624  /// @name Secondary Outputs
4625  //@{
4626 
4627  /// Adds an output to the sound engine. Use this to add controller-attached headphones, controller speakers, DVR output, etc.
4628  /// 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).
4629  ///
4630  /// Like most functions of AK::SoundEngine, AddOutput is asynchronous. A successful return code merely indicates that the request is properly queued.
4631  /// Error codes returned by this function indicate various invalid parameters. To know if this function succeeds or not, and the failure code,
4632  /// register an AkDeviceStatusCallbackFunc callback with RegisterAudioDeviceStatusCallback.
4633  ///
4634  /// \sa AkOutputSettings for more details.
4635  /// \sa \ref integrating_secondary_outputs
4636  /// \sa \ref default_audio_devices
4637  /// \sa AK::SoundEngine::RegisterAudioDeviceStatusCallback
4638  /// \sa AK::AkDeviceStatusCallbackFunc
4639  /// \return
4640  /// The following codes are returned directly from the function, as opposed to the AkDeviceStatusCallback
4641  /// - \c AK_NotImplemented: Feature not supported, some platforms don't have other outputs.
4642  /// - \c AK_InvalidParameter: Out of range parameters or unsupported parameter combinations (see parameter list below).
4643  /// - \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.
4644  /// - \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.
4645  /// - \c AK_NotInitialized: If AK::SoundEngine::Init was not called or if the Init.bnk was not loaded before the call.
4646  /// - \c AK_Success: Parameters are valid.
4647  ///
4648  /// The following codes are returned from the callback.
4649  /// - \c AK_InsufficientMemory : Not enough memory to complete the operation.
4650  /// - \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.
4651  /// - \c AK_PluginNotRegistered: The audioDeviceShareset exists but the plug-in it refers to is not installed or statically linked with the game.
4652  /// - \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.
4653  /// - \c AK_DeviceNotCompatible: The hardware does not support this type of output. Wwise will NOT fallback to any other type of output.
4654  /// - \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.
4655  /// - \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.
4657  const AkOutputSettings & in_Settings, ///< Creation parameters for this output. \ref AkOutputSettings
4658  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
4659  const AkGameObjectID* in_pListenerIDs = NULL, ///< Specific listener(s) to attach to this device.
4660  ///< If specified, only the sounds routed to game objects linked to those listeners will play in this device.
4661  ///< It is necessary to have separate listeners if multiple devices of the same type can coexist (e.g. controller speakers)
4662  ///< If not specified, sound routing simply obey the associations between Master Busses and Audio Devices setup in the Wwise Project.
4663  AkUInt32 in_uNumListeners = 0 ///< The number of elements in the in_pListenerIDs array.
4664  );
4665 
4666  /// Removes one output added through AK::SoundEngine::AddOutput
4667  /// If a listener was associated with the device, you should consider unregistering the listener prior to call RemoveOutput
4668  /// so that Game Object/Listener routing is properly updated according to your game scenario.
4669  /// \sa \ref integrating_secondary_outputs
4670  /// \sa AK::SoundEngine::AddOutput
4671  /// \return AK_Success: Parameters are valid.
4673  AkOutputDeviceID in_idOutput ///< ID of the output to remove. Use the returned ID from AddOutput, GetOutputID, or ReplaceOutput
4674  );
4675 
4676  /// Replaces an output device previously created during engine initialization or from AddOutput, with a new output device.
4677  /// 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
4678  /// that the old output device was associated with, and preserve all listeners that were attached to the old output device.
4679  ///
4680  /// Like most functions of AK::SoundEngine, AddOutput is asynchronous. A successful return code merely indicates that the request is properly queued.
4681  /// Error codes returned by this function indicate various invalid parameters. To know if this function succeeds or not, and the failure code,
4682  /// register an AkDeviceStatusCallbackFunc callback with RegisterAudioDeviceStatusCallback.
4683  ///
4684  /// \sa AK::SoundEngine::AddOutput
4685  /// \sa AK::SoundEngine::RegisterAudioDeviceStatusCallback
4686  /// \sa AK::AkDeviceStatusCallbackFunc
4687  /// \return
4688  /// - \c AK_InvalidID: The audioDeviceShareset on in_settings was not valid.
4689  /// - \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.
4690  /// - \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.
4691  /// - \c AK_DeviceNotFound: The in_outputDeviceId provided does not match with any of the output devices that the sound engine is currently using.
4692  /// - \c AK_InvalidParameter: Out of range parameters or unsupported parameter combinations on in_settings
4693  /// - \c AK_Success: parameters were valid, and the remove and add will occur.
4695  const AkOutputSettings & in_Settings, ///< Creation parameters for this output. \ref AkOutputSettings
4696  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()
4697  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.
4698  );
4699 
4700  /// Gets the compounded output ID from shareset and device id.
4701  /// 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.
4702  /// Use 0 for in_idShareset & in_idDevice to get the Main Output ID (the one usually initialized during AK::SoundEngine::Init)
4703  /// \return The id of the output
4705  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.
4706  AkUInt32 in_idDevice ///< Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
4707  ///< \sa \ref obtaining_device_id
4708  );
4709 
4711  const char* in_szShareSet, ///< Audio Device ShareSet Name, as defined in the Wwise Project. If Null, will select the Default Output shareset (always available)
4712  AkUInt32 in_idDevice ///< Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
4713  ///< \sa \ref obtaining_device_id
4714  );
4715 
4716  #ifdef AK_SUPPORT_WCHAR
4718  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)
4719  AkUInt32 in_idDevice ///< Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
4720  ///< \sa \ref obtaining_device_id
4721  );
4722  #endif
4723 
4724  /// Sets the Audio Device to which a master bus outputs. This overrides the setting in the Wwise project.
4725  /// Can only be set on top-level busses. The Init bank should be successfully loaded prior to this call.
4726  /// \aknote This function is useful only if used before the creation of an output, at the beginning of the sound engine setup.
4727  /// Once active outputs using this Bus have been created, it is imperative to use AK::SoundEngine:ReplaceOutput instead to change the type of output.
4728  /// \return
4729  /// AK_IDNotFound when either the Bus ID or the Device ID are not present in the Init bank or the bank was not loaded
4730  /// AK_InvalidParameter when the specified bus is not a Master Bus. This function can be called only on busses that have no parent bus.
4732  AkUniqueID in_idBus, ///< Id of the master bus
4733  AkUniqueID in_idNewDevice ///< New device shareset to replace with.
4734  );
4735 
4736  /// Sets the Audio Device to which a master bus outputs. This overrides the setting in the Wwise project.
4737  /// Can only be set on top-level busses. The Init bank should be successfully loaded prior to this call.
4738  /// \aknote This function is useful only if used before the creation of an output, at the beginning of the sound engine setup.
4739  /// Once active outputs using this Bus have been created, it is imperative to use AK::SoundEngine:ReplaceOutput instead to change the type of output.
4740  /// \return
4741  /// AK_IDNotFound when either the Bus ID or the Device ID are not present in the Init bank or the bank was not loaded
4742  /// AK_InvalidParameter when the specified bus is not a Master Bus. This function can be called only on busses that have no parent bus.
4744  const char* in_BusName, ///< Name of the master bus
4745  const char* in_DeviceName ///< New device shareset to replace with.
4746  );
4747 
4748  #ifdef AK_SUPPORT_WCHAR
4749  /// Sets the Audio Device to which a master bus outputs. This overrides the setting in the Wwise project.
4750  /// Can only be set on top-level busses. The Init bank should be successfully loaded prior to this call.
4751  /// SetBusDevice must be preceded by a call to AddOutput for the new device shareset to be registered as an output.
4752  /// \return
4753  /// AK_IDNotFound when either the Bus ID or the Device ID are not present in the Init bank or the bank was not loaded
4754  /// AK_InvalidParameter when the specified bus is not a Master Bus. This function can be called only on busses that have no parent bus.
4756  const wchar_t* in_BusName, ///< Name of the master bus
4757  const wchar_t* in_DeviceName ///< New device shareset to replace with.
4758  );
4759  #endif
4760 
4761  /// Returns a listing of the current devices for a given sink plug-in, including Device ID, friendly name, and state.
4762  /// \remarks
4763  /// This call is only valid for sink plug-ins that support device enumeration.
4764  /// Prerequisites:
4765  /// * The plug-in must have been initialized by loading the init bank or by calling \ref AK::SoundEngine::RegisterPlugin.
4766  /// * A physical device recognized by this plug-in must exist in the system.
4767  ///
4768  /// The built-in audio devices (System, Communication, Headphones, Personal, Pad Speaker) all support enumeration, on all platforms.
4769  /// The only Wwise plug-in that support device enumeration is Motion, for the Windows platform only.
4770  /// Note that it is optional to implement device enumeration on custom sink plug-ins.
4771  /// \return
4772  /// - \c AK_NotImplemented if the sink plug-in does not implement device enumeration
4773  /// - \c AK_PluginNotRegistered if the plug-in has not been registered yet either by loading the init bank or by calling RegisterPluginDLL.
4774  /// - \c AK_NotCompatible if no device of this type are supported on the current platform
4775  /// - \c AK_Fail in case of system device manager failure (OS related)
4776  ///
4778  AkUInt32 in_ulCompanyID, ///< Company identifier (as declared in the plug-in description XML file)
4779  AkUInt32 in_ulPluginID, ///< Plug-in identifier (as declared in the plug-in description XML file)
4780  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.
4781  AkDeviceDescription* out_deviceDescriptions ///< The output array of device descriptions.
4782  );
4783 
4784  /// Returns a listing of the current devices for a given sink plug-in, including Device ID, friendly name, and state.
4785  /// \remarks
4786  /// This call is only valid for sink plug-ins that support device enumeration.
4787  /// Prerequisites:
4788  /// * The plug-in must have been initialized by loading the init bank or by calling \ref AK::SoundEngine::RegisterPlugin.
4789  /// * 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.
4790  ///
4791  /// The built-in audio devices (System, Communication, Headphones, Personal, Pad Speaker) all support enumeration, on all platforms.
4792  /// The only Wwise plug-in that support device enumeration is Motion, for the Windows platform only.
4793  /// Note that it is optional to implement device enumeration on custom sink plug-ins.
4794  /// \return
4795  /// AK_NotImplemented if the sink plug-in does not implement device enumeration
4796  /// AK_PluginNotRegistered if the plug-in has not been registered yet either by loading the init bank or by calling RegisterPluginDLL.
4798  AkUniqueID in_audioDeviceShareSetID, ///< In: The audio device shareset ID for which to list the sink plug-in devices.
4799  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.
4800  AkDeviceDescription* out_deviceDescriptions ///< The output array of device descriptions.
4801  );
4802 
4803  /// Sets the volume of a output device.
4804  /// \return
4805  /// - \c AK_Success if successful
4806  /// - \c AK_InvalidFloatValue if the value specified was NaN or Inf
4808  AkOutputDeviceID in_idOutput, ///< Output ID to set the volume on. As returned from AddOutput or GetOutputID
4809  AkReal32 in_fVolume ///< Volume (0.0 = Muted, 1.0 = Volume max)
4810  );
4811 
4812  /// 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).
4813  /// 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
4814  /// 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
4815  /// 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.
4816  /// \return
4817  /// AK_NotCompatible when the device ID provided does not support spatial audio, or the platform does not support spatial audio
4818  /// AK_Fail when there is some other miscellaneous failure, or the device ID provided does not match a device that the system knows about
4819  /// AK_Success when the device ID provided does support spatial audio
4821  AkUInt32 in_idDevice ///< Device specific identifier, when multiple devices of the same type are possible. If only one device is possible, leave to 0.
4822  ///< \sa \ref obtaining_device_id
4823  );
4824 
4825 
4826  //@}
4827 
4828  /// 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.
4829  /// Call \c WakeupFromSuspend when your application receives the message from the OS that the process is back in foreground.
4830  /// When suspended, the sound engine will process API messages (like PostEvent and SetSwitch) only when \ref RenderAudio() is called.
4831  /// It is recommended to match the <b>in_bRenderAnyway</b> parameter with the behavior of the rest of your game:
4832  /// 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.
4833  /// If you want to minimize CPU when in background, then don't allow rendering and never call RenderAudio from the game.
4834  ///
4835  /// Consult \ref workingwithsdks_system_calls to learn when it is appropriate to call this function for each platform.
4836  /// \sa WakeupFromSuspend
4837  /// \sa \ref workingwithsdks_system_calls
4839  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().
4840  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.
4841  );
4842 
4843  /// 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.
4844  ///
4845  /// Consult \ref workingwithsdks_system_calls to learn when it is appropriate to call this function for each platform.
4846  /// \sa Suspend
4847  /// \sa \ref workingwithsdks_system_calls
4849  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.
4850  );
4851 
4852  /// Obtains the current audio output buffer tick. This corresponds to the number of buffers produced by
4853  /// the sound engine since initialization.
4854  /// \return Tick count.
4856 
4857  /// Obtains the current audio output sample tick. This corresponds to the number of samples produced by
4858  /// the sound engine since initialization.
4859  /// \return Sample count.
4861 
4862  /// Resets all global changes made to the sound engine.
4863  /// This includes:
4864  /// - States
4865  /// - RTPCs in the global scope
4866  /// - Changes made on sound object by Event Actions like Set Volume, Set Pitch, etc or equivalent API calls.
4867  /// - Mute/solo status
4868  /// - Effects set dynamically through SetEffect or a Set Effect Action.
4869  /// - Random and Sequence containers histories (last played, etc)
4870  /// \note
4871  /// To reset Game Object specific values, use AK::SoundEngine::UnregisterGameObj or AK::SoundEngine::UnregisterAllGameObj
4872  /// then AK::SoundEngine::RegisterGameObj if the game object is still needed.
4874  }
4875 }
4876 
4877 #endif // _AK_SOUNDENGINE_H_
AkOutputSettings settingsMainOutput
Main output device settings.
AKSOUNDENGINE_API AKRESULT RegisterPluginDLL(const AkOSChar *in_DllName, const AkOSChar *in_DllPath=NULL)
AkPanningRule
Headphone / speakers panning rules.
Definition: AkEnums.h:243
AkUInt32 uMonitorQueuePoolSize
Size of the monitoring queue, in bytes. This parameter is not used in Release build.
AKSOUNDENGINE_API AKRESULT GetPlayingSegmentInfo(AkPlayingID in_PlayingID, AkSegmentInfo &out_segmentInfo, bool in_bExtrapolate=true)
void(* AkBankCallbackFunc)(AkUInt32 in_bankID, const void *in_pInMemoryBankPtr, enum AKRESULT in_eLoadResult, void *in_pCookie)
AkEventCallbackFunc AkCallbackFunc
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()
AKSOUNDENGINE_API void ProcessBanks()
void(* AkProfilerPostMarkerFunc)(AkPluginID in_uPluginID, const char *in_pszMarkerName)
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)
uint16_t AkUInt16
Unsigned 16-bit integer.
AkUInt32 AkBankID
Run time bank ID.
Definition: AkTypedefs.h:62
static const AkUInt32 AK_INVALID_OUTPUT_DEVICE_ID
Invalid Device ID.
Definition: AkConstants.h:47
AkUInt32 AkSwitchGroupID
Switch group ID.
Definition: AkTypedefs.h:58
#define AK_DEFAULT_HEIGHT_ANGLE
Definition of data structures for AkAudioObject.
AkBackgroundMusicChangeCallbackFunc BGMCallback
Application-defined audio source change event callback function.
Auxiliary bus sends information per game object per given auxiliary bus.
AKSOUNDENGINE_API void ExecuteActionOnPlayingID(AkActionOnEventType in_ActionType, AkPlayingID in_playingID, AkTimeMs in_uTransitionDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear)
Obstruction/occlusion pair for a position.
AKSOUNDENGINE_API AKRESULT LoadBankMemoryView(const void *in_pInMemoryBankPtr, AkUInt32 in_uInMemoryBankSize, AkBankID &out_bankID)
AkUInt32 AkJobType
Job type identifier.
Definition: AkTypedefs.h:76
AkUInt8 * pMediaMemory
Pointer to the data to be set for the source.
void(* AkCaptureCallbackFunc)(AkAudioBuffer &in_CaptureBuffer, AkOutputDeviceID in_idOutput, void *in_pCookie)
void(* AkBusMeteringCallbackFunc)(AkBusMeteringCallbackInfo *in_pCallbackInfo)
AKSOUNDENGINE_API AKRESULT AddOutputCaptureBinaryMarker(void *in_pMarkerData, AkUInt32 in_uMarkerDataSize, AkUInt32 in_uSamplePos=AK_INVALID_SAMPLE_POS)
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(* AkJobWorkerFunc)(AkJobType in_jobType, AkUInt32 in_uExecutionTimeUsec)
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,...
@ AkPluginTypeNone
Unknown/invalid plug-in type.
Definition: AkEnums.h:282
AkMeteringFlags
Metering flags. Used for specifying bus metering, through AK::SoundEngine::RegisterBusVolumeCallback(...
Definition: AkEnums.h:265
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...
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).
@ AkFloorPlane_Default
The Wwise default floor plane is ZX.
const ::AkActionOnEventType AkActionOnEventType_Resume
AKSOUNDENGINE_API AKRESULT SetDefaultListeners(const AkGameObjectID *in_pListenerObjs, AkUInt32 in_uNumListeners)
AkUInt64 AkGameObjectID
Game object ID.
Definition: AkTypedefs.h:47
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)
#define AK_EXTERNAPIFUNC(_type, _name)
AkCurveInterpolation
Curve interpolation types.
Definition: AkEnums.h:185
@ AkFloorPlane_XY
The floor is oriented along the XY-plane. The front vector points towards +X, the up vector towards +...
AkReal32 fDebugOutOfRangeLimit
Debug setting: Only used when bDebugOutOfRangeCheckEnabled is true. This defines the maximum values s...
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.
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:1383
AKSOUNDENGINE_API AKRESULT RegisterGameObj(AkGameObjectID in_gameObjectID)
@ Preparation_LoadAndDecode
Vorbis media is decoded when loading, and an uncompressed PCM version is used for playback.
AKSOUNDENGINE_API AKRESULT GetContainerHistory(AK::IWriteBytes *in_pBytes)
const ::AkActionOnEventType AkActionOnEventType_Pause
const ::AkActionOnEventType AkActionOnEventType_Stop
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)
Structure used to query info on active playing segments.
Platform-independent initialization settings of output devices.
AKSOUNDENGINE_API bool IsInitialized()
@ Preparation_Unload
PrepareEvent() will unload required information to play the specified event.
static const AkGameObjectID AK_INVALID_GAME_OBJECT
Invalid game object (may also mean all game objects)
Definition: AkConstants.h:33
@ AkBankContent_All
Use AkBankContent_All to load both the media and structural content.
AKSOUNDENGINE_API AKRESULT SetOfflineRenderingFrameTime(AkReal32 in_fFrameTimeInSeconds)
char AkOSChar
Generic character string.
Definition: AkTypes.h:60
uint8_t AkUInt8
Unsigned 8-bit integer.
AkUInt32 AkUniqueID
Unique 32-bit ID.
Definition: AkTypedefs.h:39
AKSOUNDENGINE_API AKRESULT ClearBanks()
AKSOUNDENGINE_API AKRESULT UnregisterAudioDeviceStatusCallback()
Unregisters the callback for the Audio Device status changes, registered by RegisterAudioDeviceStatus...
AkUInt32 uMaxNumPaths
Maximum number of paths for positioning.
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.
AkInt32 AkMemPoolId
Memory pool ID.
Definition: AkTypedefs.h:49
AKSOUNDENGINE_API AKRESULT SetOutputVolume(AkOutputDeviceID in_idOutput, AkReal32 in_fVolume)
AKSOUNDENGINE_API AKRESULT GetPanningRule(AkPanningRule &out_ePanningRule, AkOutputDeviceID in_idOutput=0)
AKSOUNDENGINE_API AKRESULT ResetRTPCValueByPlayingID(AkRtpcID in_rtpcID, AkPlayingID in_playingID, AkTimeMs in_uValueChangeDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear, bool in_bBypassInternalValueInterpolation=false)
AkFloorPlane eFloorPlane
AKSOUNDENGINE_API AKRESULT SetBankLoadIOSettings(AkReal32 in_fThroughput, AkPriority in_priority)
AKSOUNDENGINE_API AKRESULT RegisterAudioDeviceStatusCallback(AK::AkDeviceStatusCallbackFunc in_pCallback)
void(* AkResourceMonitorCallbackFunc)(const struct AkResourceMonitorDataSummary *in_pdataSummary)
AKSOUNDENGINE_API AKRESULT PostTrigger(AkTriggerID in_triggerID, AkGameObjectID in_gameObjectID)
float AkReal32
32-bit floating point
AKSOUNDENGINE_API AKRESULT PinEventInStreamCache(AkUniqueID in_eventID, AkPriority in_uActivePriority, AkPriority in_uInactivePriority)
AKSOUNDENGINE_API void CancelEventCallbackGameObject(AkGameObjectID in_gameObjectID)
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,...
AKSOUNDENGINE_API AKRESULT SetActorMixerEffect(AkUniqueID in_audioNodeID, AkUInt32 in_uFXIndex, AkUniqueID in_shareSetID)
AKSOUNDENGINE_API AKRESULT RegisterCodec(AkUInt32 in_ulCompanyID, AkUInt32 in_ulCodecID, AkCreateFileSourceCallback in_pFileCreateFunc, AkCreateBankSourceCallback in_pBankCreateFunc)
AkUInt32 AkStateGroupID
State group ID.
Definition: AkTypedefs.h:41
bool bUseLEngineThread
Use a Wwise-owned thread for processing audio. If set to false, audio processing will occur only insi...
void(* AkOutputDeviceMeteringCallbackFunc)(AkOutputDeviceMeteringCallbackInfo *in_pCallbackInfo)
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)
AkUInt32 uMaxActiveWorkers[AK_NUM_JOB_TYPES]
The maximum number of concurrent workers that will be requested. Must be >= 1 for each jobType.
AkInt32 AkTimeMs
Time in ms.
Definition: AkTypedefs.h:43
AKSOUNDENGINE_API AKRESULT DecodeBank(const void *in_pInMemoryBankPtr, AkUInt32 in_uInMemoryBankSize, AkMemPoolId in_uPoolForDecodedBank, void *&out_pDecodedBankPtr, AkUInt32 &out_uDecodedBankSize)
const ::AkActionOnEventType AkActionOnEventType_Break
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...
Configured audio settings.
@ AkFloorPlane_XZ
The floor is oriented along the ZX-plane. The front vector points towards +Z, the up vector towards +...
AkUInt32 uContinuousPlaybackLookAhead
Default is 1 audio quantum, also known as an audio frame. Its size is equal to AkInitSettings::uNumSa...
AKSOUNDENGINE_API AKRESULT RemoveOutput(AkOutputDeviceID in_idOutput)
@ AkFloorPlane_Last
End of enum, invalid value.
bool bEnableGameSyncPreparation
Sets to true to enable AK::SoundEngine::PrepareGameSync usage.
AkUInt32 AkSwitchStateID
Switch ID.
Definition: AkTypedefs.h:59
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.
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)
AKSOUNDENGINE_API AKRESULT SetSidechainMixConfig(AkUniqueID in_sidechainMixId, AkChannelConfig in_channelConfig)
AkGroupType
Game sync group type.
Definition: AkEnums.h:117
Necessary settings for setting externally-loaded sources.
AkUInt32 uMemorySlabSize
Size of each memory slab used for job manager memory. Must be a power of two. Default is 8K.
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...
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.
const ::AkActionOnEventType AkActionOnEventType_ReleaseEnvelope
AKSOUNDENGINE_API AKRESULT UnregisterGameObj(AkGameObjectID in_gameObjectID)
AKSOUNDENGINE_API AKRESULT SetJobMgrMaxActiveWorkers(AkJobType in_jobType, AkUInt32 in_uNewMaxActiveWorkers)
@ AkMultiPositionType_MultiDirections
Simulate one sound coming from multiple directions. Useful for repositionning sounds based on wall op...
Definition: AkEnums.h:319
static const AkPlayingID AK_INVALID_PLAYING_ID
Invalid playing ID.
Definition: AkConstants.h:36
AKSOUNDENGINE_API AKRESULT SetContainerEffect(AkUniqueID in_audioNodeID, AkUInt32 in_uFXIndex, AkUniqueID in_shareSetID)
AKSOUNDENGINE_API AKRESULT RenderAudio(bool in_bAllowSyncRender=true)
AkJobMgrSettings settingsJobManager
Settings to configure the behavior of the Sound Engine's internal job manager.
Positioning information for a sound, with specified subset of its channels.
Definition: Ak3DObjects.h:390
AkMultiPositionType
Definition: AkEnums.h:316
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)
AkUInt32 AkPluginID
Source or effect plug-in ID.
Definition: AkTypedefs.h:50
AKSOUNDENGINE_API AKRESULT SetMultiplePositions(AkGameObjectID in_GameObjectID, const AkSoundPosition *in_pPositions, AkUInt16 in_NumPositions, AkMultiPositionType in_eMultiPositionType=AkMultiPositionType_MultiDirections, AkSetPositionFlags in_eFlags=AkSetPositionFlags_Default)
@ AkBankType_User
User-defined bank.
Definition: AkEnums.h:212
AkReal32 AkRtpcValue
Real time parameter control value.
Definition: AkTypedefs.h:61
Settings for the Sound Engine's internal job manager.
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)
AKSOUNDENGINE_API AKRESULT ResetBusConfig(AkUniqueID in_audioNodeID)
@ AkBankContent_Last
End of enum, invalid value.
AKRESULT(* AkBackgroundMusicChangeCallbackFunc)(bool in_bBackgroundMusicMuted, void *in_pCookie)
AKSOUNDENGINE_API AKRESULT UnregisterCaptureCallback(AkCaptureCallbackFunc in_pfnCallback, AkOutputDeviceID in_idOutput=AK_INVALID_OUTPUT_DEVICE_ID, void *in_pCookie=NULL)
AKSOUNDENGINE_API AkChannelConfig GetSpeakerConfiguration(AkOutputDeviceID in_idOutput=0)
AkPluginType
Definition: AkEnums.h:281
AKSOUNDENGINE_API AKRESULT GetAudioSettings(AkAudioSettings &out_audioSettings)
AkUInt32 uMediaSize
Size, in bytes, of the data to be set for the source.
AKSOUNDENGINE_API AKRESULT UnloadBank(const char *in_pszString, const void *in_pInMemoryBankPtr, AkBankType in_bankType=AkBankType_User)
@ Preparation_Last
End of enum, invalid value.
AKSOUNDENGINE_API AKRESULT AddOutputCaptureMarker(const char *in_MarkerText, AkUInt32 in_uSamplePos=AK_INVALID_SAMPLE_POS)
AkReal32 fGameUnitsToMeters
#define NULL
Definition: AkTypedefs.h:33
AkUInt32 AkTriggerID
Trigger ID.
Definition: AkTypedefs.h:66
AkUInt32 AkRtpcID
Real time parameter control ID.
Definition: AkTypedefs.h:60
AKSOUNDENGINE_API AKRESULT RegisterBusMeteringCallback(AkUniqueID in_busID, AkBusMeteringCallbackFunc in_pfnCallback, AkMeteringFlags in_eMeteringFlags, void *in_pCookie=NULL)
AKSOUNDENGINE_API void SetRandomSeed(AkUInt32 in_uSeed)
#define AK_CALLBACK(_type, _name)
const AkOSChar * szPluginDLLPath
When using DLLs for plugins, specify their path. Leave NULL if DLLs are in the same folder as the gam...
AkUInt32 uNumMemorySlabs
Number of memory slabs to pre-allocate for job manager memory. At least one slab per worker thread sh...
AKSOUNDENGINE_API void GetDefaultPlatformInitSettings(AkPlatformInitSettings &out_platformSettings)
AKSOUNDENGINE_API AKRESULT TryUnsetMedia(AkSourceSettings *in_pSourceSettings, AkUInt32 in_uNumSourceSettings, AKRESULT *out_pUnsetResults)
@ AkGlobalCallbackLocation_BeginRender
Start of frame rendering, after having processed game messages.
AKSOUNDENGINE_API AKRESULT GetSourcePlayPosition(AkPlayingID in_PlayingID, AkTimeMs *out_puPosition, bool in_bExtrapolate=true)
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 ResetGlobalValues()
AKSOUNDENGINE_API AKRESULT SetBusEffect(AkUniqueID in_audioNodeID, AkUInt32 in_uFXIndex, AkUniqueID in_shareSetID)
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)
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)
AKRESULT
Definition: AkEnums.h:32
AKSOUNDENGINE_API AKRESULT SetOfflineRendering(bool in_bEnableOfflineRendering)
AKSOUNDENGINE_API AKRESULT LoadBankMemoryCopy(const void *in_pInMemoryBankPtr, AkUInt32 in_uInMemoryBankSize, AkBankID &out_bankID)
AkSetPositionFlags
Flags to independently set the position of the emitter or listener component on a game object.
Definition: AkEnums.h:327
AKSOUNDENGINE_API AKRESULT SetPanningRule(AkPanningRule in_ePanningRule, AkOutputDeviceID in_idOutput=0)
uint64_t AkUInt64
Unsigned 64-bit integer.
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)
AkUInt32 AkStateID
State ID.
Definition: AkTypedefs.h:40
AKSOUNDENGINE_API AKRESULT Suspend(bool in_bRenderAnyway=false, bool in_bFadeOut=true)
static const AkUInt32 AK_NUM_JOB_TYPES
Number of possible job types recognized by the Sound Engine.
Definition: AkConstants.h:70
void(* AkGlobalCallbackFunc)(AkGlobalPluginContextPtr in_pContext, enum AkGlobalCallbackLocation in_eLocation, void *in_pCookie)
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...
AK::IAkPluginParam *(* AkCreateParamCallback)(AK::IAkPluginMemAlloc *in_pAllocator)
Registered plugin parameter node creation function prototype.
Definition: IAkPlugin.h:1381
AKSOUNDENGINE_API AKRESULT ResetListenersToDefault(AkGameObjectID in_emitterGameObj)
@ AkCurveInterpolation_Linear
Linear (Default)
Definition: AkEnums.h:192
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.
AKSOUNDENGINE_API AKRESULT SendPluginCustomGameData(AkUniqueID in_busID, AkGameObjectID in_gameObjectID, AkPluginType in_eType, AkUInt32 in_uCompanyID, AkUInt32 in_uPluginID, const void *in_pData, AkUInt32 in_uSizeInBytes)
AKSOUNDENGINE_API AKRESULT SetMedia(AkSourceSettings *in_pSourceSettings, AkUInt32 in_uNumSourceSettings)
AKSOUNDENGINE_API void CancelBankCallbackCookie(void *in_pCookie)
const ::AkActionOnEventType AkActionOnEventType_Last
@ AkFloorPlane_YZ
The floor is oriented along the YZ-plane. The front vector points towards +Y, the up vector towards +...
AkTimeMs msTime
Position of the source (in ms) associated with that playing item.
static const AkUniqueID AK_INVALID_UNIQUE_ID
Invalid unique 32-bit ID.
Definition: AkConstants.h:34
void * BGMCallbackCookie
Application-defined user data for the audio source change event callback function.
void(* AkBusCallbackFunc)(struct AkSpeakerVolumeMatrixCallbackInfo *in_pCallbackInfo, void *in_pCookie)
@ AkSetPositionFlags_Default
Default: set both emitter and listener component positions.
Definition: AkEnums.h:331
AkUniqueID sourceID
Source ID (available in the SoundBank content files)
uint32_t AkUInt32
Unsigned 32-bit integer.
bool bUseSoundBankMgrThread
Use a Wwise-owned thread for loading sound banks. If set to false, bank-loading will occur only insid...
AkUniqueID mediaID
Media ID of playing item. (corresponds to 'ID' attribute of 'File' element in SoundBank metadata file...
Definition: AkMidiTypes.h:235
AkUInt32 AkBankType
Run time bank type.
Definition: AkTypedefs.h:63
bool bDebugOutOfRangeCheckEnabled
Debug setting: Enable checks for out-of-range (and NAN) floats in the processing code....
AkUniqueID audioNodeID
Audio Node ID of playing item.
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)
AkInt8 AkPriority
Priority.
Definition: AkTypedefs.h:54
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 ...
AKSOUNDENGINE_API AKRESULT ClearPreparedEvents()
Return values for GetSourcePlayPositions.
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()
AkUInt32 uCommandQueueSize
Size of the command queue, in bytes.
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:1379
AKSOUNDENGINE_API AKRESULT PrepareBus(PreparationType in_PreparationType, const char **in_ppszString, AkUInt32 in_uBusses)
AKSOUNDENGINE_API AkUInt64 GetSampleTick()
AKSOUNDENGINE_API AK::IAkGlobalPluginContext * GetGlobalPluginContext()
AkReal32 fStreamingLookAheadRatio
Multiplication factor for all streaming look-ahead heuristic values, for music streams.
IAkSoftwareCodec *(* AkCreateBankSourceCallback)(void *in_pCtx)
Registered bank source node creation function prototype.
#define AK_INVALID_SAMPLE_POS
Definition: AkConstants.h:159
AkFloorPlane
AKSOUNDENGINE_API AKRESULT SetBusConfig(AkUniqueID in_audioNodeID, AkChannelConfig in_channelConfig)
AKSOUNDENGINE_API bool GetBackgroundMusicMute()
AkUInt64 AkOutputDeviceID
Audio Output device ID.
Definition: AkTypedefs.h:72
AkSpeakerVolumesMatrixPtr VectorPtr
Definition: AkTypedefs.h:103
AkUInt32 AkPlayingID
A unique identifier generated whenever a PostEvent is called (or when a Dynamic Sequence is created)....
Definition: AkTypedefs.h:42
void(* AkProfilerPushTimerFunc)(AkPluginID in_uPluginID, const char *in_pszZoneName)
AkProfilerPushTimerFunc fnProfilerPushTimer
External (optional) function for tracking performance of the sound engine that is called when a timer...
AKSOUNDENGINE_API void StopPlayingID(AkPlayingID in_playingID, AkTimeMs in_uTransitionDuration=0, AkCurveInterpolation in_eFadeCurve=AkCurveInterpolation_Linear)
AkActionOnEventType
Definition: AkEnums.h:349
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...
IAkSoftwareCodec *(* AkCreateFileSourceCallback)(void *in_pCtx)
Registered file source creation function prototype.
AkUInt32 uBankReadBufferSize
The number of bytes read by the BankReader when new data needs to be loaded from disk during serializ...
AKSOUNDENGINE_API AKRESULT RemoveListener(AkGameObjectID in_emitterGameObj, AkGameObjectID in_listenerGameObj)
void(* AkDeviceStatusCallbackFunc)(AkGlobalPluginContextPtr in_pContext, AkUniqueID in_idAudioDeviceShareset, AkUInt32 in_idDeviceID, enum AkAudioDeviceEvent in_idEvent, enum AKRESULT in_AkResult)
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 page

Tell 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