From 9ec3085d71269ab5c155db4284738da6ec7f38ae Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 4 May 2015 00:29:15 +0200 Subject: fix thinko in 2e4428b perspective of Ardour: signal sinks are outputs --- libs/ardour/ardour/port_manager.h | 2 +- libs/ardour/audioengine.cc | 2 +- libs/ardour/port_manager.cc | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/ardour/port_manager.h b/libs/ardour/ardour/port_manager.h index 8c55b69022..71b18f2f78 100644 --- a/libs/ardour/ardour/port_manager.h +++ b/libs/ardour/ardour/port_manager.h @@ -149,7 +149,7 @@ class LIBARDOUR_API PortManager void fade_out (gain_t, gain_t, pframes_t); void silence (pframes_t nframes); - void silence_physical (pframes_t nframes); + void silence_outputs (pframes_t nframes); void check_monitoring (); /** Signal the start of an audio cycle. * This MUST be called before any reading/writing for this cycle. diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index a92e7d4524..c18b5dde38 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -210,7 +210,7 @@ AudioEngine::process_callback (pframes_t nframes) * before the process_callback. it may even be * jack/alsa only). but better safe than sorry. */ - PortManager::silence_physical (nframes); + PortManager::silence_outputs (nframes); return 0; } diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index 37970cc708..1557a6106c 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -639,10 +639,10 @@ PortManager::silence (pframes_t nframes) } void -PortManager::silence_physical (pframes_t nframes) +PortManager::silence_outputs (pframes_t nframes) { std::vector port_names; - if (get_ports("", DataType::AUDIO, IsInput, port_names)) { + if (get_ports("", DataType::AUDIO, IsOutput, port_names)) { for (std::vector::iterator p = port_names.begin(); p != port_names.end(); ++p) { if (!port_is_mine(*p)) { continue; @@ -659,7 +659,7 @@ PortManager::silence_physical (pframes_t nframes) } } - if (get_ports("", DataType::MIDI, IsInput, port_names)) { + if (get_ports("", DataType::MIDI, IsOutput, port_names)) { for (std::vector::iterator p = port_names.begin(); p != port_names.end(); ++p) { if (!port_is_mine(*p)) { continue; -- cgit v1.2.3