SMS: alleviate Nuked-PSG clicking, part 1

This commit is contained in:
tildearrow 2022-11-07 17:35:00 -05:00
parent 184a6bd6b2
commit 133627b325
2 changed files with 16 additions and 5 deletions

View file

@ -31,7 +31,7 @@ extern "C" {
class DivPlatformSMS: public DivDispatch {
struct Channel {
int freq, baseFreq, pitch, pitch2, note, actualNote, ins;
bool active, insChanged, freqChanged, keyOn, keyOff, inPorta;
bool active, insChanged, freqChanged, keyOn, keyOff, inPorta, writeVol;
signed char vol, outVol;
DivMacroInt std;
void macroInit(DivInstrument* which) {
@ -52,6 +52,7 @@ class DivPlatformSMS: public DivDispatch {
keyOn(false),
keyOff(false),
inPorta(false),
writeVol(false),
vol(15),
outVol(15) {}
};