From bb4797ee68c0f12018196d3ee8caddcdcad9fe38 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Sat, 19 May 2018 22:33:37 +0300 Subject: Works and fixes - Fixed an incorrect calculation of 4-op channels and choosing 4-op channels for 2-op only banks - Resolved trouble with automatically chosen flags because of internal confusion --- utils/gen_adldata/gen_adldata.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/gen_adldata/gen_adldata.cc') diff --git a/utils/gen_adldata/gen_adldata.cc b/utils/gen_adldata/gen_adldata.cc index d1a64ee..8e6418a 100644 --- a/utils/gen_adldata/gen_adldata.cc +++ b/utils/gen_adldata/gen_adldata.cc @@ -406,7 +406,9 @@ int main(int argc, char**argv) } #endif - unsigned flags = (i->first.pseudo4op ? 1 : 0) | (info.nosound ? 2 : 0); + unsigned flags = (i->first.pseudo4op ? ins::Flag_Pseudo4op : 0)| + (i->first.real4op ? ins::Flag_Real4op : 0) | + (info.nosound ? ins::Flag_NoSound : 0); std::fprintf(outFile, " {"); std::fprintf(outFile, "%4d,%4d,%3d, %d, %6" PRId64 ",%6" PRId64 ",%lf", -- cgit v1.2.3