[wdmaudiodev] Re: WaveRT event

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 12 Jul 2018 10:41:34 +0000

No, you’re not missing anything. That is indeed how it works.

________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of Gilbert Passador <passador@xxxxxxxxxxxx>
Sent: Thursday, July 12, 2018 1:59:09 AM
To: wdmaudiodev@xxxxxxxxxxxxx
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: