diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-04 09:40:16 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-06 19:38:09 +0200 |
commit | 93aa03ee2a54a02ef8df74cdf16539ebba827cf2 (patch) | |
tree | 75d34a873fe23685a27f9fe66179a108cc626cad /libs/ardour/luaproc.cc | |
parent | 8b2c2df8402321044550d0fc5c074859bf6ebd95 (diff) |
Change column width in macros
Diffstat (limited to 'libs/ardour/luaproc.cc')
-rw-r--r-- | libs/ardour/luaproc.cc | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index dec5de3b77..f2db7848c8 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -385,40 +385,39 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan float penalty = 9999; bool found = false; -#define FOUNDCFG_PENALTY(in, out, p) { \ - _output_configs.insert (out); \ - if (p < penalty) { \ - audio_out = (out); \ - midi_out = possible_midiout; \ - if (imprecise) { \ - imprecise->set (DataType::AUDIO, (in)); \ - imprecise->set (DataType::MIDI, \ - possible_midiin); \ - } \ - penalty = p; \ - found = true; \ - } \ +#define FOUNDCFG_PENALTY(in, out, p) { \ + _output_configs.insert (out); \ + if (p < penalty) { \ + audio_out = (out); \ + midi_out = possible_midiout; \ + if (imprecise) { \ + imprecise->set (DataType::AUDIO, (in)); \ + imprecise->set (DataType::MIDI, possible_midiin); \ + } \ + penalty = p; \ + found = true; \ + } \ } -#define FOUNDCFG_IMPRECISE(in, out) { \ - float p = fabsf ((float)(out) - preferred_out); \ - if (in != audio_in) { \ - p += 1000; \ - } \ - if ((out) > preferred_out) { p *= 1.1; } \ - FOUNDCFG_PENALTY(in, out, p); \ +#define FOUNDCFG_IMPRECISE(in, out) { \ + float p = fabsf ((float)(out) - preferred_out) ; \ + if (in != audio_in) { \ + p += 1000; \ + } \ + if ((out) > preferred_out) { p *= 1.1; } \ + FOUNDCFG_PENALTY(in, out, p); \ } -#define FOUNDCFG(out) \ +#define FOUNDCFG(out) \ FOUNDCFG_IMPRECISE(audio_in, out) -#define ANYTHINGGOES \ +#define ANYTHINGGOES \ _output_configs.insert (0); -#define UPTO(nch) { \ - for (int n = 1; n < nch; ++n) { \ - _output_configs.insert (n); \ - } \ +#define UPTO(nch) { \ + for (int n = 1; n < nch; ++n) { \ + _output_configs.insert (n); \ + } \ } if (imprecise) { |