[linux-audio-dev] Glitchs using portaudio

Steve Harris S.W.Harris at ecs.soton.ac.uk
Mon Mar 15 13:51:41 UTC 2004


On Mon, Mar 15, 2004 at 10:13:25 -0300, Ricardo Cirigliano wrote:
> Hi! I´m using portaudio to capture continous voice using buffers of
> 200ms. I´m using 2 buffers in order to be able to make some process
> in one of them while I capture voice with the other one. However,
> every time I change the buffer that will receive the information a
> glitch occurs. Does anyone know how can I avoid this without using
> threads? Thanks!!!

Just use memcpy to copy the data out of the buffer you get from portaudio,
rather than changing the buffer.

- Steve



More information about the Linux-audio-dev mailing list