minor fixes

This commit is contained in:
tildearrow 2022-12-13 13:23:48 -05:00
parent c163f70983
commit 778d8d84d1
4 changed files with 5 additions and 9 deletions

View File

@ -27,8 +27,7 @@
#define MAX_CUSTOM_CLOCK 40000000
// common shared channel struct
template<typename T>
struct SharedChannel {
template<typename T> struct SharedChannel {
int freq, baseFreq, pitch, pitch2;
int ins, note;
bool active, insChanged, freqChanged, keyOn, keyOff, portaPause, inPorta;

View File

@ -27,15 +27,13 @@ class DivPlatformMMC5: public DivDispatch {
int prevFreq;
unsigned char duty, sweep;
bool sweepChanged, furnaceDac;
signed short wave;
Channel():
SharedChannel<signed char>(15),
prevFreq(65535),
duty(0),
sweep(8),
sweepChanged(false),
furnaceDac(false),
wave(-1) {}
furnaceDac(false) {}
};
Channel chan[5];
DivDispatchOscBuffer* oscBuf[3];

View File

@ -91,7 +91,8 @@ class DivPlatformMSM6295: public DivDispatch, public vgsound_emu_mem_intf {
virtual int init(DivEngine* parent, int channels, int sugRate, const DivConfig& flags) override;
virtual void quit() override;
DivPlatformMSM6295():DivDispatch(),
DivPlatformMSM6295():
DivDispatch(),
vgsound_emu_mem_intf(),
msm(*this) {}
~DivPlatformMSM6295();

View File

@ -29,7 +29,6 @@ class DivPlatformNES: public DivDispatch {
int prevFreq;
unsigned char duty, sweep, envMode, len;
bool sweepChanged, furnaceDac;
signed short wave;
Channel():
SharedChannel<signed char>(15),
prevFreq(65535),
@ -38,8 +37,7 @@ class DivPlatformNES: public DivDispatch {
envMode(3),
len(0x1f),
sweepChanged(false),
furnaceDac(false),
wave(-1) {}
furnaceDac(false) {}
};
Channel chan[5];
DivDispatchOscBuffer* oscBuf[5];