[wdmaudiodev] Re: WaveRT event

  • From: "Jeff Pages" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "jeff" for DMARC)
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Thu, 12 Jul 2018 10:51:37 +0000

In response to the notification, the Windows audio engine will query your position register to figure out where in the buffer it can write to (render) or read from (capture), so at the driver level it doesn't matter.

Jeff

------ Original Message ------
From: "Gilbert Passador" <passador@xxxxxxxxxxxx>
To: wdmaudiodev@xxxxxxxxxxxxx
Sent: 12/07/2018 6:59:09 PM
Subject: [wdmaudiodev] WaveRT event

Hi,

I have a question regarding miniwavertstream.cpp sample driver provided with Windows Driver Kit.

The RegisterNotificationEvent method appends the provided event to m_NotificationList.
The TimerNotifyRT method notifies all events of m_NotificationList.
What is the reason of such a behaviour ?

When two notifications are wanted (see AllocateBufferWithNotification), it means the application cannot distinguish a notification from the first part of the buffer from a notification of the second part.
On the other end, when dealing the wavecyclic or wavepci this is possible with the overlapped structure.
Am I missing something ?

Thank you

Gilbert

Other related posts: