[alsa-devel] Master Plan on rewinding
Clemens Ladisch
clemens at ladisch.de
Tue Sep 9 10:43:11 CEST 2014
Alexander E. Patrakov wrote:
> This phrase from the documentation of snd_pcm_rewindable is also
> something to think about:
>
> """
> Note: The snd_pcm_rewind() can accept bigger value than returned by
> this function. But it is not guaranteed that output stream will be
> consistent with bigger value.
This phrase again assumes a ring buffer, i.e., it says that
1) there is a buffer, and applications can write _anywhere_ in it, but
2) if a plugin reduces the allowed range (with snd_pcm_rewindable()),
it is likely that the plugin will not notice that some part of the
buffer has changed.
(The first part is not true for most unrewindable plugins.)
Regards,
Clemens
More information about the Alsa-devel
mailing list