mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-13 13:28:49 +00:00
(Android) Fixes crippled performance on 4.1 (Jelly Bean) - I thought
4.1 - Jelly Bean - had a fast SL mixer? How to get lower latency with this then?
This commit is contained in:
parent
bf4ffe714f
commit
242d2d0d65
@ -133,13 +133,9 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency)
|
||||
GOTO_IF_FAIL(SLObjectItf_Realize(sl->output_mix, SL_BOOLEAN_FALSE));
|
||||
|
||||
int api_level = android_get_sdk_version();
|
||||
if(api_level > 15)
|
||||
{
|
||||
RARCH_LOG("API level 16 and higher has a fast OpenSL mixer - adjust settings for lower audio latency...\n");
|
||||
sl->buf_count = 4;
|
||||
}
|
||||
else
|
||||
sl->buf_count = 8;
|
||||
(void)api_level;
|
||||
|
||||
sl->buf_count = 8;
|
||||
|
||||
RARCH_LOG("[SLES] : Android API level [%d] detected, setting audio latency (buffer size: [%d])..\n", api_level, sl->buf_count * BUFFER_SIZE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user