From e44470ab545721f77ce55509de6dcee739f606eb Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sun, 17 Apr 2016 22:16:00 +0100 Subject: DRASCULA: Fix noise when playing sound. The original engine skipped the first 32 and last 32 bytes of the data when playing a sound. We did not do it in ScummVM which resulted in noise at the start and/or end of some speech. This was most noticeable with Spanish speech but also occurred occasionally with English speech. This fixes bug #7120 Drascula: Audio noise before every voice in the game --- engines/drascula/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/drascula') diff --git a/engines/drascula/sound.cpp b/engines/drascula/sound.cpp index 204a6f231c..62ec796678 100644 --- a/engines/drascula/sound.cpp +++ b/engines/drascula/sound.cpp @@ -166,8 +166,8 @@ void DrasculaEngine::MusicFadeout() { void DrasculaEngine::playFile(const char *fname) { Common::SeekableReadStream *stream = _archives.open(fname); if (stream) { - int startOffset = 0; - int soundSize = stream->size() - startOffset; + int startOffset = 32; + int soundSize = stream->size() - 64; if (!strcmp(fname, "3.als") && soundSize == 145166 && _lang != kSpanish) { // WORKAROUND: File 3.als with English speech files has a big silence at -- cgit v1.2.3