diff options
author | Torbjörn Andersson | 2012-11-17 11:53:54 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2012-11-17 11:53:54 +0100 |
commit | ee65532a5e3af0a92384d6d777110b6e602cf1c3 (patch) | |
tree | db94721bb50a9261f542f5ab2917ff4396aa38b1 /engines/scumm/player_mac.h | |
parent | 4626e211496aad5ffe27bea3121483faa98770d7 (diff) | |
download | scummvm-rg350-ee65532a5e3af0a92384d6d777110b6e602cf1c3.tar.gz scummvm-rg350-ee65532a5e3af0a92384d6d777110b6e602cf1c3.tar.bz2 scummvm-rg350-ee65532a5e3af0a92384d6d777110b6e602cf1c3.zip |
SCUMM: Avoid "pops" at the end of the note in Mac MI1/Loom music
At least on my computer, when the note ended abruptly there would
be an annoying "pop" at the end. This was particularly noticeable
at the end of the distaff notes in Loom. To get around this, fade
out the last 100 samples. There's nothing magical about 100 in
particular, but it's a nice even number and it should be short
enough that it's never a noticeable part of the note, even at low
sample rates.
Diffstat (limited to 'engines/scumm/player_mac.h')
-rw-r--r-- | engines/scumm/player_mac.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/player_mac.h b/engines/scumm/player_mac.h index 0585eb16b0..3f5184d2d8 100644 --- a/engines/scumm/player_mac.h +++ b/engines/scumm/player_mac.h @@ -90,7 +90,7 @@ private: _subPos = 0; } - void generateSamples(int16 *data, int pitchModifier, int volume, int numSamples); + void generateSamples(int16 *data, int pitchModifier, int volume, int numSamples, int remainingSamplesOnNote); }; int _pitchTable[128]; |