diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-05-11 21:59:49 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-13 00:47:26 +0200 |
commit | f23aea0c4b049c7b2ffab442175dfbd2ea7b54e8 (patch) | |
tree | 25fe34e7595e30c29e9981aca59d7c52c24e7c7b /Userland/Libraries/LibDSP/Clip.cpp | |
parent | bcb331b8620509aca8894e6bc033fbfcb777eec0 (diff) | |
download | serenity-f23aea0c4b049c7b2ffab442175dfbd2ea7b54e8.zip |
LibDSP: Make the note frequencies an AK::Array instead of a C array
This was a leftover from the early days of Piano, and there's no reason
to leave it that way especially if we want to use more complex
collection APIs in the future.
Diffstat (limited to 'Userland/Libraries/LibDSP/Clip.cpp')
-rw-r--r-- | Userland/Libraries/LibDSP/Clip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDSP/Clip.cpp b/Userland/Libraries/LibDSP/Clip.cpp index ebd8588956..8b672a764c 100644 --- a/Userland/Libraries/LibDSP/Clip.cpp +++ b/Userland/Libraries/LibDSP/Clip.cpp @@ -16,7 +16,7 @@ Sample AudioClip::sample_at(u32 time) void NoteClip::set_note(RollNote note) { - VERIFY(note.pitch >= 0 && note.pitch < note_count); + VERIFY(note.pitch >= 0 && note.pitch < note_frequencies.size()); VERIFY(note.off_sample < m_length); VERIFY(note.length() >= 2); |