LuaProc::can_support_io_configuration: don't mix int and int32_t
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Mon, 1 Aug 2016 11:24:08 +0000 (13:24 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sat, 6 Aug 2016 17:38:09 +0000 (19:38 +0200)
libs/ardour/luaproc.cc

index af5534e21ab71fba84e2ccd8eb70811bd67a363f..39b45b416c6d98f0f4d59aa3a6bd488f367fca03 100644 (file)
@@ -380,8 +380,8 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan
 
        bool found = false;
        bool exact_match = false;
 
        bool found = false;
        bool exact_match = false;
-       const int32_t audio_in = in.n_audio ();
-       int32_t midi_out = _has_midi_output ? 1 : 0;
+       const int audio_in = in.n_audio ();
+       int midi_out = _has_midi_output ? 1 : 0;
 
        // preferred setting (provided by plugin_insert)
        assert (out.n_audio () > 0 || midi_out > 0);
 
        // preferred setting (provided by plugin_insert)
        assert (out.n_audio () > 0 || midi_out > 0);
@@ -406,7 +406,7 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan
        }
 
        /* now allow potentially "imprecise" matches */
        }
 
        /* now allow potentially "imprecise" matches */
-       int32_t audio_out = -1;
+       int audio_out = -1;
        float penalty = 9999;
 
 #define FOUNDCFG(nch) {                            \
        float penalty = 9999;
 
 #define FOUNDCFG(nch) {                            \