Browse Source
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#488android-5
Tom Yan
6 years ago
committed by
Fredrik Fornwall
4 changed files with 16 additions and 2 deletions
@ -0,0 +1,13 @@ |
|||
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; |
Loading…
Reference in new issue