WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR General Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=172)
-   -   AudioOptionsFrame_AudioRestart() non longer works? (https://www.wowinterface.com/forums/showthread.php?t=59217)

Zax 09-13-22 07:37 AM

AudioOptionsFrame_AudioRestart() non longer works?
 
Hello,

SoundManager, one of my addon uses this code in 9.x version to change the sound output device:
Lua Code:
  1. SetCVar("Sound_OutputDriverIndex", integer)
  2. AudioOptionsFrame_AudioRestart()

On PTR 10, AudioOptionsFrame_AudioRestart() raises the following error:
Code:

Interface/AddOns/SoundManager/SoundManager.lua:413: attempt to call global 'AudioOptionsFrame_AudioRestart' (a nil value)
Thank you for your help.

Xrystal 09-13-22 08:14 AM

Took me loading up wow to see what it says on the options there ..

C_VoiceChat.SetOutputDevice(deviceID) is linked to the code that displays the Voice Chat Output Device option with deviceID being a string

However, looking at the Audio file itself ( https://github.com/Gethe/wow-ui-sour...ions/Audio.lua ) it doesn't look like there is a SetOutputDevice function for game audio in general.

Zax 09-13-22 09:31 AM

Thank you Xrystal.

Well, after more tests without any addons and using the built-in UI, changing the output device in the Options -> Audio doesn't do anything... :(
Maybe the feature is not running yet.

Zax 10-28-22 05:43 AM

I got the solution from RicochetRita:

Quote:

Just a heads up, as of Dragonflight pre-patch 10.0.0, the AudioOptionsFrame no longer exists.
So this reset method no longer works: AudioOptionsFrame_AudioRestart()

However, this command will now reset the audio device: Sound_GameSystem_RestartSoundSystem()


All times are GMT -6. The time now is 04:44 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI