pa_stream_seek ... not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux