fix thinko in 2e4428b
authorRobin Gareus <robin@gareus.org>
Sun, 3 May 2015 22:29:15 +0000 (00:29 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 3 May 2015 22:29:15 +0000 (00:29 +0200)
perspective of Ardour: signal sinks are outputs

libs/ardour/ardour/port_manager.h
libs/ardour/audioengine.cc
libs/ardour/port_manager.cc

index 8c55b69022f725a5d5e0bbbe074d488835725d0b..71b18f2f785cf6e5800e2d111c23728a82c5e201 100644 (file)
@@ -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.
index a92e7d45249ef5aff1ae600369e734bd2a27379a..c18b5dde384089f7cae68bb0e6d464a87006089f 100644 (file)
@@ -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;
        }
 
index 37970cc708fbf5d2d91117102b1dab7a17a4e581..1557a6106ced9da14ef9194c22ddf5e058e768b7 100644 (file)
@@ -639,10 +639,10 @@ PortManager::silence (pframes_t nframes)
 }
 
 void
-PortManager::silence_physical (pframes_t nframes)
+PortManager::silence_outputs (pframes_t nframes)
 {
        std::vector<std::string> port_names;
-       if (get_ports("", DataType::AUDIO, IsInput, port_names)) {
+       if (get_ports("", DataType::AUDIO, IsOutput, port_names)) {
                for (std::vector<std::string>::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<std::string>::iterator p = port_names.begin(); p != port_names.end(); ++p) {
                        if (!port_is_mine(*p)) {
                                continue;