vCompedia Posted February 8, 2015 Share Posted February 8, 2015 hi, I'm using both phaserjs and popcornjs in my game (popcornjs play sounds in html audio tag). while playing, sometimes the phaser sounds stop working. it's recognize all the events and it's seems like the sound is plying however no sound can be heard. Once it's happen, I do not hear any phaser sound anymore (only when I refresh the game I hear them again) . popcorn (html) sounds always work. I thought maybe the combination of using both phaser and html to play the game audio can be the problem. any idea? Link to comment Share on other sites More sharing options...
rich Posted February 8, 2015 Share Posted February 8, 2015 Why are you using both? Link to comment Share on other sites More sharing options...
vCompedia Posted February 9, 2015 Author Share Posted February 9, 2015 the game is divided in several parts. The first one is karaoke so I needed popcorn. The other parts are just regular levels based on the karaoke song so I used phaser. for now, the only solution I can think about is to change all the sounds to be html audio. Obviously it will take me forever to do so, so I was trying to avoid it .. Link to comment Share on other sites More sharing options...
rich Posted February 9, 2015 Share Posted February 9, 2015 Ok that makes more sense. Do you need to use popcorn AND phaser at the same time? Or could you just use popcorn entirely for the first part of the game, then swap to Phaser for the others? My guess is you've run out of available audio contexts / channels, so it goes silent. Link to comment Share on other sites More sharing options...
vCompedia Posted February 10, 2015 Author Share Posted February 10, 2015 ok thank you! If that's what happen, what is the solution for it? I changed all the sounds to be html and now it works fine. However I would like to know for next projects. Link to comment Share on other sites More sharing options...
Recommended Posts