PlaySound() behavior changed in 7.3.0?
I noticed several changes in Ace3 and most of those are related to PlaySound.
For example, PlaySound("igMainMenuOptionCheckBoxOn") has been changed to PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON) in Blizzard's frame codes. Ace3's solution is changed it to below: PlaySound(PlaySoundKitID and "igMainMenuOptionCheckBoxOn" or 856) Does anyone has some more details regarding to this change? |
Found this one:
https://www.townlong-yak.com/framexm...tConstants.lua |
Looks like the API PlaySoundKitID has been removed from 7.3.0
|
PlaySound() will now only accept soundkit IDs.
|
Quote:
|
Oh I see it doesn't take a path anymore but a number.
I take it this will break AceGUI-3.0-SharedMediaWidgets and LibSharedMedia? |
They're fully converting to numbers from strings, not entirely unlike what they're trying with textures -- it looks like they retired the old PlaySound() and reused the name for PlaySoundKitID().
PlaySoundKitID() -- Removed PlaySound() -- only accepts numbers SOUNDKIT{} -- table with numbers, found in SoundKitConstants.lua (example linked in original post) (nb: it may not be complete) Lua Code:
Lua Code:
For the most part, the SOUNDKIT entries are similar to the text names though with more underscores. If you want to seamlessly update, you can do what arith pointed out in the latest Ace3: Lua Code:
Lua Code:
|
What about custom sounds? weak auras, raven and other mods have a lot of those
|
Quote:
|
All times are GMT -6. The time now is 08:34 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI