Skip to content

Commit

Permalink
cras: floop: double the buffer size
Browse files Browse the repository at this point in the history
Chrome input stream runs on callback threshold 4800 due to
processing function. Double the buffer size to make sure that the
callback threshold is less than half of buffer size.

BUG=b:327533160
TEST=use arcvm to playback audio with live caption /
     cras_test_client --follow_at | grep OVERRUN shows nothing

Change-Id: Iaa57502b3d1d3e3667a39923e0017b95f8975289
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5568412
Commit-Queue: Terry Cheong <htcheong@chromium.org>
Reviewed-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Reviewed-by: Li-Yu Yu <aaronyu@google.com>
Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
  • Loading branch information
terry182 authored and Chromeos LUCI committed Sep 23, 2024
1 parent 69d2970 commit ca1e1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cras/src/server/cras_floop_iodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* to check for floop odevs that the stream should be attached to.
*/

#define LOOPBACK_BUFFER_SIZE 8192
#define LOOPBACK_BUFFER_SIZE 16384

static size_t loopback_supported_rates[] = {48000, 0};

Expand Down

0 comments on commit ca1e1e3

Please sign in to comment.