[android-developers] Cannot stop soundpool loop even after exiting app
I have a timer thread setup to play a loop using soundpool, but for
some reason I cannot get _soundPool.stop(_playbackTimer); to stop
the loop. even if I exit the application the loop keeps running. I
have to physically power off the phone to get it to stop. am I missing
something here? Does anyone have any experience with this? I have
searched with no resolution. below is a snippet.
if(timeLeft>0 && timeLeft<20 && ticking == false){
_soundPool.play(_playbackTimer, 0.3f, 0.3f, 0, -1, 1);
ticking=true;
}
if(timeLeft==0 || timeLeft>20){
_soundPool.stop(_playbackTimer);
ticking=false;
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home