From a098129a9b23d1c8a706aa93e65c870a4dc1a838 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 2 Mar 2014 14:17:26 +0100 Subject: [PATCH] Fix Android build. No idea how it built before (?!) --- audio/opensl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/opensl.c b/audio/opensl.c index 01e246784f..4c2d17e81c 100644 --- a/audio/opensl.c +++ b/audio/opensl.c @@ -130,7 +130,7 @@ static void *sl_init(const char *device, unsigned rate, unsigned latency) else sl->buf_size = next_pow2(32 * latency); - sl->buf_count = (latency * 4 * out_rate + 500) / 1000; + sl->buf_count = (latency * 4 * rate + 500) / 1000; sl->buf_count = (sl->buf_count + sl->buf_size / 2) / sl->buf_size; sl->buffer = (uint8_t**)calloc(sizeof(uint8_t*), sl->buf_count);