menu
 
版本
2017.1.9.6501

2024.1.3.8749

2023.1.11.8682

2022.1.18.8567

2021.1.14.8108

2019.2.15.7667

2019.1.11.7296

2018.1.11.6987

2017.2.10.6745

2017.1.9.6501

2016.2.6.6153

2015.1.9.5624


menu_open

AkInitSettings结构参考

所有成员的列表。

公有属性

AkAssertHook  pfnAssertHook
  External assertion handling function (optional).
AkUInt32  uMaxNumPaths
  Maximum number of paths for positioning.
AkUInt32  uDefaultPoolSize
  Size of the default memory pool, in bytes.
AkReal32  fDefaultPoolRatioThreshold
  0.0f to 1.0f value: The percentage of occupied memory where the sound engine should enter in Low memory Mode. 定义内存阈值
AkUInt32  uCommandQueueSize
  Size of the command queue, in bytes.
AkMemPoolId  uPrepareEventMemoryPoolID
  Memory pool where data allocated by AK::SoundEngine::PrepareEvent() and AK::SoundEngine::PrepareGameSyncs() will be done.
bool  bEnableGameSyncPreparation
  Set 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  uMonitorPoolSize
  Size of the monitoring pool, in bytes. This parameter is not used in Release build.
AkUInt32  uMonitorQueuePoolSize
  Size of the monitoring queue pool, in bytes. This parameter is not used in Release build.
AkOutputSettings  settingsMainOutput
  Main output device settings.
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(). Ignored on Vita. 音频渲染的自定义调度.
AkBackgroundMusicChangeCallbackFunc  BGMCallback
  Application-defined audio source change event callback function.
void *  BGMCallbackCookie
  Application-defined user data for the audio source change event callback function.
AkOSChar szPluginDLLPath
  When using DLLs for plugins, specify their path. Leave NULL if DLLs are in the same folder as the game executable.

详细描述

Platform-independent initialization settings of the sound engine

参见:

在文件AkSoundEngine.h131行定义。


该结构的文档由以下文件生成:

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅