MOD import: add some stereo separation
This commit is contained in:
parent
f4c3f5a17f
commit
219c5a0522
|
@ -1434,6 +1434,7 @@ bool DivEngine::loadMod(unsigned char* file, size_t len) {
|
||||||
fxVal=0;
|
fxVal=0;
|
||||||
// fall through
|
// fall through
|
||||||
case 4: // vibrato
|
case 4: // vibrato
|
||||||
|
// TODO: handle 0 value?
|
||||||
if (fxVal==0) {
|
if (fxVal==0) {
|
||||||
if (setEffectState[2]<0) break;
|
if (setEffectState[2]<0) break;
|
||||||
fxVal=setEffectState[2];
|
fxVal=setEffectState[2];
|
||||||
|
@ -1463,7 +1464,8 @@ bool DivEngine::loadMod(unsigned char* file, size_t len) {
|
||||||
data[row][3]=fxVal;
|
data[row][3]=fxVal;
|
||||||
break;
|
break;
|
||||||
case 15: // set speed
|
case 15: // set speed
|
||||||
// TODO somehow handle VBlank tunes
|
// TODO: somehow handle VBlank tunes
|
||||||
|
// TODO: klisje is still broken, perhaps because there wasn't tempo set back then?
|
||||||
if (fxVal>0x20) {
|
if (fxVal>0x20) {
|
||||||
writeFxCol(0xf0,fxVal);
|
writeFxCol(0xf0,fxVal);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1515,7 +1517,7 @@ bool DivEngine::loadMod(unsigned char* file, size_t len) {
|
||||||
ds.systemLen=(chCount+3)/4;
|
ds.systemLen=(chCount+3)/4;
|
||||||
for(int i=0; i<ds.systemLen; i++) {
|
for(int i=0; i<ds.systemLen; i++) {
|
||||||
ds.system[i]=DIV_SYSTEM_AMIGA;
|
ds.system[i]=DIV_SYSTEM_AMIGA;
|
||||||
ds.systemFlags[i]=1; // PAL
|
ds.systemFlags[i]=1|(80<<8); // PAL
|
||||||
}
|
}
|
||||||
for(int i=0; i<chCount; i++) {
|
for(int i=0; i<chCount; i++) {
|
||||||
ds.chanShow[i]=true;
|
ds.chanShow[i]=true;
|
||||||
|
|
Loading…
Reference in a new issue