diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-10-13 22:49:24 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-10-14 09:57:49 +0300 |
commit | 88adb6513ea5c40436709bbf485823175cd73d22 (patch) | |
tree | ffa7d144172f90389c00a89d7feedcb5106c2f9e /drivers/wasapi/audio_driver_wasapi.h | |
parent | 926429392a73a0c2261bc4ed4503c99025842d7c (diff) | |
download | redot-engine-88adb6513ea5c40436709bbf485823175cd73d22.tar.gz |
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); |