Re: [Jack-Devel] jack_bufsize callbacks during jack_activate

PrevNext  Index
DateSun, 13 Feb 2011 21:39:55 +0100
From Stéphane Letz <[hidden] at grame dot fr>
Totorbenh <[hidden] at gmx dot de>
Cc[hidden] at lists dot jackaudio dot org
In-Reply-Totorbenh [Jack-Devel] jack_bufsize callbacks during jack_activate
Follow-Uptorbenh Re: [Jack-Devel] jack_bufsize callbacks during jack_activate
Le 13 févr. 2011 à 19:37, torbenh a écrit :

> 
> hi...
> 
> in order to avoid the race conditions with a buffersize change between
> jack_client_open() and jack_activate() we are sending out a bufsize
> callback during jack_activate()
> 
> i think its the right move. but there is no way to detect, whether the
> implementation in use is doing this.
> 
> i also delayed the attachment of the buffer segment until
> jack_activate(). the result is undefined behaviour when calling
> jack_port_get_buffer() on an inactive client.

But why a client would call jack_port_get_buffer outside of the process callback? that is not called when the client is not activated?

> 
> i am now seeing a few problems popping up. so it might make sense to
> revert these changes.
> anybody got an opinion on it ?
> 

Which problems?

Stéphane 
PrevNext  Index

1297629611.26955_0.ltw:2,a <AD44AD85-DDB3-4A6D-AD0D-86C163FFAFFF at grame dot fr>