power-of-two buffer size. (was: Re: [LAD] [ANN] LV2 beta3)

Pieter Palmers pieterp at joow.be
Fri May 11 09:50:17 UTC 2007


Florian Schmidt wrote:
> On Wednesday 09 May 2007, Dave Robillard wrote:
> 
>> If you want to discuss fixed block sizes, etc, discuss the existing work
>> done in that area by tapas (who has longed for that feature for ages
>> now, and I assume from the lack of objections from him that things are
>> fine on that front).  There is already a solution to this, if you have a
>> problem with the solution, let it be known.
> 
> Yep, no objections :) As these extensions (fixed-buffersize and 
> power-of-two-buffersize) are rather easy to implement, especially for jack 
> apps where the API guarantees a fixed power of two buffersize in between 
> buffer-size callbacks [aha - this should be an extension, too ;)], i hope all 
> LV2 hosts which are useful [for me] at all will support it :) So i considered 
> this problem solved.
I don't think the power-of-two buffersize is guaranteed by the jack API. 
It is true that the ALSA backend wants the buffers to be a power of two. 
  But AFAIK it is not an API guarantee.

If I'm wrong, I'll have to fix the freebob backend because it doesn't 
enforce this.

Pieter





More information about the Linux-audio-dev mailing list