IAudioStateMonitor 接口
提供各种方法,让桌面应用和游戏能够发现其音频流的音量级别何时被系统修改。这包括以下场景:- 当音频应用在后台播放时,得知游戏媒体流何时被静音;或
- 当 VOIP 通话在后台开始时,得知何时应停止游戏聊天音频流。
- 因音频应用在后台播放而游戏媒体流被静音的时间点
- 因 VoIP 通话在后台开始而应停止游戏聊天音频流的时间点
Members
IAudioStateMonitor 接口继承自 IUnknown 接口,同时还具有以下类型的成员:Methods
IAudioStateMonitor 接口具有以下方法:Remarks
若要获取此接口的实例,请调用下列方法之一:- CreateCaptureAudioStateMonitor
- CreateCaptureAudioStateMonitorForCategory
- CreateCaptureAudioStateMonitorForCategoryAndDeviceId
- CreateCaptureAudioStateMonitorForCategoryAndDeviceRole
- CreateRenderAudioStateMonitor
- CreateRenderAudioStateMonitorForCategory
- CreateRenderAudioStateMonitorForCategoryAndDeviceId
- CreateRenderAudioStateMonitorForCategoryAndDeviceRole
