PlaySoundFile() Not Working

I’ve noticed recently that I can no longer play some in-game sounds using PlaySoundFile().

For example, if I was to type /script PlaySoundFile(“Sound\Character\PlayerRoars\CharacterRoarsGnomeMale.ogg”) nothing would happen.

I’m sure this was working a few days ago; has there been a change to the API that I’m not aware of, or has Blizzard changed the way sounds are organised?

It was changed in 8.2.0, try /run PlaySoundFile(542506)
https://wow.gamepedia.com/API_PlaySoundFile

Damn it all, this is extremely inconvenient for me; I’ve got an addon which makes use of loads of in-game sounds; having to change hundreds of lines of code to use this method is not going to be fun.

EDIT: Whoops, forgot to change characters.

If you have a simple list of sound paths I could try to convert them for you

I did something similar for muting sounds
https://github.com/ketho-wow/MuteAnnoying/blob/master/Converter/main.lua

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.