Skip to content

Commit

Permalink
DRASCULA: Fix noise when playing sound.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
criezy committed Apr 17, 2016
1 parent 6390b41 commit bc2f133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/drascula/sound.cpp
Expand Up @@ -169,8 +169,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
Expand Down

0 comments on commit bc2f133

Please sign in to comment.