diff --git a/audio/softsynth/mt32/Part.cpp b/audio/softsynth/mt32/Part.cpp index 8c646b2b4909..c9bd86b54a4a 100644 --- a/audio/softsynth/mt32/Part.cpp +++ b/audio/softsynth/mt32/Part.cpp @@ -220,13 +220,13 @@ unsigned int Part::getAbsTimbreNum() const { return (patchTemp->patch.timbreGroup * 64) + patchTemp->patch.timbreNum; } -void RhythmPart::setProgram(unsigned int patchNum) { #if MT32EMU_MONITOR_MIDI > 0 +void RhythmPart::setProgram(unsigned int patchNum) { synth->printDebug("%s: Attempt to set program (%d) on rhythm is invalid", name, patchNum); +} #else - patchNum = 0; // Just to avoid unused variable warning +void RhythmPart::setProgram(unsigned int) { } #endif -} void Part::setProgram(unsigned int patchNum) { setPatch(&synth->mt32ram.patches[patchNum]);