mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
PA-backend: Flush buffer and wake up main thread at stop
This commit is contained in:
parent
0717c4c71a
commit
8a969b56c9
1 changed files with 4 additions and 0 deletions
|
|
@ -649,6 +649,10 @@ PulseAudioBackend::stop ()
|
|||
}
|
||||
|
||||
_run = false;
|
||||
|
||||
pa_threaded_mainloop_lock (p_mainloop);
|
||||
sync_pulse (pa_stream_flush (p_stream, stream_operation_cb, this));
|
||||
|
||||
if (pthread_join (_main_thread, &status)) {
|
||||
PBD::error << _("PulseAudioBackend: failed to terminate.") << endmsg;
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue