Re: [LAD] Jack ringbuffer

2015-12-10 Thread Len Ovens
On Thu, 10 Dec 2015, Will J Godfrey wrote: On Thu, 10 Dec 2015 06:51:48 -0800 (PST) Len Ovens wrote: You can check if there are 4 bytes available, if not don't read (yet). Normally (at least for anything I have done) the reason I use the ring buffer is to divorce the data

Re: [LAD] Jack ringbuffer

2015-12-10 Thread Will J Godfrey
On Thu, 10 Dec 2015 06:51:48 -0800 (PST) Len Ovens wrote: > On Thu, 10 Dec 2015, Will J Godfrey wrote: > > > On Thu, 10 Dec 2015 09:07:25 -0500 > > Paul Davis wrote: > > > >> On Thu, Dec 10, 2015 at 9:04 AM, Will Godfrey

Re: [LAD] Jack ringbuffer

2015-12-10 Thread Paul Davis
On Thu, Dec 10, 2015 at 9:04 AM, Will Godfrey 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.

[LAD] Jack ringbuffer

2015-12-10 Thread Will Godfrey
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? -- Will J Godfrey http://www.musically.me.uk Say you have a poem and I have a tune. Exchange them and we can both have a

Re: [LAD] Jack ringbuffer

2015-12-10 Thread Len Ovens
On Thu, 10 Dec 2015, Will J Godfrey wrote: On Thu, 10 Dec 2015 09:07:25 -0500 Paul Davis wrote: On Thu, Dec 10, 2015 at 9:04 AM, Will Godfrey wrote: If I have a buffer size of 256 and always use a 4 byte data block, can I be