From e9f02e28d30b95642d08405eec3907ed849f5e20 Mon Sep 17 00:00:00 2001 From: "Julien \"_FrnchFrgg_\" RIVAUD" Date: Tue, 31 Jul 2018 11:37:33 +0200 Subject: Prefer int32_t to int for channel counts To match the actual type used by ChanCount. Keep the int type in the structure passed in by the Audio Unit, because we have no control over it. --- libs/ardour/audio_unit.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc index 73f740d00c..1ee140ac0a 100644 --- a/libs/ardour/audio_unit.cc +++ b/libs/ardour/audio_unit.cc @@ -1328,7 +1328,7 @@ AUPlugin::can_support_io_configuration (const ChanCount& in, ChanCount& out, Cha #endif // preferred setting (provided by plugin_insert) - const int preferred_out = out.n_audio (); + const int32_t preferred_out = out.n_audio (); bool found = false; bool exact_match = false; @@ -1379,7 +1379,7 @@ AUPlugin::can_support_io_configuration (const ChanCount& in, ChanCount& out, Cha /* now allow potentially "imprecise" matches */ int32_t audio_out = -1; float penalty = 9999; - int used_possible_in = 0; + int32_t used_possible_in = 0; #if defined (__clang__) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wtautological-compare" @@ -1403,7 +1403,7 @@ AUPlugin::can_support_io_configuration (const ChanCount& in, ChanCount& out, Cha _output_configs.insert (0); #define UPTO(nch) { \ - for (int n = 1; n <= nch; ++n) { \ + for (int32_t n = 1; n <= nch; ++n) { \ _output_configs.insert (n); \ } \ } -- cgit v1.2.3