mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-03 15:42:32 +00:00
Inline ADSREnvelope::Step (thanks @unknownbrackets)
(Some compilers want it declared inline in the header too)
This commit is contained in:
parent
f4db725400
commit
c8e719e165
@ -779,7 +779,7 @@ void ADSREnvelope::SetState(ADSRState state) {
|
||||
state_ = state;
|
||||
}
|
||||
|
||||
void ADSREnvelope::Step() {
|
||||
inline void ADSREnvelope::Step() {
|
||||
switch (state_) {
|
||||
case STATE_ATTACK:
|
||||
WalkCurve(attackType, attackRate);
|
||||
|
@ -146,7 +146,7 @@ public:
|
||||
void KeyOff();
|
||||
void End();
|
||||
|
||||
void Step();
|
||||
inline void Step();
|
||||
|
||||
int GetHeight() const {
|
||||
return height_ > (s64)PSP_SAS_ENVELOPE_HEIGHT_MAX ? PSP_SAS_ENVELOPE_HEIGHT_MAX : height_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user