Audio loopback increasing latency.

I'm using the waveform audio API under Windows Mobile 5.0 PDA.
I noticed my latency is gradually increasing in my loopback.
I suppose 8000 Hz for the output device is not 8000 Hz for the input one, they differs since they could refer to different time generators.

To solve the problema i tried rised the output sampling rate from 8000 to 8100 Hz, and now i'm not accumulating latency anymore but sometimes i hear some glitch in audio played back. The input sampling rate is still 8000 Hz.

Are there more elegantly solutions?

Please give me some suggestions.
Thank you in advance.

[612 byte] By [Coder82] at [2008-1-4]

Software Development for Windows Vista

Site Classified