aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2020-10-06 13:50:38 +0200
committerPaul Adenot <[email protected]>2020-10-07 18:11:16 +0200
commit3fbbc67bb1e7553be183f386717ba153e3835da0 (patch)
treee67a90e28b19b4531c5e3cf905daefef964b92f5
parentb33659d9be1e5a1ad9932e6763ad9381c4d56a40 (diff)
downloadcubeb-3fbbc67bb1e7553be183f386717ba153e3835da0.tar.gz
cubeb-3fbbc67bb1e7553be183f386717ba153e3835da0.zip
Don't use AUDCLNT_STREAMOPTIONS_RAW on MinGW, it's not defined yet.
This is proposed in https://www.mail-archive.com/[email protected]/msg17678.html, but not merged yet it seems.
-rw-r--r--src/cubeb_wasapi.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp
index 5572ad7..d61ac85 100644
--- a/src/cubeb_wasapi.cpp
+++ b/src/cubeb_wasapi.cpp
@@ -1823,7 +1823,9 @@ initialize_iaudioclient2(com_ptr<IAudioClient> & audio_client)
}
AudioClientProperties properties = { 0 };
properties.cbSize = sizeof(AudioClientProperties);
+#ifndef __MINGW32__
properties.Options |= AUDCLNT_STREAMOPTIONS_RAW;
+#endif
HRESULT hr = audio_client2->SetClientProperties(&properties);
if (FAILED(hr)) {
LOG("Can't create the reconfigure event, error: %lx", GetLastError());