From ce961d73f3abb981cf297568b18701e769d5b926 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 6 Mar 2019 23:48:07 +0100 Subject: [PATCH] Use unique midi-port names for Ardour's Dummy backend --- libs/backends/dummy/dummy_audiobackend.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/backends/dummy/dummy_audiobackend.cc b/libs/backends/dummy/dummy_audiobackend.cc index 6caacbea24..e77132d9b7 100644 --- a/libs/backends/dummy/dummy_audiobackend.cc +++ b/libs/backends/dummy/dummy_audiobackend.cc @@ -904,7 +904,7 @@ DummyAudioBackend::register_system_ports() lr.min = lr.max = _systemic_input_latency; for (int i = 0; i < m_ins; ++i) { char tmp[64]; - snprintf(tmp, sizeof(tmp), "system:midi_capture_%d", i+1); + snprintf(tmp, sizeof(tmp), "system:midi_capture_dummy_%d", i+1); PortHandle p = add_port(std::string(tmp), DataType::MIDI, static_cast(IsOutput | IsPhysical | IsTerminal)); if (!p) return -1; set_latency_range (p, false, lr); @@ -920,7 +920,7 @@ DummyAudioBackend::register_system_ports() lr.min = lr.max = _systemic_output_latency; for (int i = 1; i <= m_out; ++i) { char tmp[64]; - snprintf(tmp, sizeof(tmp), "system:midi_playback_%d", i); + snprintf(tmp, sizeof(tmp), "system:midi_playback_dummy_%d", i); PortHandle p = add_port(std::string(tmp), DataType::MIDI, static_cast(IsInput | IsPhysical | IsTerminal)); if (!p) return -1; set_latency_range (p, true, lr);