Audio.play( ) causes app pause

Audio.play( ) causes app pause

BY 31 Jul 2013 Web Application Development

(Posted as a bug here).

Whenever I call play on a sound file, it causes all execution to pause for a moment. The sound effect is preloaded, and I’ve even tried the old trick of doing play then pause upon loading, just to make sure everything’s set up; to no avail.

Has anyone got any workarounds for this? The game runs nice and smooth at 60fps if I turn sound effects off, but it’s unplayable with them on.

 

Thanks,

Mark

Written by