diff --git a/source/duke3d/src/mpu401.cpp b/source/duke3d/src/mpu401.cpp index 8ffd2f620..0b0af6eb0 100644 --- a/source/duke3d/src/mpu401.cpp +++ b/source/duke3d/src/mpu401.cpp @@ -257,6 +257,7 @@ int32_t MPU_Reset { midiStreamStop(hmido); midiStreamClose(hmido); + hmido = (HMIDISTRM)-1; return MPU_Ok; } @@ -274,6 +275,9 @@ int32_t MPU_Init ) { + if (hmido != (HMIDISTRM)-1) + return MPU_Ok; + int32_t i; for (i=0; i