mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-18 06:20:17 +00:00
(12*sampleBank+c.value%12)
This commit is contained in:
parent
4695659ae4
commit
d981e59c59
4 changed files with 4 additions and 2 deletions
|
@ -776,6 +776,7 @@ void DivPlatformAY8910::setFlags(const DivConfig& flags) {
|
||||||
if (extMode) {
|
if (extMode) {
|
||||||
chipClock=extClock;
|
chipClock=extClock;
|
||||||
rate=chipClock/extDiv;
|
rate=chipClock/extDiv;
|
||||||
|
clockSel=false;
|
||||||
} else {
|
} else {
|
||||||
clockSel=flags.getBool("halfClock",false);
|
clockSel=flags.getBool("halfClock",false);
|
||||||
switch (flags.getInt("clockSel",0)) {
|
switch (flags.getInt("clockSel",0)) {
|
||||||
|
|
|
@ -167,7 +167,7 @@ int DivPlatformMSM6258::dispatch(DivCommand c) {
|
||||||
chan[c.chan].sample=-1;
|
chan[c.chan].sample=-1;
|
||||||
chan[c.chan].macroInit(NULL);
|
chan[c.chan].macroInit(NULL);
|
||||||
chan[c.chan].outVol=chan[c.chan].vol;
|
chan[c.chan].outVol=chan[c.chan].vol;
|
||||||
if ((12*sampleBank+c.value%12)>=parent->song.sampleLen) {
|
if ((12*sampleBank+c.value%12)<0 || (12*sampleBank+c.value%12)>=parent->song.sampleLen) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//DivSample* s=parent->getSample(12*sampleBank+c.value%12);
|
//DivSample* s=parent->getSample(12*sampleBank+c.value%12);
|
||||||
|
|
|
@ -158,7 +158,7 @@ int DivPlatformMSM6295::dispatch(DivCommand c) {
|
||||||
chan[c.chan].sample=-1;
|
chan[c.chan].sample=-1;
|
||||||
chan[c.chan].macroInit(NULL);
|
chan[c.chan].macroInit(NULL);
|
||||||
chan[c.chan].outVol=chan[c.chan].vol;
|
chan[c.chan].outVol=chan[c.chan].vol;
|
||||||
if ((12*sampleBank+c.value%12)>=parent->song.sampleLen) {
|
if ((12*sampleBank+c.value%12)<0 || (12*sampleBank+c.value%12)>=parent->song.sampleLen) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//DivSample* s=parent->getSample(12*sampleBank+c.value%12);
|
//DivSample* s=parent->getSample(12*sampleBank+c.value%12);
|
||||||
|
|
|
@ -561,6 +561,7 @@ int DivPlatformX1_010::dispatch(DivCommand c) {
|
||||||
} else {
|
} else {
|
||||||
chan[c.chan].macroInit(NULL);
|
chan[c.chan].macroInit(NULL);
|
||||||
chan[c.chan].outVol=chan[c.chan].vol;
|
chan[c.chan].outVol=chan[c.chan].vol;
|
||||||
|
// huh?
|
||||||
if ((12*sampleBank+c.value%12)>=parent->song.sampleLen) {
|
if ((12*sampleBank+c.value%12)>=parent->song.sampleLen) {
|
||||||
chWrite(c.chan,0,0); // reset
|
chWrite(c.chan,0,0); // reset
|
||||||
chWrite(c.chan,1,0);
|
chWrite(c.chan,1,0);
|
||||||
|
|
Loading…
Reference in a new issue