giga-refactor, part 2

This commit is contained in:
tildearrow 2025-11-12 05:06:51 -05:00
parent a654d33df2
commit db419dc6c8
27 changed files with 282 additions and 237 deletions

View file

@ -429,9 +429,15 @@ struct DivSong {
*/
void clearSamples();
/**
* set systemChans[] to default values.
* call recalcChans() afterwards.
*/
void initDefaultSystemChans();
/**
* recalculate channel count and internal state.
" call after editing system[] or systemChans[].
* call after editing system[] or systemChans[].
*/
void recalcChans();
@ -538,6 +544,8 @@ struct DivSong {
subsong.push_back(new DivSubSong);
system[0]=DIV_SYSTEM_YM2612;
system[1]=DIV_SYSTEM_SMS;
systemChans[0]=6;
systemChans[1]=4;
// OPLL default instrument contest winner - piano_guitar_idk by Weeppiko
nullInsOPLL.type=DIV_INS_OPLL;