mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 17:46:34 +01:00
Emit Xrun in case process-lock cannot be acquired
This commit is contained in:
parent
1ac7f483da
commit
756c0a80c9
1 changed files with 2 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ AudioEngine::process_callback (pframes_t nframes)
|
||||||
if (!tm.locked()) {
|
if (!tm.locked()) {
|
||||||
/* return having done nothing */
|
/* return having done nothing */
|
||||||
if (_session) {
|
if (_session) {
|
||||||
Xrun();
|
Xrun (); /* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
/* only JACK requires this (other backends clear the
|
/* only JACK requires this (other backends clear the
|
||||||
* output buffers before the process_callback.
|
* output buffers before the process_callback.
|
||||||
|
|
@ -343,6 +343,7 @@ AudioEngine::process_callback (pframes_t nframes)
|
||||||
* to only use try-lock in the process callback.
|
* to only use try-lock in the process callback.
|
||||||
*/
|
*/
|
||||||
if (!tm.try_acquire ()) {
|
if (!tm.try_acquire ()) {
|
||||||
|
Xrun (); /* EMIT SIGNAL */
|
||||||
return 0; // XXX or spin?
|
return 0; // XXX or spin?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue