Re: [android-developers] Re: AudioTrack help - pause after mute

2011-06-18 Thread Stefan Alder
Below is the gist of what I'm trying. This works sometimes, but other times I get a glitch when trying to play-- the glitch appears to be anywhere from a few ms to 20 ms or so of the PCM data (possibly from what it previously played, or was about to play before paused), and immediately precedes

[android-developers] Re: AudioTrack help - pause after mute

2011-06-17 Thread Doug
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

Re: [android-developers] Re: AudioTrack help - pause after mute

2011-06-17 Thread Stefan Alder
Doug, I'm using MODE_STATIC as the latency is too high with MODE_STREAM. On Fri, Jun 17, 2011 at 10:38 AM, Doug beafd...@gmail.com wrote: 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