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

Playback.dispose() Does Not Stop Playback in Cocoon for iOS #373

Open Joncom opened 7 years ago

Joncom commented 7 years ago
var music:Playback = pack.getSound("music");
music.play();
music.dispose();

Expected behavior: Music should not play because dispose() was called immediately.

Environments where expected behavior occurs:

Environments where expected behavior does NOT occur:

In Cocoon on iOS, the above code results in the entire audio playing through. However, if you were to call dispose a few moments later instead, it would properly halt the audio.