BROKEN: PlayMusic not responding in 2.2.

#0 - Sept. 25, 2007, 7:22 p.m.
Blizzard Post
It was nice enough that I logged on today without any errors from my addons at all. Was happy about that. But to my disappointment it seems that with a recent change to the sound options and apparently some behind-the-scenes sound changes the API PlayMusic() has broken.

I have everything enabled in the sound options. I played around with various settings and I just can't get it.

I tried playing music from an addon and nothing. No sound came through at all. I tried running PlayMusic(...) through the chat and once again nothing. I double- and triple-checked that I had the correct path. Nothing.

Was there some stealth change to the API or is this just a common mistake?

Edit: Nevermind. I see the issue was with a changed CVar name. It's fixed. And I also see you stopped crossfading for custom music. Nice touch. Thanks a bunch for that. =)
#2 - Sept. 26, 2007, 12:13 a.m.
Blizzard Post
Have you tracked this down any more?

From our sound engineer:

Hmm. This seems to work just fine in my tests. I can play an mp3 that’s in my bin directory with

PlayMusic(“mymusic.mp3”);

And for a more interesting test I put another mp3 in an addon directory. The following call works just fine:

PlayMusic(“interface\\addons\\myaddon\\mymusic2.mp3”);



One thing to note, the sound file must exist at the time WoW launches. If you copy the file there after WoW is already running, it will not be able to find the file. I noticed that using the forward slash doesn’t work… i.e.

PlayMusic(“interface/addons/myaddon/mymusic2.mp3”);

Will NOT work…
#4 - Sept. 26, 2007, 1:23 a.m.
Blizzard Post
More from the sound engineer:

Another thing to double check is that the user is using two backslashes between folder names like “folder1\\folder2\\mymusic.mp3”, NOT “folder1\folder2\mymusic.mp3”. Also, make absolutely sure the mp3 or wav file works in windows media player. Maybe the sound file is corrupt.
#16 - Sept. 26, 2007, 5:25 p.m.
Blizzard Post
Has anyone narrowed down what's preventing the sounds from being played? We aren't able to reproduce it here, and it sounds like fiddling with things "fixes" it... but I'd like to know if anyone figured out what's causing it.
#32 - Sept. 27, 2007, 4:29 p.m.
Blizzard Post
My hunch is this has to do with the priority of sounds, which is being reworked in 2.3.

Someone mentioned events where the sounds would and would not play, is that because there's another UI sound being played at the same time?
#33 - Sept. 27, 2007, 4:31 p.m.
Blizzard Post
Is the problem improved if you increase the number of sound channels?