1
Fork 0
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:
kleines Filmröllchen 2021-09-28 17:52:17 +02:00 committed by Andreas Kling
parent 3a4ec49131
commit 557be4649d
2 changed files with 10 additions and 7 deletions

View file

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