版本

menu_open
Wwise SDK 2019.1.11

◆ GetSpeakerConfiguration()

AKSOUNDENGINE_API AkChannelConfig AK::SoundEngine::GetSpeakerConfiguration ( AkOutputDeviceID  in_idOutput = 0 )

Gets the output speaker configuration of the specified output. Call this function to get the speaker configuration of the output (which may not correspond to the physical output format of the platform, in the case of downmixing provided by the platform itself). You may initialize the sound engine with a user-specified configuration, but the resulting configuration is determined by the sound engine, based on the platform, output type and platform settings (for e.g. system menu or control panel option).

It is recommended to call GetSpeakerConfiguration anytime after receiving a callback from RegisterAudioDeviceStatusCallback to know if the channel configuration has changed.

警告
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.
返回
The output configuration. An empty AkChannelConfig AkChannelConfig::IsValid() == false if device does not exist.
参见
参数
in_idOutput Output ID to set the bus on. As returned from AddOutput or GetOutputID. You can pass 0 for the main (default) output

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅