On Thu, 10 Dec 2015 09:07:25 -0500
Paul Davis <p...@linuxaudiosystems.com> wrote:

> On Thu, Dec 10, 2015 at 9:04 AM, Will Godfrey <willgodf...@musically.me.uk>
> wrote:
> 
> > If I have a buffer size of 256 and always use a 4 byte data block, can I be
> > confident that reads and writes will either transfer the correct number
> > of bytes or none at all?
> >
> 
> 
> You cannot.

Somehow I expected that would be the answer :(

So, if I get, (say) three bytes processed, presumably I make another call for
just one.

Is it safe to cheat and without modifying the data block adjust the
byte count and increment the pointer passed to jack by the appropriate amount?

I'm thinking that I should only make two or three repeat attempts before
aborting.

-- 
It wasn't me! (Well actually, it probably was)

... the hard part is not dodging what life throws at you,
but trying to catch the good bits.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Reply via email to