mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
Sustain defaults to 0, not 0x100.
Not sure how I came to that mistaken idea.
This commit is contained in:
parent
6392307cbd
commit
f981d39f94
@ -676,7 +676,7 @@ ADSREnvelope::ADSREnvelope()
|
||||
attackType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_INCREASE),
|
||||
decayType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_DECREASE),
|
||||
sustainType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_INCREASE),
|
||||
sustainLevel(0x100),
|
||||
sustainLevel(0),
|
||||
releaseType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_DECREASE),
|
||||
rate_(0),
|
||||
type_(0),
|
||||
@ -722,6 +722,10 @@ void ADSREnvelope::WalkCurve(int type) {
|
||||
}
|
||||
|
||||
void ADSREnvelope::SetState(ADSRState state) {
|
||||
if (height_ > PSP_SAS_ENVELOPE_HEIGHT_MAX) {
|
||||
height_ = PSP_SAS_ENVELOPE_HEIGHT_MAX;
|
||||
}
|
||||
|
||||
state_ = state;
|
||||
switch (state) {
|
||||
case STATE_ATTACK:
|
||||
|
Loading…
Reference in New Issue
Block a user