diff options
author | Matthew Gregan <[email protected]> | 2021-07-20 09:18:40 +1200 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2021-07-20 09:18:40 +1200 |
commit | b608f590249d5821c91b3ea83e394f0fd839f5b9 (patch) | |
tree | 708baac4318005bf7f4d44fea9f3655ebf2c7d09 /src/cubeb_wasapi.cpp | |
parent | b2f60c983df34f8cac0e061ef32da531c6d82536 (diff) | |
download | cubeb-b608f590249d5821c91b3ea83e394f0fd839f5b9.tar.gz cubeb-b608f590249d5821c91b3ea83e394f0fd839f5b9.zip |
wasapi: Don't set AUDCLNT_STREAMFLAGS_NOPERSIST on IAudioClient (<3) streams. Closes #643.
Diffstat (limited to 'src/cubeb_wasapi.cpp')
-rw-r--r-- | src/cubeb_wasapi.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp index da0fd98..f6f7619 100644 --- a/src/cubeb_wasapi.cpp +++ b/src/cubeb_wasapi.cpp @@ -1915,10 +1915,6 @@ initialize_iaudioclient3(com_ptr<IAudioClient> & audio_client, return false; } - // IAudioClient3 doesn't support AUDCLNT_STREAMFLAGS_NOPERSIST, and will return - // AUDCLNT_E_INVALID_STREAM_FLAG. This is undocumented. - flags = flags & ~AUDCLNT_STREAMFLAGS_NOPERSIST; - // Some people have reported glitches with capture streams: // http://blog.nirbheek.in/2018/03/low-latency-audio-on-windows-with.html if (direction == eCapture) { @@ -2134,11 +2130,6 @@ int setup_wasapi_stream_one_side(cubeb_stream * stm, DWORD flags = 0; - bool is_persist = stream_params->prefs & CUBEB_STREAM_PREF_PERSIST; - if (!is_persist) { - flags |= AUDCLNT_STREAMFLAGS_NOPERSIST; - } - // Check if a loopback device should be requested. Note that event callbacks // do not work with loopback devices, so only request these if not looping. if (is_loopback) { |