PlaySoundFile() limitations
I had an old addon that I have used since Wrath of the Lich King. It still works perfectly fine, however it seems like I can now only play about ~6 sounds at any given time with the function PlaySoundFile. I made a macro that played 3 sound files, and I could only press it twice at a time. This limit as far as I know has only been introduced since Cataclysm.
With developing addons that require more than 6 sounds played at a given time, is there any way this limit can be changed at all? |
Sounds more like a sound format problem than a number of sounds problem.
Are all the sounds (I'm assuming it's custom sounds and not game sounds) in the same format? |
Quote:
|
I'm not aware of any limitation on the number of sounds that may be played at once, but it would not surprise me at all to learn that there was one. Why on earth do you need to play more than 6 sounds at a time? I can't even imagine why you would need to play more than maybe 2 sounds at a time...
|
Quote:
I'm pretty sure I have a video on one of my old HDDs lying around of my piano addon back in WoTLK. If I can find one I'll upload it for comparison purposes. |
Here's the video if anyone is interested on how it was like back in WoTLK
http://www.youtube.com/watch?v=T8r-8t-M6-E |
Tried playing a few sounds, and pretty sure I had 9 playing at the same time, which was the number of sounds triggered. Maybe your settings are limiting it to play a maximum of 6 at a time? (Though the "Low" option says 24 channels will be used, the other 18 channels could be in use?)
|
Quote:
Just for comparison, I uploaded what it sounds like now http://www.youtube.com/watch?v=FcATl7fMlvE |
The only difference that I can think of then is that I used ogg files instead of mp3. But that shouldn't make a difference (couldn't hurt trying though).
|
Quote:
|
Does someone mind checking if anything has changed with the PlaySoundFile at all? I haven't been playing WoW for over a year and am just curious if it still has the same limitations.
|
for the WoD beta PlaySoundFile is broken, Blizzard was made aware of this a few weeks ago..
and as of latest build it appears to be working again |
Really impressed with the piano skills. :)
|
Is this broken again on Live/Beta? I have tried playing custom sounds in several formats (.wav, .mp4, .ogg) and while PlaySoundFile returns true for willPlay and a number for soundHandle I never actually hear anything.
Edit: I can hear sounds played from the "Sounds\\..." folder. Quote:
|
note that only .ogg and .mp3 formats are supported.
example from CensusPlus addon.. PlaySoundFile("Interface\\AddOns\\CensusPlus\\Sounds\\CensusComplete1.ogg") |
Based on other forum posts it sounds like support for .mp3 files has been unofficially dropped, and you should use .ogg files instead. Honestly I'm not sure why anyone is still using .mp3 files in addons, as it was pretty strongly implied years ago when they introduced .ogg support and switched all the game's own sounds over to .ogg that they were going to drop .mp3 at some point. Monkey see, monkey do, I guess. :p
|
Sound\\Creature\\Peon\\PeonWhat4.wav still works.
|
Supposedly the issues with sound have been fixed with 6.0.3.
Quote:
|
Quote:
Also if you do a conversion mp3 is far more superior to keep the rms volumes at higher bitrates, aka you won't loose that much of the original song. Most likely if you don't have a proper sound system, or you just not that much a quality addict, or you don't have the ears for it, then you won't notice this. |
Quote:
|
All times are GMT -6. The time now is 11:10 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI