CRumbleVoice: Make SAdsrData constructors constexpr

Technically all file-scope instances have runtime-static constructors
otherwise. This allows the compiler to completely elide them from a
language point of view.
This commit is contained in:
Lioncash 2019-09-10 19:00:47 -04:00
parent 1b1cc42139
commit 6ca5143b15
1 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,9 @@ struct SAdsrData {
u8 dummy = 0; u8 dummy = 0;
}; };
SAdsrData() = default; constexpr SAdsrData() noexcept = default;
SAdsrData(float attackGain, float autoReleaseDur, float attackDur, float decayDur, float sustainGain, constexpr SAdsrData(float attackGain, float autoReleaseDur, float attackDur, float decayDur, float sustainGain,
float releaseDur, bool hasSustain, bool autoRelease) float releaseDur, bool hasSustain, bool autoRelease) noexcept
: x0_attackGain(attackGain) : x0_attackGain(attackGain)
, x4_autoReleaseDur(autoReleaseDur) , x4_autoReleaseDur(autoReleaseDur)
, x8_attackDur(attackDur) , x8_attackDur(attackDur)