diff options
author | Chun-Min Chang <[email protected]> | 2022-03-22 16:29:32 -0700 |
---|---|---|
committer | Chun-Min Chang <[email protected]> | 2022-03-23 09:21:42 -0700 |
commit | 86210a15ba6664e0bf1a4051c0271b0262e821b4 (patch) | |
tree | b3f05ee1c384170349f21c8d03b1923f19cfc5ab | |
parent | 1e13faa57baf7d7277518f54f98d0af95ef19e86 (diff) | |
download | cubeb-86210a15ba6664e0bf1a4051c0271b0262e821b4.tar.gz cubeb-86210a15ba6664e0bf1a4051c0271b0262e821b4.zip |
Group related lines
-rw-r--r-- | src/cubeb_wasapi.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp index fc547b7..7d25b3f 100644 --- a/src/cubeb_wasapi.cpp +++ b/src/cubeb_wasapi.cpp @@ -2248,15 +2248,16 @@ setup_wasapi_stream_one_side(cubeb_stream * stm, uint32_t default_period_frames = hns_to_frames(device_info.default_rate, default_period); - if (strlen(device_info.group_id) >= len && - strncmp(device_info.group_id, HANDSFREE_TAG, len) == 0) { - stm->input_bluetooth_handsfree = true; - } // This multiplicator has been found empirically. uint32_t latency_frames = default_period_frames * 8; LOG("Input: latency increased to %u frames from a default of %u", latency_frames, default_period_frames); latency_hns = frames_to_hns(device_info.default_rate, latency_frames); + + if (strlen(device_info.group_id) >= len && + strncmp(device_info.group_id, HANDSFREE_TAG, len) == 0) { + stm->input_bluetooth_handsfree = true; + } } wasapi_destroy_device(&device_info); } else { |