diff options
author | Paul Adenot <[email protected]> | 2020-10-07 12:14:28 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2020-10-07 18:11:16 +0200 |
commit | 8d596fee96558cd0f17447b2445444c0594a1be1 (patch) | |
tree | 3b304bdc4b10f500d668acbdd66bfc27ae98c2c8 | |
parent | 3fbbc67bb1e7553be183f386717ba153e3835da0 (diff) | |
download | cubeb-8d596fee96558cd0f17447b2445444c0594a1be1.tar.gz cubeb-8d596fee96558cd0f17447b2445444c0594a1be1.zip |
Address review comments
-rw-r--r-- | src/cubeb_wasapi.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp index d61ac85..67491e1 100644 --- a/src/cubeb_wasapi.cpp +++ b/src/cubeb_wasapi.cpp @@ -1828,7 +1828,7 @@ initialize_iaudioclient2(com_ptr<IAudioClient> & audio_client) #endif HRESULT hr = audio_client2->SetClientProperties(&properties); if (FAILED(hr)) { - LOG("Can't create the reconfigure event, error: %lx", GetLastError()); + LOG("IAudioClient2::SetClientProperties error: %lx", GetLastError()); return CUBEB_ERROR; } return CUBEB_OK; @@ -2104,8 +2104,7 @@ int setup_wasapi_stream_one_side(cubeb_stream * stm, LOG("Could not get cubeb_device_info."); } - if (stm->output_stream_params.prefs & CUBEB_STREAM_PREF_RAW || - stm->input_stream_params.prefs & CUBEB_STREAM_PREF_RAW) { + if (stream_params->prefs & CUBEB_STREAM_PREF_RAW) { if (initialize_iaudioclient2(audio_client) != CUBEB_OK) { LOG("Can't initialize an IAudioClient2, error: %lx", GetLastError()); // This is not fatal. |