From 242d2d0d655f199589f13ed181f648cb4d93be30 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 8 Dec 2012 18:09:22 +0100 Subject: [PATCH] (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? --- audio/opensl.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/audio/opensl.c b/audio/opensl.c index f672b99e89..252bd15e11 100644 --- a/audio/opensl.c +++ b/audio/opensl.c @@ -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);