diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-10-14 09:45:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 09:45:53 +0200 |
commit | cbdd9f3bbf93fd10c03b0d8a30cf596b8f3ca308 (patch) | |
tree | 73906d6ce8cea3cd09b08132cb846918d2086576 /drivers/wasapi/audio_driver_wasapi.h | |
parent | 5f4aa11c6264ebea0b3a62418ce4733e21053247 (diff) | |
parent | 88adb6513ea5c40436709bbf485823175cd73d22 (diff) |
Merge pull request #67381 from bruvzg/wine_no_audio_client_3
Detect Wine and disable unsupported IAudioClient3 interface.
Diffstat (limited to 'drivers/wasapi/audio_driver_wasapi.h')
-rw-r--r-- | drivers/wasapi/audio_driver_wasapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/wasapi/audio_driver_wasapi.h b/drivers/wasapi/audio_driver_wasapi.h index c30a54c042..e9f2794e97 100644 --- a/drivers/wasapi/audio_driver_wasapi.h +++ b/drivers/wasapi/audio_driver_wasapi.h @@ -79,6 +79,8 @@ class AudioDriverWASAPI : public AudioDriver { SafeFlag exit_thread; + static bool is_running_on_wine(); + static _FORCE_INLINE_ void write_sample(WORD format_tag, int bits_per_sample, BYTE *buffer, int i, int32_t sample); static _FORCE_INLINE_ int32_t read_sample(WORD format_tag, int bits_per_sample, BYTE *buffer, int i); static void thread_func(void *p_udata); |