mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
if a Route's processor lock cannot be taken, fill buffers with silence (causing click) rather than abort()
This commit is contained in:
parent
cf3faf1b42
commit
91d3e8ead0
1 changed files with 4 additions and 1 deletions
|
|
@ -433,7 +433,10 @@ Route::process_output_buffers (BufferSet& bufs,
|
|||
assert (!AudioEngine::instance()->process_lock().trylock());
|
||||
|
||||
Glib::Threads::RWLock::ReaderLock lm (_processor_lock, Glib::Threads::TRY_LOCK);
|
||||
assert(lm.locked());
|
||||
if (!lm.locked()) {
|
||||
bufs.silence (nframes, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
/* figure out if we're going to use gain automation */
|
||||
if (gain_automation_ok) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue