From 1f1f4bf91dd66fba527bf4d8765e484e08ddb971 Mon Sep 17 00:00:00 2001 From: Philip Cuadra Date: Mon, 11 Apr 2016 14:27:38 -0700 Subject: [PATCH] Increase the SoundPoolThread queue size to 128 entries. SoundPoolThread queue is undersized, bump it up to 128 entries. This improves the performance of loading camera by unblocking the thread that asks SoundPool to load sounds. Longer term, an API for setting this number of entries should be added. Bug: 28087906 Change-Id: Ie5cea5d11844cf035ca13979c188f2c57a8e333a --- media/jni/soundpool/SoundPoolThread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/jni/soundpool/SoundPoolThread.h b/media/jni/soundpool/SoundPoolThread.h index d3883886379c1..9096aeb3e30e1 100644 --- a/media/jni/soundpool/SoundPoolThread.h +++ b/media/jni/soundpool/SoundPoolThread.h @@ -47,7 +47,7 @@ public: void write(SoundPoolMsg msg); private: - static const size_t maxMessages = 5; + static const size_t maxMessages = 128; static int beginThread(void* arg); int run();