aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/music.cpp16
-rw-r--r--engines/sword2/sound.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/engines/sword2/music.cpp b/engines/sword2/music.cpp
index 41b2d62c4a..09c2117443 100644
--- a/engines/sword2/music.cpp
+++ b/engines/sword2/music.cpp
@@ -97,15 +97,15 @@ static Audio::AudioStream *getAudioStream(SoundFileHandle *fh, const char *base,
const char *ext;
int mode;
} file_types[] = {
- #ifdef USE_FLAC
- { "clf", kFlacMode },
- #endif
- #ifdef USE_VORBIS
+#ifdef USE_FLAC
+ { "clf", kFLACMode },
+#endif
+#ifdef USE_VORBIS
{ "clg", kVorbisMode },
- #endif
- #ifdef USE_MAD
+#endif
+#ifdef USE_MAD
{ "cl3", kMP3Mode },
- #endif
+#endif
{ "clu", kCLUMode }
};
@@ -207,7 +207,7 @@ static Audio::AudioStream *getAudioStream(SoundFileHandle *fh, const char *base,
return Audio::makeVorbisStream(tmp, DisposeAfterUse::YES);
#endif
#ifdef USE_FLAC
- case kFlacMode:
+ case kFLACMode:
tmp = new SafeSubReadStream(&fh->file, pos, pos + enc_len);
return Audio::makeFLACStream(tmp, DisposeAfterUse::YES);
#endif
diff --git a/engines/sword2/sound.h b/engines/sword2/sound.h
index f58794c8f1..f59d6a3434 100644
--- a/engines/sword2/sound.h
+++ b/engines/sword2/sound.h
@@ -56,7 +56,7 @@ enum {
kCLUMode = 1,
kMP3Mode,
kVorbisMode,
- kFlacMode
+ kFLACMode
};
enum {