Navigation:

Cannon Fodder DOS

New Comment

Post a new comment to participate in the discussion on how this game should be configured, or to add relevant information regarding the use of these configurations.

Posted by FrodeSolheim at 2017-03-01 19:50:12 (Updated 2017-03-01 20:00:50):

MIDI (Roland) music is broken with this game in DOSBox since SVN revision 3791. The following patch fixes it, but the fix is probably not ideal:

diff —git a/src/hardware/mpu401.cpp b/src/hardware/mpu401.cpp
index 8d3cdf4..2eef26c 100644
—- a/src/hardware/mpu401.cpp
+++ b/src/hardware/mpu401.cpp
@@ -122,7 +122,7 @@ static Bitu MPU401_ReadStatus(Bitu port,Bitu iolen) {
 }

 static void MPU401_WriteCommand(Bitu port,Bitu val,Bitu iolen) {
-       if (mpu.state.reset) {mpu.state.cmd_pending=val+1;return;}
+       mpu.state.reset = 0;
        if (val<=0x2f) {
                switch (val&3) { /* MIDI stop, start, continue */
                        case 1: {MIDI_RawOutByte(0xfc);break;}