From 5292191b6364ca16004bc0ee78b6ec58824dc565 Mon Sep 17 00:00:00 2001 From: Themaister Date: Fri, 18 Jan 2013 01:09:08 +0100 Subject: [PATCH] Add some logging to OpenSL. --- audio/opensl.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/audio/opensl.c b/audio/opensl.c index fd92d29696..4be267542e 100644 --- a/audio/opensl.c +++ b/audio/opensl.c @@ -34,8 +34,8 @@ #define SLPlayItf_SetPlayState(a, ...) ((*(a))->SetPlayState(a, __VA_ARGS__)) // TODO: Are these sane? -#define BUFFER_SIZE 4096 -#define BUFFER_COUNT 8 +#define BUFFER_SIZE 8092 +#define BUFFER_COUNT 4 typedef struct sl { @@ -170,9 +170,6 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency) GOTO_IF_FAIL(SLObjectItf_GetInterface(sl->buffer_queue_object, SL_IID_PLAY, &sl->player)); GOTO_IF_FAIL(SLPlayItf_SetPlayState(sl->player, SL_PLAYSTATE_PLAYING)); - g_settings.audio.rate_control_delta = 0.006; - g_settings.audio.rate_control = true; - return sl; error: @@ -246,6 +243,8 @@ static ssize_t sl_write(void *data, const void *buf_, size_t size) } } + //RARCH_LOG("Blocks: %u\n", sl->buffered_blocks); + return written; }