Hi! I am looking into an issue where the game I work on changes the sample rate of Mac's default device (which is configurable in Applications/Utilities/Audio MIDI Setup). According to your documentation here it states:
By default on Mac, Wwise takes the system default device's configuration.
From my personal testing I have not been able to verify that this actually happens. If I set the default system sample rate to 96 kHz and start up my game then it always ends up changing it to 48kHz unless I override uSampleRate to be 96000. I have tried initializing the sound engine in two ways, which both changed the system's sample rate to 48kHz on my mac running BigSur, version 11.2.3.
The first method I tried was:
AK::SoundEngine::Init( NULL, NULL )
And the second method I tried was:
AkInitSettings initSettings;
AkPlatformInitSettings platformInitSettings;
AK::SoundEngine::GetDefaultInitSettings( initSettings );
AK::SoundEngine::GetDefaultPlatformInitSettings( platformInitSettings );
AK::SoundEngine::Init( &initSettings, &platformInitSettings )
Both of these methods changed the default sample rate from 96kHz to 48kHz. The only way I could get the default audio device to stay at 96kHz was by modifying platformInitSettings like so:
platformInitSettings.uSampleRate = 96000;
According to your documentation, I would have expected passing in NULL to AK::SoundEngine::Init to give me the system's default settings. I would like clarification if that should be the case and this should be considered a defect or if I just need to get the sample rate myself through core audio. Thanks! :)