mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-08-04 16:15:35 +00:00
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:
parent
1b1cc42139
commit
6ca5143b15
@ -37,9 +37,9 @@ struct SAdsrData {
|
||||
u8 dummy = 0;
|
||||
};
|
||||
|
||||
SAdsrData() = default;
|
||||
SAdsrData(float attackGain, float autoReleaseDur, float attackDur, float decayDur, float sustainGain,
|
||||
float releaseDur, bool hasSustain, bool autoRelease)
|
||||
constexpr SAdsrData() noexcept = default;
|
||||
constexpr SAdsrData(float attackGain, float autoReleaseDur, float attackDur, float decayDur, float sustainGain,
|
||||
float releaseDur, bool hasSustain, bool autoRelease) noexcept
|
||||
: x0_attackGain(attackGain)
|
||||
, x4_autoReleaseDur(autoReleaseDur)
|
||||
, x8_attackDur(attackDur)
|
||||
|
Loading…
x
Reference in New Issue
Block a user