openslesringbuffer: Only pre-roll a single buffer
authorSebastian Dröge <sebastian@centricular.com>
Thu, 5 Feb 2015 11:24:04 +0000 (12:24 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 5 Feb 2015 11:28:22 +0000 (12:28 +0100)
commit83e5fe2f70e593457d44a3b3a9effbf772b8025b
treec30501d4d891afd6370bbfdb7ba9963f7f90dd75
parent141fb455e8d354f268a58472631dec1aad600f86
openslesringbuffer: Only pre-roll a single buffer

There is no reason to pre-roll more buffers here as we have our own ringbuffer
with more segments around it, and we can immediately provide more buffers to
OpenSL ES when it requests that from the callback.

Pre-rolling a single buffer before starting is necessary though, as otherwise
we will only output silence.

Lowers latency a bit, depending on latency-time and buffer-time settings.
sys/opensles/openslesringbuffer.c