valueerror Posted November 22, 2014 Share Posted November 22, 2014 i tried different songs in different file formats (mp3,wav, ogg) music = game.add.audio('theme',1,true); // key, volume, loop music.play('',0,1,true); //marker, position, volume, loop, forceRestartmp3 is not played at all and with wav or ogg the bug is the same.. i also tried playing the music withgame.sound.play('theme',0.4);and it jumps too... (it sounds like a damaged cd but only on the first note - the first 200ms are played twice) all the other sounds (the short ones) don't have this problem.. i have no idea what to do - it seems that the file length is somehow a source of the problem (my audio file is a 30sec loop so it's not that long) thx in advance! Link to comment Share on other sites More sharing options...
valueerror Posted November 22, 2014 Author Share Posted November 22, 2014 so after an hour of testing i could pinpoint the problem: cocoonjs doubles the first 200ms of EVERY sound.. no matter what.. AND cuts of the last 200ms of the audio file i just didn't hear it because there is silence on every other audio file i own on the beginning for at least 500ms.. this is definitely a bug IMHO.. the solution is to add 200ms silence but then the loop is broken.. damn Mariusz 1 Link to comment Share on other sites More sharing options...
Mariusz Posted November 23, 2014 Share Posted November 23, 2014 so after an hour of testing i could pinpoint the problem: cocoonjs doubles the first 200ms of EVERY sound.. no matter what.. AND cuts of the last 200ms of the audio file i just didn't hear it because there is silence on every other audio file i own on the beginning for at least 500ms.. this is definitely a bug IMHO.. the solution is to add 200ms silence but then the loop is broken.. damn Same problem here. Link to comment Share on other sites More sharing options...
valueerror Posted December 3, 2014 Author Share Posted December 3, 2014 i've asked ludei for help in this thread and this is the answer:http://www.html5gamedevs.com/topic/3980-common-phaser-cocoonjs-issues/?p=63288 looks like there is no fix for this right now.. that's really bad.. i hope @rich has an idea on this... ludei proposed a workaround but i honestly don't know how to do this Link to comment Share on other sites More sharing options...
tips4design Posted August 16, 2015 Share Posted August 16, 2015 Same problem. Any news? Link to comment Share on other sites More sharing options...
sdgsgsdfgfdg Posted December 5, 2015 Share Posted December 5, 2015 asdf Link to comment Share on other sites More sharing options...
Recommended Posts