prepare for something
This commit is contained in:
parent
fd176dee84
commit
f16b23772e
|
@ -33,15 +33,23 @@
|
||||||
class DivPlatformC64: public DivDispatch {
|
class DivPlatformC64: public DivDispatch {
|
||||||
struct Channel: public SharedChannel<signed char> {
|
struct Channel: public SharedChannel<signed char> {
|
||||||
int prevFreq, testWhen;
|
int prevFreq, testWhen;
|
||||||
|
unsigned int audPos, pcmPos;
|
||||||
|
int sample, pcmPeriod, pcmRate, pcmOut;
|
||||||
unsigned char sweep, wave, attack, decay, sustain, release;
|
unsigned char sweep, wave, attack, decay, sustain, release;
|
||||||
short duty;
|
short duty;
|
||||||
bool sweepChanged, filter;
|
bool sweepChanged, filter, setPos, pcm;
|
||||||
bool resetMask, resetFilter, resetDuty, gate, ring, sync, test;
|
bool resetMask, resetFilter, resetDuty, gate, ring, sync, test;
|
||||||
short pw_slide;
|
short pw_slide;
|
||||||
Channel():
|
Channel():
|
||||||
SharedChannel<signed char>(15),
|
SharedChannel<signed char>(15),
|
||||||
prevFreq(65535),
|
prevFreq(65535),
|
||||||
testWhen(0),
|
testWhen(0),
|
||||||
|
audPos(0),
|
||||||
|
pcmPos(0),
|
||||||
|
sample(-1),
|
||||||
|
pcmPeriod(0),
|
||||||
|
pcmRate(0),
|
||||||
|
pcmOut(0),
|
||||||
sweep(0),
|
sweep(0),
|
||||||
wave(0),
|
wave(0),
|
||||||
attack(0),
|
attack(0),
|
||||||
|
@ -51,6 +59,8 @@ class DivPlatformC64: public DivDispatch {
|
||||||
duty(0),
|
duty(0),
|
||||||
sweepChanged(false),
|
sweepChanged(false),
|
||||||
filter(false),
|
filter(false),
|
||||||
|
setPos(false),
|
||||||
|
pcm(false),
|
||||||
resetMask(false),
|
resetMask(false),
|
||||||
resetFilter(false),
|
resetFilter(false),
|
||||||
resetDuty(false),
|
resetDuty(false),
|
||||||
|
@ -60,11 +70,11 @@ class DivPlatformC64: public DivDispatch {
|
||||||
test(false),
|
test(false),
|
||||||
pw_slide(0) {}
|
pw_slide(0) {}
|
||||||
};
|
};
|
||||||
Channel chan[3];
|
Channel chan[4];
|
||||||
DivDispatchOscBuffer* oscBuf[3];
|
DivDispatchOscBuffer* oscBuf[4];
|
||||||
bool isMuted[3];
|
bool isMuted[4];
|
||||||
float fakeLow[3];
|
float fakeLow[4];
|
||||||
float fakeBand[3];
|
float fakeBand[4];
|
||||||
float fakeCutTable[2048];
|
float fakeCutTable[2048];
|
||||||
struct QueuedWrite {
|
struct QueuedWrite {
|
||||||
unsigned char addr;
|
unsigned char addr;
|
||||||
|
|
Loading…
Reference in a new issue