mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
fix #172
This commit is contained in:
parent
53482105dc
commit
bfb902f649
2 changed files with 7 additions and 1 deletions
|
@ -106,9 +106,12 @@ void DivPlatformSMS::tick() {
|
|||
}
|
||||
if (value<3) {
|
||||
value=2-value;
|
||||
if (value!=oldValue || updateSNMode || resetPhase) {
|
||||
oldValue=value;
|
||||
rWrite(0xe0|value|((snNoiseMode&1)<<2));
|
||||
}
|
||||
}
|
||||
}
|
||||
chan[3].freqChanged=false;
|
||||
updateSNMode=false;
|
||||
}
|
||||
|
@ -240,6 +243,7 @@ void DivPlatformSMS::reset() {
|
|||
snNoiseMode=3;
|
||||
rWrite(0xe7);
|
||||
updateSNMode=false;
|
||||
oldValue=0xff;
|
||||
}
|
||||
|
||||
bool DivPlatformSMS::keyOffAffectsArp(int ch) {
|
||||
|
@ -304,6 +308,7 @@ int DivPlatformSMS::init(DivEngine* p, int channels, int sugRate, unsigned int f
|
|||
dumpWrites=false;
|
||||
skipRegisterWrites=false;
|
||||
resetPhase=false;
|
||||
oldValue=0xff;
|
||||
for (int i=0; i<4; i++) {
|
||||
isMuted[i]=false;
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ class DivPlatformSMS: public DivDispatch {
|
|||
};
|
||||
Channel chan[4];
|
||||
bool isMuted[4];
|
||||
unsigned char oldValue;
|
||||
unsigned char snNoiseMode;
|
||||
bool updateSNMode;
|
||||
bool resetPhase;
|
||||
|
|
Loading…
Reference in a new issue