binyan Posted April 27, 2015 Share Posted April 27, 2015 When looping audio in Chrome (using BABYLON.Sound), the audio only being played once and then being stopped. In Firefox everything works as expected.First I experienced this issue in my project, then I checked the playground demo and got the same result.I use babylon 2.0, the playground uses babylon 2.1 beta. Chrome version is the latest at this moment - 42.0.2311.90 m Quote Link to comment Share on other sites More sharing options...
Jaskar Posted April 27, 2015 Share Posted April 27, 2015 Same. No error in the console. Quote Link to comment Share on other sites More sharing options...
RaananW Posted April 27, 2015 Share Posted April 27, 2015 Seems like something is wrong with chrome. Has nothing to do with babylon.This demo - https://forestmist.org/blog/web-audio-api-loops/ doesn't loop as well in chrome, but works wonderfully in firefox.The weird thing is that it used to work... Quote Link to comment Share on other sites More sharing options...
dbawel Posted April 27, 2015 Share Posted April 27, 2015 It certainly appears to be a bug in Chrome. Works for me in Firefox as well, but doesn't loop in Chrome - as everyone else has also reported. I tried everything I know - detached sound from the mesh, replaced the function() in the Babylon.sound arguments with null, stripped everything out other than to play and loop the .wav file. Even created a new camera in a different position - and nada - no audio looping. I can't think of a single other thing to try. Bugs like this really suck - since without loading into Firefox, one might spend hours thinking it's their script. I hope this one is fixed soon, and that someone lets the community know when it's working. We always appriciate those who fix these issues. Cheers. DB Quote Link to comment Share on other sites More sharing options...
davrous Posted April 28, 2015 Share Posted April 28, 2015 This is indeed not a bug in my code. It works great in Chrome 44 (canary) and Spartan. Most of the time, I'm running into issue with Firefox. Jaskar 1 Quote Link to comment Share on other sites More sharing options...
playtwice Posted April 28, 2015 Share Posted April 28, 2015 Half day of work thinking I broke phasers sound code, thank you chrome! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 28, 2015 Share Posted April 28, 2015 As you said PlayTwice, this is a bummer. Chrome is the new IE playtwice 1 Quote Link to comment Share on other sites More sharing options...
enpu Posted May 20, 2015 Share Posted May 20, 2015 Got the same issue on Panda game engine, so definitely a bug on Chrome. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
enpu Posted May 26, 2015 Share Posted May 26, 2015 Seems to be fixed on newest Chrome 43.0.2357.81 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.