版本

menu_open
警告:系统已根据您所用大版本 (2023.1.8.8601) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2023.1.8
AkInitSettings结构体 参考

#include <AkSoundEngine.h>

Public 属性

AkAssertHook pfnAssertHook
 External assertion handling function (optional) 更多...
 
AkUInt32 uMaxNumPaths
 Maximum number of paths for positioning 更多...
 
AkUInt32 uCommandQueueSize
 Size of the command queue, in bytes 更多...
 
bool bEnableGameSyncPreparation
 Sets to true to enable AK::SoundEngine::PrepareGameSync usage. 更多...
 
AkUInt32 uContinuousPlaybackLookAhead
 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. 更多...
 
AkUInt32 uNumSamplesPerFrame
 Number of samples per audio frame (256, 512, 1024, or 2048). 更多...
 
AkUInt32 uMonitorQueuePoolSize
 Size of the monitoring queue, in bytes. This parameter is not used in Release build. 更多...
 
AkUInt32 uCpuMonitorQueueMaxSize
 Maximum size of the CPU monitoring queue, per thread, in bytes. This parameter is not used in Release build. 更多...
 
AkOutputSettings settingsMainOutput
 Main output device settings. 更多...
 
AkJobMgrSettings settingsJobManager
 Settings to configure the behavior of the Sound Engine's internal job manager 更多...
 
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) 更多...
 
bool bUseSoundBankMgrThread
 Use a separate thread for loading sound banks. Allows asynchronous operations. 更多...
 
bool bUseLEngineThread
 Use a separate thread for processing audio. If set to false, audio processing will occur in RenderAudio(). 优化 CPU 用量 更多...
 
AkBackgroundMusicChangeCallbackFunc BGMCallback
 Application-defined audio source change event callback function. 更多...
 
void * BGMCallbackCookie
 Application-defined user data for the audio source change event callback function. 更多...
 
const AkOSCharszPluginDLLPath
 When using DLLs for plugins, specify their path. Leave NULL if DLLs are in the same folder as the game executable. 更多...
 
AkFloorPlane eFloorPlane
 
AkReal32 fGameUnitsToMeters
 
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. 更多...
 
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. 更多...
 
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. 更多...
 
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) 更多...
 
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) 更多...
 
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) 更多...
 

详细描述

Platform-independent initialization settings of the sound engine

参见

在文件 AkSoundEngine.h221 行定义.


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅