aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/sound
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/sound')
-rw-r--r--engines/gob/sound/bgatmosphere.cpp1
-rw-r--r--engines/gob/sound/sounddesc.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/sound/bgatmosphere.cpp b/engines/gob/sound/bgatmosphere.cpp
index c7be1be96a..dffc0f75b1 100644
--- a/engines/gob/sound/bgatmosphere.cpp
+++ b/engines/gob/sound/bgatmosphere.cpp
@@ -102,6 +102,7 @@ void BackgroundAtmosphere::getNextQueuePos() {
switch (_playMode) {
case Sound::kPlayModeLinear:
+ default:
_queuePos = (_queuePos + 1) % _queue.size();
break;
diff --git a/engines/gob/sound/sounddesc.cpp b/engines/gob/sound/sounddesc.cpp
index d56387078a..5997c994b9 100644
--- a/engines/gob/sound/sounddesc.cpp
+++ b/engines/gob/sound/sounddesc.cpp
@@ -96,6 +96,8 @@ bool SoundDesc::load(SoundType type, byte *data, uint32 dSize) {
return loadSND(data, dSize);
case SOUND_WAV:
return loadWAV(data, dSize);
+ default:
+ break;
}
return false;