mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-24 10:24:55 +00:00
Fix Android build.
No idea how it built before (?!)
This commit is contained in:
parent
2d8313479b
commit
a098129a9b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user