Lucky Posted May 24, 2014 Share Posted May 24, 2014 In the documentation I cant find audio class but there is a sound class.In the examples they use audio Whats the deal? Link to comment Share on other sites More sharing options...
Lucky Posted May 25, 2014 Author Share Posted May 25, 2014 When should I use add.audio and when should I use add.sound whats the soundManager and when should I use that? there is no example of the sound class way? Link to comment Share on other sites More sharing options...
David Posted May 26, 2014 Share Posted May 26, 2014 There isn't any difference. They have the same definition (since that's the case, I think one should just be a assigned as an alias for the other as opposed to duplicating). If you look at the code you will see "audio" here: audio: function (key, volume, loop, connect) { return this.game.sound.add(key, volume, loop, connect); },and sound: sound: function (key, volume, loop, connect) { return this.game.sound.add(key, volume, loop, connect); }, Link to comment Share on other sites More sharing options...
tmifx Posted May 26, 2014 Share Posted May 26, 2014 I used AudioElement for sound background.For the effects I used AudioContext but it doesn't work everywhere . Link to comment Share on other sites More sharing options...
Recommended Posts