ChannelState() on Android

Monkey Forums/Monkey Programming/ChannelState() on Android

Anatol(Posted 2012) [#1]
Hi,

Is there really no way to get ChannelState() return a meaningful value on Android? There seems to be a fix for Flash ( http://www.monkeycoder.co.nz/Community/posts.php?topic=3846#41110 ), but the only solution for Android currently are workarounds with sound duration and timer ...

I would love to see a better Monkey solution for that.


Grey Alien(Posted 2014) [#2]
I just discovered this today. It means I can't detect when a sound is finished and then play it again if a player's finger is still down on a sound volume slider for example...
I saw a workaround in the Android forum to do with sample length/timer and so on, but it's not an official solution.

Is it just a hardware or Android limitation?


programmer(Posted 2014) [#3]
It's an Android API limitation: http://developer.android.com/reference/android/media/SoundPool.html


Grey Alien(Posted 2014) [#4]
Bummer. OK thanks. Looks like I'll have to just loop it and stop it when the finger comes off the volume slider.