aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-10 22:25:48 -0400
committerPaul Gilbert2015-08-10 22:25:48 -0400
commit4ad53dced0e6031f9f634e50dd7bae96b8d7f0f1 (patch)
tree2721504d6624f7b2327180f746832cb2907a7382
parent9b0bf9e21555fb1760d45792ab4bd6bcb67d08c6 (diff)
downloadscummvm-rg350-4ad53dced0e6031f9f634e50dd7bae96b8d7f0f1.tar.gz
scummvm-rg350-4ad53dced0e6031f9f634e50dd7bae96b8d7f0f1.tar.bz2
scummvm-rg350-4ad53dced0e6031f9f634e50dd7bae96b8d7f0f1.zip
SHERLOCK: RT: First speech is now playing correctly
-rw-r--r--engines/sherlock/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/sound.cpp b/engines/sherlock/sound.cpp
index ffc626c6f8..d4907e041a 100644
--- a/engines/sherlock/sound.cpp
+++ b/engines/sherlock/sound.cpp
@@ -272,7 +272,7 @@ void Sound::playSpeech(const Common::String &name) {
// TODO: Doesn't seem to be WAV files. Need to find out what format it is..
Common::SeekableReadStream *stream = res.load(name, libraryName);
- Audio::AudioStream *audioStream = Audio::makeWAVStream(stream, DisposeAfterUse::YES);
+ Audio::AudioStream *audioStream = Audio::makeRawStream(stream, 11025, Audio::FLAG_UNSIGNED);
_mixer->playStream(Audio::Mixer::kSpeechSoundType, &_speechHandle, audioStream, -1, Audio::Mixer::kMaxChannelVolume);
_speechPlaying = true;
}
@@ -282,7 +282,7 @@ void Sound::stopSpeech() {
}
bool Sound::isSpeechPlaying() {
- _speechOn = _mixer->isSoundHandleActive(_speechHandle);
+ _speechPlaying = _mixer->isSoundHandleActive(_speechHandle);
return _speechPlaying;
}