]> git.alsa-project.org Git - alsa-plugins.git/commit
jack: Do not Xrun the ALSA buffer
authorTimo Wischer <twischer@de.adit-jv.com>
Tue, 13 Mar 2018 08:34:44 +0000 (09:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Mar 2018 21:15:31 +0000 (22:15 +0100)
commit626b5a468d1bc0e4fe5eeffc745a8105dbee1d97
tree3099c5b430c66df95ce3693cf595323057c48a31
parent3e6ace6fe045c580dc5490d87eff6b616f7769ef
jack: Do not Xrun the ALSA buffer

when the JACK thread is requesting too many audio frames

Playback:
Without this commit the ALSA audio buffer will be played with endless
repeats as long as the user application has not provided new audio data.
Therefore this garbage will be played as long as the user application has
not called snd_pcm_stop() after an Xrun. With this fix the rest of the
JACK buffer will be filled with silence.

Capture:
Without this commit the audio data in the ALSA buffer would be
overwritten. With this commit the new data from the JACK buffer will not
be copied. Therefore the existing data in the ALSA buffer will not be
overwritten.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
jack/pcm_jack.c