From 2f22673945f69268c031ebbb7b0d1cd3f01c6e39 Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Sun, 16 Feb 2014 00:19:11 +0100 Subject: BBVS: Remove unneccessary makeLoopingAudioStream in playSpeech and use the audiostream directly --- engines/bbvs/bbvs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/bbvs') diff --git a/engines/bbvs/bbvs.cpp b/engines/bbvs/bbvs.cpp index 77288b58c7..c886ed961e 100644 --- a/engines/bbvs/bbvs.cpp +++ b/engines/bbvs/bbvs.cpp @@ -2127,7 +2127,7 @@ void BbvsEngine::playSpeech(int soundNum) { Common::String sndFilename = Common::String::format("snd/snd%05d.aif", soundNum); Common::File *fd = new Common::File(); fd->open(sndFilename); - Audio::AudioStream *audioStream = Audio::makeLoopingAudioStream(Audio::makeAIFFStream(fd, DisposeAfterUse::YES), 1); + Audio::AudioStream *audioStream = Audio::makeAIFFStream(fd, DisposeAfterUse::YES); _mixer->playStream(Audio::Mixer::kSpeechSoundType, &_speechSoundHandle, audioStream); } -- cgit v1.2.3