Thread Tools Display Modes
10-31-12, 12:15 AM   #1
Trololol
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2012
Posts: 13
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?
  Reply With Quote
10-31-12, 03:55 AM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
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?
  Reply With Quote
10-31-12, 05:27 AM   #3
Trololol
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2012
Posts: 13
Originally Posted by Dridzt View Post
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?
Yes, they're set to MP3. I have also re-encoded them as OGG, but the same issue occurs.
  Reply With Quote
10-31-12, 03:59 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
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...
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
10-31-12, 04:28 PM   #5
Trololol
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2012
Posts: 13
Originally Posted by Phanx View Post
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...
I was updating a piano addon that I had made/modified myself in WoTLK from the code structure of The Bokenspeil. I had a demo that could be played on the piano to test broadcasting between different players, however after renewing my subscription I found that it now rarely plays any of the keys or input from keys. What I did was modify the mp3 length to 1.2 secs and under (for higher keys), that helps a bit but it still has not solved the issue.
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.
  Reply With Quote
11-01-12, 07:11 PM   #6
Trololol
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2012
Posts: 13
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
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » PlaySoundFile() limitations


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