MF_READWRITE_MMCSS_CLASS_AUDIO attribute
Specifies a Multimedia Class Scheduler Service (MMCSS) class for audio-processing threads in the Source Reader or Sink Writer.
Data type
LPWSTR
Get/set
To get this attribute, call IMFAttributes::GetString.
To set this attribute, call IMFAttributes::SetString.
Remarks
Optionally set this attribute when you create an instance of the Source Reader or Sink Writer. The value of the attribute must be a valid MMCSS class name.
If this attribute is set, the Source Reader or Sink Writer registers its audio-processing threads with the specified MMCSS class. The MMCSS ensures that data processing in the Source Reader or Sink Writer has priority over other system tasks.
To specify the base priority for audio threads, set the MF_READWRITE_MMCSS_PRIORITY_AUDIO attribute. If that attribute is not set, the base priority for audio threads is zero.
This attribute overrides the MF_READWRITE_MMCSS_CLASS attribute for audio-processing threads. If neither attribute is set, audio threads are not registered with MCSS.
For most applications, audio glitching is much more noticeable to the user than video glitching, and therefore less acceptable. For this reason, an application should typically set MF_READWRITE_MMCSS_CLASS_AUDIO to a higher-priority MMCSS class than MF_READWRITE_MMCSS_CLASS. This ensures that audio processing is given higher priority than other tasks.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 8 [desktop apps | UWP apps] |
Minimum supported server |
Windows Server 2012 [desktop apps | UWP apps] |
Header |
|
See also