Jump to content

Overlapping Sound FX in IE


Nick
 Share

Recommended Posts

I'm using a single Phaser.Sound instance with markers ( audio sprite ) to handle SoundFX in my game. Calling play() repeatedly works well in Chrome and FF. In IE however, a sound that is still playing gets cut-off when play() is called again. 

 

I'm guessing this is because IE does not support web audio.  Has anyone had success in playing overlapping sound FX in IE11? 

Link to comment
Share on other sites

I've been able to get around this by loading in multiple sounds that point to the same file. e.g. 

 

game.load( 'sound-0', 'sounds.mp3' );
game.load( 'sound-1', 'sounds.mp3' );
game.load( 'sound-2', 'sounds.mp3' );
game.load( 'sound-3', 'sounds.mp3' );

 

However I'm not sure this is the cleanest way to achieve this...

 

Is there a way to call load once then add new sounds that have a different key but use the same file?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...