From e45a0ce3da708594d413b8d628f018980061fc33 Mon Sep 17 00:00:00 2001 From: Adrian Frühwirth Date: Mon, 7 May 2018 09:29:35 +0200 Subject: SWORD25: Fix otherwise unused variable not guarded by USE_VORBIS This silences a gcc warning when compiling with -Wunused-variable. --- engines/sword25/sfx/soundengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sword25/sfx') 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; -- cgit v1.2.3