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

Cannot switch the output device.

0 votes

Hello,

We have trouble with switching the output device. Unity 2020.3.33f1, Wwise 2019.1.11.

We were using AkSoundEngine.ReplaceOutput(new AkOutputSettings("System"), id); to replace output, where id - uint, which we got by looping through devices with AkSoundEngine.GetWindowsDeviceName(index, out uint uid).
As a result, we got the AK_DeviceNotFound error message with any ids, except 0.
We also tried to get the ulong id with  AkSoundEngine.GetOutputID(shareId, deviceId), where shareId getting by AkSoundEngine.GetDeviceIDFromName or AkSoundEngine.GetIDFromString, but no luck.
Also, we couldn't use the AkSoundEngine.SetBusDevice, it responded with AK_IDNotFound no matter which string we used for busName.

update: We are doing everything just like in the code form samples. Event ReplaceOutput returns success mark. But the audio output device still remains the same. Any idea why this happens?

 image


How exactly should we use the ReplaceOutput and how to get proper id of the output device?
Which name of audio bus should we use to be able to set bus device?

Thank you!

 

asked Apr 3, 2023 in General Discussion by Sergey E. (230 points)
edited Apr 3, 2023 by Sergey E.

Please sign-in or register to answer this question.

...