Audio playback & capture synchronization

Hi,

I’m developping a driver (developed from MSVAD) that passes audio data from a
player application to a DirectSound application and I’m thinking about a way to
synchronize the reads and writes operations performed by my driver. In addition
to the playback and capture streams included in MSVAD, I have created a third
buffer located in the miniport, called “pTransitBuffer”, which receives
datafrom the player app and is read by the DS app. After implementing the R/W
operations on that buffer, I noticed that the DirectSound app requests two
times more data than the player app can feed in the driver.

Since these two functions are called at DISPATCH_LEVEL, i can’t block their
execution so what are the available mecanisms for matching the read speed and
the write speed?

Thanks!

CT

I have finally solved my problem so there is no need to answer to this question.
The driver passes the sound almost correctly so i’d like to get in touch with
an audio expert to help me determining what causes the buggy sound I get, if my
request is allowed in NTDEV of course.

Chi-Truc

Selon Chi Truc Dinh :

> Hi,
>
> I’m developping a driver (developed from MSVAD) that passes audio data from a
> player application to a DirectSound application and I’m thinking about a way
> to
> synchronize the reads and writes operations performed by my driver. In
> addition
> to the playback and capture streams included in MSVAD, I have created a third
> buffer located in the miniport, called “pTransitBuffer”, which receives
> datafrom the player app and is read by the DS app. After implementing the
> R/W
> operations on that buffer, I noticed that the DirectSound app requests two
> times more data than the player app can feed in the driver.
>
> Since these two functions are called at DISPATCH_LEVEL, i can’t block their
> execution so what are the available mecanisms for matching the read speed and
> the write speed?
>
> Thanks!
>
> CT
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@polymtl.ca
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>