prepare for relative pitch macro

This commit is contained in:
tildearrow 2022-04-28 00:50:09 -05:00
parent 66f5b2117f
commit 77b4e57c58
35 changed files with 72 additions and 45 deletions

View file

@ -29,7 +29,7 @@ struct VERA_PCM;
class DivPlatformVERA: public DivDispatch {
protected:
struct Channel {
int freq, baseFreq, pitch, note, ins;
int freq, baseFreq, pitch, pitch2, note, ins;
unsigned char pan;
bool active, freqChanged, inPorta;
int vol, outVol;
@ -45,7 +45,8 @@ class DivPlatformVERA: public DivDispatch {
bool depth16;
PCMChannel(): sample(-1), pos(0), len(0), freq(0), depth16(false) {}
} pcm;
Channel(): freq(0), baseFreq(0), pitch(0), note(0), ins(-1), pan(0), active(false), freqChanged(false), inPorta(false), vol(0), outVol(0), accum(0), noiseval(0) {}
// somebody please split this into multiple lines!
Channel(): freq(0), baseFreq(0), pitch(0), pitch2(0), note(0), ins(-1), pan(0), active(false), freqChanged(false), inPorta(false), vol(0), outVol(0), accum(0), noiseval(0) {}
};
Channel chan[17];
bool isMuted[17];