Rocco Posted April 15, 2014 Share Posted April 15, 2014 so i have this in the preloader: // AUDIO this.load.audio('rot_sound', 'audio/tap.wav'); this.load.audio('rem_sound', 'audio/sound3.ogg'); this.load.audio('titleMusic', 'audio/main_menu.mp3');It works fine in FF and Chrome, but in IE i get this errormessage,when i try to load an *.wav or *.ogg file. (mp3 is working) Phaser.Loader error loading file: rem_sound from URL nullPhaser.Loader error loading file: rot_sound from URL null So the mp3 is playing but not the others.Phaser.Cache.getSound: Invalid key: "rot_sound"Phaser.Cache.getSound: Invalid key: "rem_sound" i have no idea how to solve this issue,thanks for help. Link to comment Share on other sites More sharing options...
rich Posted April 15, 2014 Share Posted April 15, 2014 IE can't play ogg files, hence the error - and you didn't provide a fallback format so it can't load anything. Here is how to specify one:game.load.audio('sfx', [ 'assets/audio/SoundEffects/fx_mixdown.mp3', 'assets/audio/SoundEffects/fx_mixdown.ogg' ]);The formats in the array are checked in order until it finds one it can load. xdiepx and jpdev 2 Link to comment Share on other sites More sharing options...
xdiepx Posted April 16, 2014 Share Posted April 16, 2014 You can use Audacity to covert your audio and put it in the way Rich mention. That is how I am doing it and IE works well with mp3. Link to comment Share on other sites More sharing options...
Rocco Posted April 16, 2014 Author Share Posted April 16, 2014 thank you for answering. Ok no *.ogg file for IE, but *.wav files are also not working in IE.Is this also "normal" IE behavior? Link to comment Share on other sites More sharing options...
rich Posted April 16, 2014 Share Posted April 16, 2014 Yes. Link to comment Share on other sites More sharing options...
rich Posted April 16, 2014 Share Posted April 16, 2014 Here, this test page is super useful: http://hpr.dogphilosophy.net/test/ Try it in IE and Rocco 1 Link to comment Share on other sites More sharing options...
Rocco Posted April 16, 2014 Author Share Posted April 16, 2014 wow, yes that's really shattering. I never use IE, but the guy who help me with the music has only IE installed, so i was wondering why nothing works on his pc,.... Link to comment Share on other sites More sharing options...
tijuinem Posted February 19, 2015 Share Posted February 19, 2015 hiif I use :game.load.audio('sfx', [ 'assets/audio/SoundEffects/fx_mixdown.mp3', 'assets/audio/SoundEffects/fx_mixdown.ogg' ]);works fine online, included "iexplorer" but, windows phone mobile does not work. It just work with "ogg" file.Does it correct ? Link to comment Share on other sites More sharing options...
Recommended Posts