diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-07-17 11:35:31 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-07-19 11:17:45 +0100 |
commit | 00e13b5b27282fabbef31430f158dcf5bd321aa9 (patch) | |
tree | 62d0e2c58e94b1dfda67ed670bfaf9bfc8ab84c0 /Userland/Applications/SoundPlayer | |
parent | 3f59356c79a044e7f2c49a7e456f8309d47508fd (diff) | |
download | serenity-00e13b5b27282fabbef31430f158dcf5bd321aa9.zip |
LibDSP: Rename library namespace to DSP
That's the standard naming convention, but I didn't follow it when
originally creating LibDSP and nobody corrected me, so here I am one
year later :^)
Diffstat (limited to 'Userland/Applications/SoundPlayer')
-rw-r--r-- | Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp b/Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp index cf9af8f782..06dcca5415 100644 --- a/Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp +++ b/Userland/Applications/SoundPlayer/BarsVisualizationWidget.cpp @@ -32,7 +32,7 @@ void BarsVisualizationWidget::render(GUI::PaintEvent& event, FixedArray<float> c AK::TypedTransfer<float>::copy(m_previous_samples.data(), samples.data(), samples.size()); - LibDSP::fft(m_fft_samples.span(), false); + DSP::fft(m_fft_samples.span(), false); Array<float, bar_count> groups {}; @@ -102,7 +102,7 @@ BarsVisualizationWidget::BarsVisualizationWidget() logarithmic_spectrum_action->set_checked(true); m_context_menu->add_action(logarithmic_spectrum_action); - m_fft_window = LibDSP::Window<float>::hann<fft_size>(); + m_fft_window = DSP::Window<float>::hann<fft_size>(); // As we use full-overlapping windows, the passed-in data is only half the size of one FFT operation. MUST(set_render_sample_count(fft_size / 2)); |