diff options
author | Thierry Crozat | 2016-04-17 22:16:00 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-04-17 22:17:01 +0100 |
commit | e44470ab545721f77ce55509de6dcee739f606eb (patch) | |
tree | 4c56f630279e69e43023e682c0a5a8ba215606e0 | |
parent | e90f01bc0c802ed69e2a4a39deeeb92fcdd1dc1b (diff) | |
download | scummvm-rg350-e44470ab545721f77ce55509de6dcee739f606eb.tar.gz scummvm-rg350-e44470ab545721f77ce55509de6dcee739f606eb.tar.bz2 scummvm-rg350-e44470ab545721f77ce55509de6dcee739f606eb.zip |
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
-rw-r--r-- | engines/drascula/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |