CreateCaptureAudioStateMonitorForCategoryAndDeviceRole function (audiostatemonitorapi.h)
Creates a new instance of IAudioStateMonitor for capture streams with the specified audio category and audio device role.
Syntax
HRESULT CreateCaptureAudioStateMonitorForCategoryAndDeviceRole(
AUDIO_STREAM_CATEGORY category,
ERole role,
IAudioStateMonitor **audioStateMonitor
);
Parameters
category
A member of the AUDIO_STREAM_CATEGORY enumeration specifying the audio stream category for which the audio state monitor is created.
role
A member of the ERole enumeration specifying the audio device role for which the audio state monitor is created.
audioStateMonitor
Receives a pointer to the created IAudioStateMonitor.
Return value
Returns an HRESULT including the following values.
Value | Description |
---|---|
S_OK | Success. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows build 19043 |
Header | audiostatemonitorapi.h |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for