mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-09 10:32:51 +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;
|
state_ = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ADSREnvelope::Step() {
|
inline void ADSREnvelope::Step() {
|
||||||
switch (state_) {
|
switch (state_) {
|
||||||
case STATE_ATTACK:
|
case STATE_ATTACK:
|
||||||
WalkCurve(attackType, attackRate);
|
WalkCurve(attackType, attackRate);
|
||||||
|
@ -146,7 +146,7 @@ public:
|
|||||||
void KeyOff();
|
void KeyOff();
|
||||||
void End();
|
void End();
|
||||||
|
|
||||||
void Step();
|
inline void Step();
|
||||||
|
|
||||||
int GetHeight() const {
|
int GetHeight() const {
|
||||||
return height_ > (s64)PSP_SAS_ENVELOPE_HEIGHT_MAX ? PSP_SAS_ENVELOPE_HEIGHT_MAX : height_;
|
return height_ > (s64)PSP_SAS_ENVELOPE_HEIGHT_MAX ? PSP_SAS_ENVELOPE_HEIGHT_MAX : height_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user