--- In [email protected], "Adnan Yusuf" <[EMAIL PROTECTED]> wrote:
>
> How does one get rid of the audio clicking and popping that occurs as 
> one block of data is ouputed after the other. Why isnt there 
> smoothness in the operation? This is what I get
> "hello we--click--lcome to rad--click--io pakistan. Tod--click--is."
> Its so irritating. Do you guys have any way around this clicking. 
> Windowing didnt help much.
> 
> Yours sincerely,
> Adnan Yusuf
>

 Here is another possible cause, assuming that you are experiencing
the problem not with a downloaded program, but one written by yourself.

When you send the output buffers to the sound card driver, you must be
sure to have at least a couple of buffers in the queue. In other
words, if you send the next buffer when the driver has finished with
the previous one and asks for the next, the click is unavoidable.
There must be already at least a queued buffer ready to be used by the
sound card driver when it needs one. You will in the callback just
replace that queued buffer (which is now being used) with a new one.
But usually it is best to have at least three or four queued buffers,
to cope with those moments when Windows holds the CPU for itself to do
its housekeeping.

73  Alberto  I2PHD


Reply via email to