diff options
author | Chun-Min Chang <[email protected]> | 2022-03-22 16:36:12 -0700 |
---|---|---|
committer | Chun-Min Chang <[email protected]> | 2022-03-23 09:21:42 -0700 |
commit | 016e72ea12404c0aa0031f4fd996a2391dc4cd8d (patch) | |
tree | af289b1c8d4cc06b75424466bcfa06c119ee4603 /src/cubeb_wasapi.cpp | |
parent | 86210a15ba6664e0bf1a4051c0271b0262e821b4 (diff) | |
download | cubeb-016e72ea12404c0aa0031f4fd996a2391dc4cd8d.tar.gz cubeb-016e72ea12404c0aa0031f4fd996a2391dc4cd8d.zip |
Don't reset input_bluetooth_handsfree when setting output
The duplex stream's `input_bluetooth_handsfree` shouldn't be reset during setting output side
Diffstat (limited to 'src/cubeb_wasapi.cpp')
-rw-r--r-- | src/cubeb_wasapi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp index 7d25b3f..214ef0f 100644 --- a/src/cubeb_wasapi.cpp +++ b/src/cubeb_wasapi.cpp @@ -2226,7 +2226,6 @@ setup_wasapi_stream_one_side(cubeb_stream * stm, } REFERENCE_TIME latency_hns = frames_to_hns(stream_params->rate, stm->latency); - stm->input_bluetooth_handsfree = false; wasapi_default_devices default_devices(stm->device_enumerator.get()); @@ -2254,6 +2253,7 @@ setup_wasapi_stream_one_side(cubeb_stream * stm, latency_frames, default_period_frames); latency_hns = frames_to_hns(device_info.default_rate, latency_frames); + stm->input_bluetooth_handsfree = false; if (strlen(device_info.group_id) >= len && strncmp(device_info.group_id, HANDSFREE_TAG, len) == 0) { stm->input_bluetooth_handsfree = true; |