summaryrefslogtreecommitdiffstats
path: root/drivers/wasapi/audio_driver_wasapi.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-18 11:15:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-18 11:15:44 +0200
commit21134e146a9bfd842a9174b348c96a1a7a435654 (patch)
treec6763cf6f85a15339f51e39480c3a30830ca01b0 /drivers/wasapi/audio_driver_wasapi.h
parent2a8d30aa9fb6c837606e831fb00e68706164c471 (diff)
parent0e23c5fc9f64fb8e15d7362dfd7d7db2844e4dd7 (diff)
downloadredot-engine-21134e146a9bfd842a9174b348c96a1a7a435654.tar.gz
Merge pull request #97032 from lalitshankarchowdhury/fix-audio-crash
Fix `AudioStreamMicrophone` crash on scene-reload
Diffstat (limited to 'drivers/wasapi/audio_driver_wasapi.h')
-rw-r--r--drivers/wasapi/audio_driver_wasapi.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/wasapi/audio_driver_wasapi.h b/drivers/wasapi/audio_driver_wasapi.h
index d73cbf4a8a..367c30607a 100644
--- a/drivers/wasapi/audio_driver_wasapi.h
+++ b/drivers/wasapi/audio_driver_wasapi.h
@@ -40,18 +40,15 @@
#include <audioclient.h>
#include <mmdeviceapi.h>
-#include <wrl/client.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-using Microsoft::WRL::ComPtr;
-
class AudioDriverWASAPI : public AudioDriver {
class AudioDeviceWASAPI {
public:
- ComPtr<IAudioClient> audio_client = nullptr;
- ComPtr<IAudioRenderClient> render_client = nullptr; // Output
- ComPtr<IAudioCaptureClient> capture_client = nullptr; // Input
+ IAudioClient *audio_client = nullptr;
+ IAudioRenderClient *render_client = nullptr; // Output
+ IAudioCaptureClient *capture_client = nullptr; // Input
SafeFlag active;
WORD format_tag = 0;