prepare for volume handling refactor

This commit is contained in:
tildearrow 2023-11-01 20:43:48 -05:00
parent ff9078d59f
commit 4bc5f49fe6
4 changed files with 25 additions and 879 deletions

View file

@ -30,7 +30,7 @@
template<typename T> struct SharedChannel {
int freq, baseFreq, baseNoteOverride, pitch, pitch2, arpOff;
int ins, note;
bool active, insChanged, freqChanged, fixedArp, keyOn, keyOff, portaPause, inPorta;
bool active, insChanged, freqChanged, fixedArp, keyOn, keyOff, portaPause, inPorta, volChanged;
T vol, outVol;
DivMacroInt std;
void handleArp(int offset=0) {
@ -79,6 +79,7 @@ template<typename T> struct SharedChannel {
keyOff(false),
portaPause(false),
inPorta(false),
volChanged(false),
vol(initVol),
outVol(initVol),
std() {}