aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-05-07 09:29:35 +0200
committerAdrian Frühwirth2018-05-07 09:30:00 +0200
commite45a0ce3da708594d413b8d628f018980061fc33 (patch)
treeff9503335789bc3337c7508acc4187f2bd7c8275
parent16af24c536dec5aea4a17a61380b087de843ed1c (diff)
downloadscummvm-rg350-e45a0ce3da708594d413b8d628f018980061fc33.tar.gz
scummvm-rg350-e45a0ce3da708594d413b8d628f018980061fc33.tar.bz2
scummvm-rg350-e45a0ce3da708594d413b8d628f018980061fc33.zip
SWORD25: Fix otherwise unused variable not guarded by USE_VORBIS
This silences a gcc warning when compiling with -Wunused-variable.
-rw-r--r--engines/sword25/sfx/soundengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/sfx/soundengine.cpp b/engines/sword25/sfx/soundengine.cpp
index 8bc20180af..2e7b41c431 100644
--- a/engines/sword25/sfx/soundengine.cpp
+++ b/engines/sword25/sfx/soundengine.cpp
@@ -203,8 +203,8 @@ bool SoundEngine::playSound(const Common::String &fileName, SOUND_TYPES type, fl
}
uint SoundEngine::playSoundEx(const Common::String &fileName, SOUND_TYPES type, float volume, float pan, bool loop, int loopStart, int loopEnd, uint layer, uint handleId) {
- Common::SeekableReadStream *in = Kernel::getInstance()->getPackage()->getStream(fileName);
#ifdef USE_VORBIS
+ Common::SeekableReadStream *in = Kernel::getInstance()->getPackage()->getStream(fileName);
Audio::SeekableAudioStream *stream = Audio::makeVorbisStream(in, DisposeAfterUse::YES);
#endif
uint id = handleId;