Inline ADSREnvelope::Step (thanks @unknownbrackets)

(Some compilers want it declared inline in the header too)
This commit is contained in:
Henrik Rydgard 2014-03-22 09:31:09 +01:00
parent f4db725400
commit c8e719e165
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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_;