[pulseaudio-discuss] pa_stream_seek ... not
Mads Kiilerich
mads at kiilerich.com
Mon Dec 14 11:16:02 PST 2009
The streams.h documentation tells how the write pointer can be moved
with pa_stream_write() - and reset with pa_stream_flush().
But AFAICS there is no way to move the write pointer without writing
anything. pa_stream_write() has assertion on data not being NULL and
doesn't move the pointer if nbytes is 0.
Is there some kind of trick that can be used?
Would it make sense to change PA so pa_stream_write() accepts a NULL
pointer if nbytes is 0 and then just moves the write pointer?
(Is the behaviour of pa_stream_write() with nbytes = 0 currently
well-defined and working correctly? I have seen some strange some
strange errors because of that - but that might be because I don't know
what to expect.)
/Mads
using pulseaudio-0.9.15-17.fc11.i586
More information about the pulseaudio-discuss
mailing list