mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-08 20:07:11 +00:00
FM-TOWNS AUDIO: fix regression
This commit is contained in:
parent
4b77a5a12e
commit
c1f00b1e8b
@ -1617,10 +1617,7 @@ int TownsAudio_PcmChannel::initInstrument(uint8 ¬e, TownsAudio_WaveTable *&ta
|
|||||||
if (i == 8)
|
if (i == 8)
|
||||||
return 8;
|
return 8;
|
||||||
|
|
||||||
int il = i << 3;
|
uint8 *d = &_curInstrument[(i << 3) + 64];
|
||||||
note += _curInstrument[il + 70];
|
|
||||||
|
|
||||||
uint8 *d = &_curInstrument[il + 64];
|
|
||||||
_envTotalLevel = d[0];
|
_envTotalLevel = d[0];
|
||||||
_envAttackRate = d[1];
|
_envAttackRate = d[1];
|
||||||
_envDecayRate = d[2];
|
_envDecayRate = d[2];
|
||||||
@ -1822,7 +1819,7 @@ void TownsAudio_PcmChannel::envAttack() {
|
|||||||
_envState = kEnvAttacking;
|
_envState = kEnvAttacking;
|
||||||
int16 t = _envTotalLevel << 8;
|
int16 t = _envTotalLevel << 8;
|
||||||
if (_envAttackRate == 127) {
|
if (_envAttackRate == 127) {
|
||||||
_envStep = 0;
|
_envCurrentLevel = _envStep = 0;
|
||||||
} else if (_envAttackRate) {
|
} else if (_envAttackRate) {
|
||||||
_envStep = t / _envAttackRate;
|
_envStep = t / _envAttackRate;
|
||||||
_envCurrentLevel = 1;
|
_envCurrentLevel = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user