aduros / flambe

Rapidly cook up games for HTML5, Flash, Android, and iOS.
https://github.com/aduros/flambe/wiki
MIT License
745 stars 118 forks source link

Sound pausing (HTML5 build)? #347

Open mbellman opened 9 years ago

mbellman commented 9 years ago

I'm noticing that in HTML5 mode (but using Web Audio), sounds don't properly resume when un-paused - they simply become audible again from the continually elapsing playback position.

I also notice this does not occur in Flash mode, where pausing/resuming works as expected. FlashSound.hx seems to accommodate resumed playback, whereas WebAudioSound.hx does not. Is this to do with WebAudio's continually incrementing currentTime? Might there be any possible workaround if I want to actually pause and resume across all builds?