aboutsummaryrefslogtreecommitdiff
path: root/audio/mods
diff options
context:
space:
mode:
authorD G Turner2019-11-28 14:38:43 +0000
committerD G Turner2019-11-28 14:38:43 +0000
commit3959797b85430b5ae0e2a9a9e182582bdf889723 (patch)
tree1a6cb0ecd64e4fc51426d5833136864cda622b47 /audio/mods
parent8e2f48636a4dbb926c12e49c6288216f93542015 (diff)
downloadscummvm-rg350-3959797b85430b5ae0e2a9a9e182582bdf889723.tar.gz
scummvm-rg350-3959797b85430b5ae0e2a9a9e182582bdf889723.tar.bz2
scummvm-rg350-3959797b85430b5ae0e2a9a9e182582bdf889723.zip
AUDIO: Fix Remaining Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'audio/mods')
-rw-r--r--audio/mods/maxtrax.cpp7
-rw-r--r--audio/mods/tfmx.cpp6
2 files changed, 13 insertions, 0 deletions
diff --git a/audio/mods/maxtrax.cpp b/audio/mods/maxtrax.cpp
index b907357c70..4295b57aa7 100644
--- a/audio/mods/maxtrax.cpp
+++ b/audio/mods/maxtrax.cpp
@@ -236,6 +236,8 @@ void MaxTrax::interrupt() {
}
}
break;
+ default:
+ break;
}
break;
@@ -327,6 +329,9 @@ endOfEventLoop:
}
voice.stopEventTime = -1;
break;
+
+ default:
+ break;
}
// Process Envelope
@@ -501,6 +506,8 @@ allNotesOff:
killVoice((byte)i);
}
break;
+ default:
+ break;
}
}
diff --git a/audio/mods/tfmx.cpp b/audio/mods/tfmx.cpp
index 8d31faa104..a2a474ae65 100644
--- a/audio/mods/tfmx.cpp
+++ b/audio/mods/tfmx.cpp
@@ -604,6 +604,9 @@ bool Tfmx::patternRun(PatternContext &pattern) {
case 15: // NOP
continue;
+
+ default:
+ break;
}
}
}
@@ -732,6 +735,9 @@ void Tfmx::noteCommand(const uint8 note, const uint8 param1, const uint8 param2,
channel.envCount = channel.envSkip = (param2 >> 4) + 1;
channel.envEndVolume = param3;
break;
+
+ default:
+ break;
}
}