IMiniportWaveRTStreamNotification 接口在 Windows Vista 及更高版本的 Windows作系统中受支持,它增强了 IMiniportWaveRTStream 接口,从而提供了其他方法来方便 DMA 驱动程序事件通知。
若要访问 IMiniportWaveRTStreamNotification 接口,WaveRT 端口驱动程序 调用 IMiniportWaveRT::NewStream 方法,并接收 IMiniportWaveRTStream 接口。 然后,WaveRT 端口驱动程序使用 QueryInterface 查询 IMiniportWaveRTStream 接口,并接收 IMiniportWaveRTStreamNotification 接口。
IMiniportWaveRTStreamNotification 继承自 IUnknown 接口。
遗产
IMiniportWaveRTStreamNotification 接口继承自 IMiniportWaveRTStream 接口。
方法
IMiniportWaveRTStreamNotification 接口具有这些方法。
|
IMiniportWaveRTStreamNotification::AllocateBufferWithNotification 如果要实现 DMA 驱动的事件通知,AllocateAudioBufferWithNotification 方法将为音频数据分配循环缓冲区。 如果不希望收到事件通知,则必须使用 IMiniportWaveRTStream::AllocateAudioBuffer。 |
|
IMiniportWaveRTStreamNotification::FreeBufferWithNotification FreeBufferWithNotification 方法用于释放以前通过调用 IMiniportWaveRTStreamNotification::AllocateBufferWithNotification 分配的音频缓冲区。 |
|
IMiniportWaveRTStreamNotification::RegisterNotificationEvent RegisterNotificationEvent 方法注册要接收 DMA 驱动事件通知的事件。 |
|
IMiniportWaveRTStreamNotification::UnregisterNotificationEvent UnregisterNotificationEvent 方法从 DMA 驱动的事件通知中注销事件。 |
要求
| 要求 | 价值 |
|---|---|
| 目标平台 | 窗户 |
| 标头 | portcls.h |