From f02772c662a4aa18b90984fe2e454cd3386599ea Mon Sep 17 00:00:00 2001 From: beserge Date: Tue, 12 Dec 2023 11:29:54 -0500 Subject: [PATCH] Fix style once more --- Source/Utility/wavetables.cpp | 17 ++++++++--------- Source/Utility/wavetables.h | 9 +++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Source/Utility/wavetables.cpp b/Source/Utility/wavetables.cpp index a8bdb3a7..86bdf501 100644 --- a/Source/Utility/wavetables.cpp +++ b/Source/Utility/wavetables.cpp @@ -7,22 +7,21 @@ namespace daisysp { - -template fft> +template fft> bool Tables::generated = false; -template fft> +template fft> WaveBuffer DSY_SDRAM_BSS Tables::buffer_pool[40]; -template fft> -uint8_t Tables::num_buffers = 0; +template fft> +uint8_t Tables::num_buffers = 0; -template fft> +template fft> WaveTable Tables::Sine; -template fft> +template fft> WaveTable Tables::Square; -template fft> +template fft> WaveTable Tables::Tri; -template fft> +template fft> WaveTable Tables::Saw; } // namespace daisysp diff --git a/Source/Utility/wavetables.h b/Source/Utility/wavetables.h index fb590049..ccd648cc 100644 --- a/Source/Utility/wavetables.h +++ b/Source/Utility/wavetables.h @@ -80,10 +80,10 @@ struct WaveTable std::vector buffers; }; -template -using FFTFunction = void (*)(int, RealType*, RealType*); +template +using FFTFunction = void (*)(int, RealType *, RealType *); -template fft_func> +template fft_func> class Tables { static WaveTable Square; @@ -304,7 +304,8 @@ class Tables return 0; } - static void fft(int numSamples, T *ar, T *ai) { + static void fft(int numSamples, T *ar, T *ai) + { fft_func(numSamples, ar, ai); }