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
This commit is contained in:
committed by
Marco Nelissen
parent
f89c01254f
commit
1f1f4bf91d
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user