diff options
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r-- | libs/ardour/audioengine.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 39c8d71534..c40180e91d 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -1178,36 +1178,6 @@ AudioEngine::get_physical_outputs (DataType type, vector<string>& outs) get_physical (type, JackPortIsOutput, outs); } -string -AudioEngine::get_nth_physical (DataType type, uint32_t n, int flag) -{ - GET_PRIVATE_JACK_POINTER_RET (_jack,""); - const char ** ports; - uint32_t i; - uint32_t idx; - string ret; - - assert(type != DataType::NIL); - - if ((ports = jack_get_ports (_priv_jack, NULL, type.to_jack_type(), JackPortIsPhysical|flag)) == 0) { - return ret; - } - - for (i = 0, idx = 0; idx < n && ports[i]; ++i) { - if (!strstr (ports[i], "Midi-Through")) { - ++idx; - } - } - - if (ports[idx]) { - ret = ports[idx]; - } - - free ((const char **) ports); - - return ret; -} - void AudioEngine::update_total_latency (const Port& port) { |