mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:37:44 +00:00
LibDSP: Move to constexpr wherever possible
This commit is contained in:
parent
3a4ec49131
commit
557be4649d
2 changed files with 10 additions and 7 deletions
|
@ -19,7 +19,7 @@ using Sample = Audio::Sample;
|
|||
Sample const SAMPLE_OFF = { 0.0, 0.0 };
|
||||
|
||||
struct RollNote {
|
||||
u32 length() const { return (off_sample - on_sample) + 1; }
|
||||
constexpr u32 length() const { return (off_sample - on_sample) + 1; }
|
||||
|
||||
u32 on_sample;
|
||||
u32 off_sample;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue