#include <mutedsessionevents.h>
◆ CMutedSessionEvents()
CMutedSessionEvents::CMutedSessionEvents |
( |
IAudioSessionManager * |
pAudioSessionManager | ) |
|
◆ ~CMutedSessionEvents()
CMutedSessionEvents::~CMutedSessionEvents |
( |
| ) |
|
|
inline |
◆ AddRef()
ULONG STDMETHODCALLTYPE CMutedSessionEvents::AddRef |
( |
| ) |
|
|
inline |
◆ OnChannelVolumeChanged()
HRESULT STDMETHODCALLTYPE CMutedSessionEvents::OnChannelVolumeChanged |
( |
DWORD |
ChannelCount, |
|
|
float |
NewChannelVolumeArray[], |
|
|
DWORD |
ChangedChannel, |
|
|
LPCGUID |
EventContext |
|
) |
| |
|
inline |
◆ OnDisplayNameChanged()
HRESULT STDMETHODCALLTYPE CMutedSessionEvents::OnDisplayNameChanged |
( |
LPCWSTR |
NewDisplayName, |
|
|
LPCGUID |
EventContext |
|
) |
| |
|
inline |
◆ OnGroupingParamChanged()
HRESULT STDMETHODCALLTYPE CMutedSessionEvents::OnGroupingParamChanged |
( |
LPCGUID |
NewGroupingParam, |
|
|
LPCGUID |
EventContext |
|
) |
| |
|
inline |
◆ OnIconPathChanged()
HRESULT STDMETHODCALLTYPE CMutedSessionEvents::OnIconPathChanged |
( |
LPCWSTR |
NewIconPath, |
|
|
LPCGUID |
EventContext |
|
) |
| |
|
inline |
◆ OnSessionDisconnected()
HRESULT STDMETHODCALLTYPE CMutedSessionEvents::OnSessionDisconnected |
( |
AudioSessionDisconnectReason |
DisconnectReason | ) |
|
|
inline |
◆ OnSimpleVolumeChanged()
HRESULT STDMETHODCALLTYPE CMutedSessionEvents::OnSimpleVolumeChanged |
( |
float |
NewVolume, |
|
|
BOOL |
NewMute, |
|
|
LPCGUID |
EventContext |
|
) |
| |
◆ OnStateChanged()
HRESULT STDMETHODCALLTYPE CMutedSessionEvents::OnStateChanged |
( |
AudioSessionState |
NewState | ) |
|
|
inline |
◆ QueryInterface()
HRESULT STDMETHODCALLTYPE CMutedSessionEvents::QueryInterface |
( |
REFIID |
riid, |
|
|
VOID ** |
ppvInterface |
|
) |
| |
在文件 mutedsessionevents.cpp 第 30 行定义.
34 if (IID_IUnknown == riid)
37 *ppvInterface = (IUnknown*)
this;
39 else if (__uuidof(IAudioSessionEvents) == riid)
42 *ppvInterface = (IAudioSessionEvents*)
this;
◆ Release()
ULONG STDMETHODCALLTYPE CMutedSessionEvents::Release |
( |
| ) |
|
◆ TxSetMuted()
bool CMutedSessionEvents::TxSetMuted |
( |
bool |
bMuted | ) |
|
在文件 mutedsessionevents.cpp 第 66 行定义.
71 ISimpleAudioVolume *pAudioVolume = NULL;
73 if (FAILED(hr))
return false;
77 pAudioVolume->SetMute(bMuted, &GUID_NULL);
83 if (pAudioVolume != NULL)
85 pAudioVolume->Release();
◆ _cRef
LONG CMutedSessionEvents::_cRef |
|
private |
◆ m_AudioSessionManager
IAudioSessionManager* CMutedSessionEvents::m_AudioSessionManager |
|
private |
该类的文档由以下文件生成: