Re: [Jack-Devel] Jack server keeps playing sound after client disconnetcs

PrevNext  Index
DateTue, 29 Aug 2017 05:04:03 +0200
From Stéphane Letz <[hidden] at grame dot fr>
ToYuri <[hidden] at rawbw dot com>
CcJACK <[hidden] at lists dot jackaudio dot org>
In-Reply-ToYuri Re: [Jack-Devel] Jack server keeps playing sound after client disconnetcs
Follow-UpYuri Re: [Jack-Devel] Jack server keeps playing sound after client disconnetcs
> Le 29 août 2017 à 02:22, Yuri <[hidden]> a écrit :
> 
> On 08/28/17 17:19, Chris Caudle wrote:
>> There is a timeout parameter you can pass to jackd to specify how long the
>> server waits for a slow client application.  The default is 500ms, does
>> that correspond to how long the audio keeps playing?
>> There is also a parameter which can be passed to the jackd server to
>> prevent the server from disconnecting slow clients.
> 
> 
> It plays forever.
> 
> 
> Yuri


This discussion goes crazy...

Do you hear this looping buffer as Fons described? So we are taking about the application output buffers right?

Then I would advice to look at the code that gives the buffers to the client, that is following the jack_port_get_buffer function code path, and see where (probably…) a simple « memset(buffer, 0,…) call has to be added at the appropriate place.

Stéphane
PrevNext  Index

1503975861.7277_0.ltw:2, <8882D95D-5B08-4672-B930-356229529942 at grame dot fr>