Thursday, July 21, 2011

[android-developers] Re: How to know SoundPool play completed?

yes, unless hacker the Soundpool to post msg from native when
audiotrack wrote complete ...

On Jul 22, 2:13 am, Leigh McRae <leigh.mc...@lonedwarfgames.com>
wrote:
> I don't think there is anything.  Best solution is to measure the sound
> clip duration (likely off line) and then poll or make a timer.
>
> Leigh
>
> On 7/20/2011 6:08 AM, Tim wrote:
>
>
>
>
>
>
>
> > Guys,
>
> > Just want to got callback after SoundPool played a sound. But
> > unfortunately, I found the SoundPool.play() is asynchronized ... and
> > no oncomplete listener like mediaplayer ... Any good idea?
>
> > -- Tim

--
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

No comments:

Post a Comment