Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81a29444 authored by Robert Wu's avatar Robert Wu
Browse files

Lower bluetooth output buffer size

The current bluetooth buffer is 10ms, resulting in a burst size of
441 frames. When this number is reduced to 2ms to be more inline
with the primary audio hal or the usb hal, the latency on a Boltune
headset on Bramble is lowered from 367ms to 337ms.

Bug: 196269772
Tag: #refactor
Test: Turn off bt offloading and test change manually
Change-Id: I5dbc6d7d1a69c5bc6ef8012095b4d964684761da
parent b999d4d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ constexpr audio_format_t kBluetoothDefaultAudioFormatBitsPerSample =
constexpr unsigned int kBluetoothDefaultInputBufferMs = 20;
constexpr unsigned int kBluetoothDefaultInputStateTimeoutMs = 20;

constexpr unsigned int kBluetoothDefaultOutputBufferMs = 10;
constexpr unsigned int kBluetoothDefaultOutputBufferMs = 2;
constexpr audio_channel_mask_t kBluetoothDefaultOutputChannelModeMask =
    AUDIO_CHANNEL_OUT_STEREO;
constexpr audio_channel_mask_t kBluetoothDefaultInputChannelModeMask =