[LAD] a *simple* ring buffer, comments pls?

Fons Adriaensen fons at linuxaudio.org
Fri Jul 8 21:01:07 UTC 2011


On Fri, Jul 08, 2011 at 04:41:54PM -0400, Paul Davis wrote:
> On Fri, Jul 8, 2011 at 3:53 PM, Fons Adriaensen <fons at linuxaudio.org> wrote:
> 
> > - You can use all 2^n elements, there is no ambiguity between
> >  full and empty.
> 
> so what does it mean when wr_index == rd_index?

That the buffer is empty, rd_avail = size, 
wr_avail = 0


-- 
FA




More information about the Linux-audio-dev mailing list