aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThierry Crozat2016-04-17 22:16:00 +0100
committerThierry Crozat2016-04-17 22:17:01 +0100
commite44470ab545721f77ce55509de6dcee739f606eb (patch)
tree4c56f630279e69e43023e682c0a5a8ba215606e0 /engines
parente90f01bc0c802ed69e2a4a39deeeb92fcdd1dc1b (diff)
downloadscummvm-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
Diffstat (limited to 'engines')
-rw-r--r--engines/drascula/sound.cpp4
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