mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 18:07:42 +01:00
ALSA backend: engine.halted_callback if the process thread dies
This commit is contained in:
parent
1300bcb210
commit
3ec8621f1e
1 changed files with 4 additions and 0 deletions
|
|
@ -1340,6 +1340,7 @@ AlsaAudioBackend::main_process_thread ()
|
|||
|
||||
if (engine.process_callback (_samples_per_period)) {
|
||||
_pcmi->pcm_stop ();
|
||||
_active = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -1412,6 +1413,9 @@ AlsaAudioBackend::main_process_thread ()
|
|||
}
|
||||
_pcmi->pcm_stop ();
|
||||
_active = false;
|
||||
if (_run) {
|
||||
engine.halted_callback("ALSA I/O error.");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue