[Jack-Devel] jack_ringbuffer_create size

PrevNext  Index
DateThu, 23 Jun 2011 13:24:40 +0300
From Dan Muresan <[hidden] at gmail dot com>
To[hidden] at lists dot jackaudio dot org
Hi,

no big deal, but I see that jack_ringbuffer_create() treats the passed
size only as a hint and always allocates power-of-2's. In this case
the documentation should state that it "allocates a ringbuffer data
structure of AT LEAST the specified size", and perhaps there should be
a function to query the actual ringbuffer size. The actual size can be
measured using write_space() + 1 right after creation, of course, but
that means depending on implementation details.

-- Dan
PrevNext  Index

1308824695.12250_0.ltw:2,a <BANLkTikXz5PrSw7oYYWaB4kMshNj16P_gw at mail dot gmail dot com>