mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
alsa + dummy backend, proper [re]initialization
This commit is contained in:
parent
46f0e7dead
commit
96c06b3fc0
2 changed files with 10 additions and 2 deletions
|
|
@ -475,6 +475,9 @@ AlsaAudioBackend::_start (bool for_latency_measurement)
|
|||
return -1;
|
||||
}
|
||||
|
||||
engine.sample_rate_change (_samplerate);
|
||||
engine.buffer_size_change (_samples_per_period);
|
||||
|
||||
if (engine.reestablish_ports ()) {
|
||||
PBD::error << _("AlsaAudioBackend: Could not re-establish ports.") << endmsg;
|
||||
delete _pcmi; _pcmi = 0;
|
||||
|
|
@ -482,7 +485,6 @@ AlsaAudioBackend::_start (bool for_latency_measurement)
|
|||
return -1;
|
||||
}
|
||||
|
||||
engine.buffer_size_change (_samples_per_period);
|
||||
engine.reconnect_ports ();
|
||||
_run = true;
|
||||
|
||||
|
|
@ -1284,6 +1286,8 @@ AlsaAudioBackend::main_process_thread ()
|
|||
_pcmi->pcm_start ();
|
||||
int no_proc_errors = 0;
|
||||
|
||||
manager.graph_order_callback();
|
||||
|
||||
while (_run) {
|
||||
long nr;
|
||||
bool xrun = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue