haxenme/NME — pull request #25 by aaulia (2012-10-18 09:53:01+00:00)
Title: Fix Android's SoundChannel.stop() for "sound" type called with invalid Handle.

Fix for Android SoundChannel's stop() method, which didn't work because on Android it fire SOUND_COMPLETE right after play which made the nmeHandle invalid (null). I make it that on Android, it will first check what type of sound is played and then adjust according to the type (music or sound).

This doesn't really addresses the SOUND_COMPLETE handling for Android "sound" type, but at least it will stop properly (for example sound effect would keep playing for while, even though user already changed scene/stage, because it could not be stopped).

What do you guys think?