fbc0d7ee54
Apparently some Android builds/forks need it for Bluetooth audio. It's a hardcoded default in the upstream AAudio implementation anyway. See the following for reference: https://android.googlesource.com/platform/frameworks/av/+/android-8.0.0_r1/media/libaaudio/src/legacy/AudioStreamTrack.cpp#109 https://android.googlesource.com/platform/frameworks/wilhelm/+/android-8.0.0_r1/src/android/AudioPlayer_to_android.cpp#1680 https://android.googlesource.com/platform/frameworks/av/+/android-8.0.0_r1/media/libaudioclient/AudioTrack.cpp#488
14 lines
503 B
Diff
14 lines
503 B
Diff
diff --git a/audio/out/ao_opensles.c b/audio/out/ao_opensles.c
|
|
index ea48de892e..2e637adf82 100644
|
|
--- a/audio/out/ao_opensles.c
|
|
+++ b/audio/out/ao_opensles.c
|
|
@@ -129,7 +129,7 @@ static int init(struct ao *ao)
|
|
CHK((*p->output_mix)->Realize(p->output_mix, SL_BOOLEAN_FALSE));
|
|
|
|
locator_buffer_queue.locatorType = SL_DATALOCATOR_BUFFERQUEUE;
|
|
- locator_buffer_queue.numBuffers = 1;
|
|
+ locator_buffer_queue.numBuffers = 8;
|
|
|
|
pcm.formatType = SL_DATAFORMAT_PCM;
|
|
pcm.numChannels = 2;
|