在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

Cannot switch the output device.

0 投票

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!

 

最新提问 4月 3, 2023 分类:General Discussion | 用户: Sergey E. (230 分)
修改于 4月 3, 2023 用户:Sergey E.

Please sign-in or register to answer this question.

...