Are you using stream or static mode?  With stream, you need to feed
the AudioTrack a stream of zeroes to get it to silence without
clicking.  I don't think that you can pause in stream mode, but I
might be wrong.

Doug

On Jun 15, 5:27 pm, Stefan Alder <twigbra...@gmail.com> wrote:
> I need to pause the AudioTrack after its volume is set to zero.  If I
> pause immediately after muting, there's a glitch, so I've added a
> sleep -- but this creates other problems and doesn't seem reliable. I
> still get glitches.  Is there a reliable way to do this?  For example,
> some sort of callback after the volume reaches 0?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to