Get your own customer support community
 

cannot create a sound with ID of zero

If you call createSound({id: 0, ...}) the sound will not be created. Note the ID of zero. Why would you create a sound with an ID of zero? For me, it was because I was looping through an array of soundfiles and 0 was the index of the first sound. It seems like a suitable ID number. This took me a long time to debug!

There are a few options for a solution. Fix the code so that it can handle an ID of zero. If that's too hard simply throw an exception if _tO.id === 0

ps. thanks for a great piece of open source software. I've been using sound manager for quite a while and have not had to submit an issue until now :)
 
indifferent I’m confused
Inappropriate?
1 person has this problem

The company marked this problem solved.


User_default_medium