Add support for REPEAT buffer mode

The REPEAT mode is similar to the CYCLIC mode except that the active buffer will
only be repeated as long as there is no new buffer available. Once a new buffer
is pushed the output stream will (seamlessly if possible) switch to the new
buffer.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>