diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-02 14:25:46 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-06 19:38:09 +0200 |
commit | 961b9c8be89e430ea916a53bc16ed1de57befa39 (patch) | |
tree | 1f9e60722a4b5ebe7a433a99028adee7f74ae1a9 /libs/ardour | |
parent | 08f3ef4ecdbd4369c8de844967648ec3b0656919 (diff) |
Set \imprecise midi channel count in FOUNDCFG
So that it can depend on the actual configuration selected.
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/luaproc.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index ae0b09717f..27746d29cb 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -393,6 +393,8 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan audio_out = (nch); \ if (imprecise) { \ *imprecise = in; \ + imprecise->set (DataType::MIDI, \ + possible_midiin); \ } \ penalty = p; \ found = true; \ @@ -518,6 +520,7 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan int possible_in = io["audio_in"].isNumber() ? io["audio_in"] : -1; int possible_out = io["audio_out"].isNumber() ? io["audio_out"] : -1; + int possible_midiin = _has_midi_input ? 1 : 0; if (possible_out == 0 && possible_in == 0 && _has_midi_output) { assert (audio_in > 0); // no input is handled above @@ -550,7 +553,6 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan } if (imprecise) { - imprecise->set (DataType::MIDI, _has_midi_input ? 1 : 0); _selected_in = *imprecise; } else { _selected_in = in; |