Changeset 83239 in vbox
- Timestamp:
- Mar 10, 2020 10:13:59 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
-
VBoxMMNotificationClient.cpp (modified) (2 diffs)
-
VBoxMMNotificationClient.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/VBoxMMNotificationClient.cpp
r83238 r83239 44 44 45 45 /** 46 * Uninitializes the mulitmedia notification client implementation. 47 */ 48 void VBoxMMNotificationClient::Dispose(void) 46 * Registers the mulitmedia notification client implementation. 47 */ 48 HRESULT VBoxMMNotificationClient::Register(void) 49 { 50 HRESULT hr = m_pEnum->RegisterEndpointNotificationCallback(this); 51 if (SUCCEEDED(hr)) 52 { 53 m_fRegisteredClient = true; 54 55 hr = AttachToDefaultEndpoint(); 56 } 57 58 return hr; 59 } 60 61 /** 62 * Unregisters the mulitmedia notification client implementation. 63 */ 64 void VBoxMMNotificationClient::Unregister(void) 49 65 { 50 66 DetachFromEndpoint(); … … 67 83 HRESULT hr = CoCreateInstance(__uuidof(MMDeviceEnumerator), 0, CLSCTX_ALL, __uuidof(IMMDeviceEnumerator), 68 84 (void **)&m_pEnum); 69 if (SUCCEEDED(hr))70 {71 hr = m_pEnum->RegisterEndpointNotificationCallback(this);72 if (SUCCEEDED(hr))73 {74 m_fRegisteredClient = true;75 76 hr = AttachToDefaultEndpoint();77 }78 }79 85 80 86 LogFunc(("Returning %Rhrc\n", hr)); -
trunk/src/VBox/Devices/Audio/VBoxMMNotificationClient.h
r83238 r83239 47 47 48 48 HRESULT Initialize(); 49 50 HRESULT Register(void); 51 void Unregister(void); 52 49 53 int RegisterCallback(PPDMDRVINS pDrvIns, PFNPDMHOSTAUDIOCALLBACK pfnCallback); 50 54 void UnregisterCallback(void); 51 void Dispose();52 55 53 56 /** @name IUnknown interface
Note:
See TracChangeset
for help on using the changeset viewer.

