IPortClsStreamResourceManager interface (portcls.h)

IPortClsStreamResourceManager is used to manage the registration of audio stream resources.

To help ensure glitch-free operation, audio drivers must register their streaming resources. This allows the OS to manage resources to avoid interference between audio streaming and other subsystems. Stream resources are any resources used by the audio driver to process audio streams or ensure audio data flow.

The IPortClsStreamResourceManager interface is supported in Windows 10 and later versions of Windows.

These methods can only be used by audio waveRT miniport drivers.

A WaveRT miniport driver optionally can use this interface instead of hard-linking with the PcAddStreamResource and PcRemoveStreamResource. This option is very useful when the same audio miniport driver must run on previous versions of Windows. The audio miniport driver can query for the IID_IPortClsStreamResourceManager interface and register its resources only when PortCls supports the interface.

Inheritance

The IPortClsStreamResourceManager interface inherits from the IUnknown interface.

Methods

The IPortClsStreamResourceManager interface has these methods.

 
IPortClsStreamResourceManager::AddStreamResource

AddStreamResource adds a stream resource. Two type of stream resources are supported - interrupts and driver-owned threads.
IPortClsStreamResourceManager::RemoveStreamResource

RemoveStreamResource removes an existing stream resource. The RemoveStreamResource method can only be used by audio waveRT miniport drivers.

Requirements

Requirement Value
Target Platform Windows
Header portcls.h