Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dsound Audio

2 views
Skip to first unread message

vinaykabadi

unread,
Dec 22, 2009, 4:50:18 AM12/22/09
to
Hi,

I use Dsound for capture playback. I use 2 threads to start the
capture and playback at the same time and there is no delay in
initiating the threads but still when I compare the played file and
the captured file I find a initial delay of 60ms in the captured
file.
(I use loop back (connect the capture and playback by a wire) that
there is no delay in the air)


Do the Dsound playback take some time to pass the data from buffer to
the device ???


I think this is the reason.. When I read the audio data from a
data_file and write it into a file which will be played file, on the
other hand whatever is coming from the play device is captured and
written into a file, if the delay lies in Dsound playback to send the
datd from buffer to device then it obviously will show the delay.


If this is the case then I would like to know exactly how this delay
can be calculated or come to known..


Regards
Vinay

0 new messages