Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page. Support for Strata library starts on our Community Q&A.

How to disable 3D Audio at runtime ?

0 votes
Hi everyone,

 

I successfully customize audio device with the ReplaceOutput() function but one thing is still remaining. Whatever I configure my AkChannelConfig, my output channel configuration remains in AkChannelConfigType::Object and not back to Standard.

Basically, how can I turn off Allow 3D Audio of my Audio Device Shareset with the Wwise SDK ?

It seems there is no way to do that outside of Wwise application and I want to let my user the opportunity to turn off 3D Audio inside my application.

 

Best regards everyone,

 

Alex
asked May 5, 2021 in General Discussion by Alexandre M. (100 points)
Up. That would help us as well.

1 Answer

0 votes

The simplest way to toggle 3D Audio is to have 2 audio device ShareSets in your Wwise project, each with either 3D Audio on or off.
The in-game toggle would then switch to the appropriate Audio Device ShareSet using AK::SoundEngine::ReplaceOutput.
If, however, the host the application is running on does not support 3D Audio, both options will behave the same.

For completeness, here are settings influencing the enablement of 3D Audio at runtime:

  1. A channel configuration override can be specified through AkOutputSettings.
  2. A limit on the amount of audio objects that can be used by Wwise can be specified in the Windows-specific platform initialization settings via the uMaxSystemAudioObjects member. A value of 0 "disable[s] the use of System Audio Objects".

For more details, see https://www.audiokinetic.com/en/library/edge/?source=SDK&id=windows_specificinfo.html#Windows_Enabling_3DAudio

answered Nov 25, 2022 by Samuel L. (Audiokinetic) (19,450 points)
...