Thread Tools Display Modes
09-13-22, 07:37 AM   #1
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
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.
__________________
Zax - Addons List, not all maintained.
  Reply With Quote
09-13-22, 08:14 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,930
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.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
09-13-22, 09:31 AM   #3
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
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 - Addons List, not all maintained.

Last edited by Zax : 09-14-22 at 01:29 AM.
  Reply With Quote
10-28-22, 05:43 AM   #4
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
I got the solution from RicochetRita:

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()
__________________
Zax - Addons List, not all maintained.
  Reply With Quote

WoWInterface » PTR » PTR General Discussion » AudioOptionsFrame_AudioRestart() non longer works?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off