diff options
author | Adrian Frühwirth | 2018-05-07 09:29:35 +0200 |
---|---|---|
committer | Adrian Frühwirth | 2018-05-07 09:30:00 +0200 |
commit | e45a0ce3da708594d413b8d628f018980061fc33 (patch) | |
tree | ff9503335789bc3337c7508acc4187f2bd7c8275 /engines/sword25 | |
parent | 16af24c536dec5aea4a17a61380b087de843ed1c (diff) | |
download | scummvm-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.
Diffstat (limited to 'engines/sword25')
-rw-r--r-- | engines/sword25/sfx/soundengine.cpp | 2 |
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; |