@@ -91,11 +91,11 @@ class AudioCaptureImpl : public IMMNotificationClient
9191 */
9292 static std::string UnicodeToString (LPCWSTR unicodeString);
9393
94- HRESULT QueryInterface (const IID& riid, void ** ppvObject) override ;
94+ HRESULT STDMETHODCALLTYPE QueryInterface (const IID& riid, void ** ppvObject) override ;
9595
96- ULONG AddRef () override ;
96+ ULONG STDMETHODCALLTYPE AddRef () override ;
9797
98- ULONG Release () override ;
98+ ULONG STDMETHODCALLTYPE Release () override ;
9999
100100protected:
101101 /* *
@@ -225,7 +225,7 @@ class AudioCaptureImpl : public IMMNotificationClient
225225 * @param dwNewState The new state.
226226 * @return Always S_OK.
227227 */
228- HRESULT OnDeviceStateChanged (LPCWSTR pwstrDeviceId, DWORD dwNewState) override ;
228+ HRESULT STDMETHODCALLTYPE OnDeviceStateChanged (LPCWSTR pwstrDeviceId, DWORD dwNewState) override ;
229229
230230 /* *
231231 * @brief Event which is called whenever the default device changed.
@@ -243,7 +243,7 @@ class AudioCaptureImpl : public IMMNotificationClient
243243 * @param pwstrDefaultDeviceId
244244 * @return
245245 */
246- HRESULT OnDefaultDeviceChanged (EDataFlow flow, ERole role, LPCWSTR pwstrDefaultDeviceId) override ;
246+ HRESULT STDMETHODCALLTYPE OnDefaultDeviceChanged (EDataFlow flow, ERole role, LPCWSTR pwstrDefaultDeviceId) override ;
247247
248248 /* *
249249 * @brief Event which is called if a new device was added.
@@ -254,7 +254,7 @@ class AudioCaptureImpl : public IMMNotificationClient
254254 * @param pwstrDeviceId The opaque device ID for the new device.
255255 * @return Always S_OK.
256256 */
257- HRESULT OnDeviceAdded (LPCWSTR pwstrDeviceId) override ;
257+ HRESULT STDMETHODCALLTYPE OnDeviceAdded (LPCWSTR pwstrDeviceId) override ;
258258
259259 /* *
260260 * @brief Event which is called if a device was fully removed.
@@ -266,7 +266,7 @@ class AudioCaptureImpl : public IMMNotificationClient
266266 * @param pwstrDeviceId The opaque device ID for the removed device.
267267 * @return Always S_OK.
268268 */
269- HRESULT OnDeviceRemoved (LPCWSTR pwstrDeviceId) override ;
269+ HRESULT STDMETHODCALLTYPE OnDeviceRemoved (LPCWSTR pwstrDeviceId) override ;
270270
271271 /* *
272272 * @brief Event which is called if a device property changed.
@@ -276,7 +276,7 @@ class AudioCaptureImpl : public IMMNotificationClient
276276 * @param key The property key that has changed.
277277 * @return Always S_OK.
278278 */
279- HRESULT OnPropertyValueChanged (LPCWSTR pwstrDeviceId, PROPERTYKEY key) override ;
279+ HRESULT STDMETHODCALLTYPE OnPropertyValueChanged (LPCWSTR pwstrDeviceId, PROPERTYKEY key) override ;
280280
281281 Poco::Logger& _logger{Poco::Logger::get (" AudioCapture.WASAPI" )}; // !< The class logger.
282282
0 commit comments