summaryrefslogtreecommitdiff
path: root/libs/ardour/audio_unit.cc
diff options
context:
space:
mode:
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2018-07-31 11:37:33 +0200
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>2019-05-12 22:32:10 +0200
commite9f02e28d30b95642d08405eec3907ed849f5e20 (patch)
treee16866eb09efa3cf3ee1c6d4d473baf80a2649f2 /libs/ardour/audio_unit.cc
parent12808c7bd2153984b2d3a181746a3ec4eb573822 (diff)
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.
Diffstat (limited to 'libs/ardour/audio_unit.cc')
-rw-r--r--libs/ardour/audio_unit.cc6
1 files 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); \
} \
}