Capture Buffer Notification |
When capturing audio, you might want your application to be notified when the read cursor reaches a certain point in the buffer, or when the buffer is stopped. By using the Notify.SetNotificationPositions method, you can set any number of points within the buffer where events are to be signaled. You cannot do this while the buffer is capturing.
To set up notifications, do the following.
You can now start the buffer in a separate thread and use WaitHandle .WaitAny to wait for notifications.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center