Changeset 70471 in vbox
- Timestamp:
- Jan 5, 2018 3:37:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/VBoxMMNotificationClient.cpp
r70470 r70471 43 43 } 44 44 45 /** 46 * Uninitializes the mulitmedia notification client implementation. 47 */ 45 48 void VBoxMMNotificationClient::Dispose(void) 46 49 { … … 55 58 } 56 59 60 /** 61 * Initializes the mulitmedia notification client implementation. 62 * 63 * @return HRESULT 64 */ 57 65 HRESULT VBoxMMNotificationClient::Initialize(void) 58 66 { … … 74 82 } 75 83 84 /** 85 * Registration callback implementation for storing our (required) contexts. 86 * 87 * @return IPRT status code. 88 * @param pDrvIns Driver instance to register the notification client to. 89 * @param pfnCallback Audio callback to call by the notification client in case of new events. 90 */ 76 91 int VBoxMMNotificationClient::RegisterCallback(PPDMDRVINS pDrvIns, PFNPDMHOSTAUDIOCALLBACK pfnCallback) 77 92 { … … 82 97 } 83 98 99 /** 100 * Unregistration callback implementation for cleaning up our mess when we're done handling 101 * with notifications. 102 */ 84 103 void VBoxMMNotificationClient::UnregisterCallback(void) 85 104 { … … 88 107 } 89 108 109 /** 110 * Stub being called when attaching to the default audio endpoint. 111 * Does nothing at the moment. 112 */ 90 113 HRESULT VBoxMMNotificationClient::AttachToDefaultEndpoint(void) 91 114 { … … 93 116 } 94 117 118 /** 119 * Stub being called when detaching from the default audio endpoint. 120 * Does nothing at the moment. 121 */ 95 122 void VBoxMMNotificationClient::DetachFromEndpoint(void) 96 123 { … … 98 125 } 99 126 127 /** 128 * Handler implementation which is called when an audio device state 129 * has been changed. 130 * 131 * @return HRESULT 132 * @param pwstrDeviceId Device ID the state is announced for. 133 * @param dwNewState New state the device is now in. 134 */ 100 135 STDMETHODIMP VBoxMMNotificationClient::OnDeviceStateChanged(LPCWSTR pwstrDeviceId, DWORD dwNewState) 101 136 { … … 133 168 } 134 169 170 /** 171 * Handler implementation which is called when a new audio device has been added. 172 * 173 * @return HRESULT 174 * @param pwstrDeviceId Device ID which has been added. 175 */ 135 176 STDMETHODIMP VBoxMMNotificationClient::OnDeviceAdded(LPCWSTR pwstrDeviceId) 136 177 { … … 140 181 } 141 182 183 /** 184 * Handler implementation which is called when an audio device has been removed. 185 * 186 * @return HRESULT 187 * @param pwstrDeviceId Device ID which has been removed. 188 */ 142 189 STDMETHODIMP VBoxMMNotificationClient::OnDeviceRemoved(LPCWSTR pwstrDeviceId) 143 190 { … … 147 194 } 148 195 196 /** 197 * Handler implementation which is called when the device audio device has been 198 * changed. 199 * 200 * @return HRESULT 201 * @param eFlow Flow direction of the new default device. 202 * @param eRole Role of the new default device. 203 * @param pwstrDefaultDeviceId ID of the new default device. 204 */ 149 205 STDMETHODIMP VBoxMMNotificationClient::OnDefaultDeviceChanged(EDataFlow eFlow, ERole eRole, LPCWSTR pwstrDefaultDeviceId) 150 206 {
Note:
See TracChangeset
for help on using the changeset viewer.