Skip to content

Commit

Permalink
Fix style once more
Browse files Browse the repository at this point in the history
  • Loading branch information
beserge committed Dec 12, 2023
1 parent e0fb5a0 commit f02772c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
17 changes: 8 additions & 9 deletions Source/Utility/wavetables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,21 @@

namespace daisysp
{

template<typename T, FFTFunction<T> fft>
template <typename T, FFTFunction<T> fft>
bool Tables<T, fft>::generated = false;

template<typename T, FFTFunction<T> fft>
template <typename T, FFTFunction<T> fft>
WaveBuffer DSY_SDRAM_BSS Tables<T, fft>::buffer_pool[40];
template<typename T, FFTFunction<T> fft>
uint8_t Tables<T, fft>::num_buffers = 0;
template <typename T, FFTFunction<T> fft>
uint8_t Tables<T, fft>::num_buffers = 0;

template<typename T, FFTFunction<T> fft>
template <typename T, FFTFunction<T> fft>
WaveTable Tables<T, fft>::Sine;
template<typename T, FFTFunction<T> fft>
template <typename T, FFTFunction<T> fft>
WaveTable Tables<T, fft>::Square;
template<typename T, FFTFunction<T> fft>
template <typename T, FFTFunction<T> fft>
WaveTable Tables<T, fft>::Tri;
template<typename T, FFTFunction<T> fft>
template <typename T, FFTFunction<T> fft>
WaveTable Tables<T, fft>::Saw;

} // namespace daisysp
9 changes: 5 additions & 4 deletions Source/Utility/wavetables.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ struct WaveTable
std::vector<WaveBuffer *> buffers;
};

template<typename RealType>
using FFTFunction = void (*)(int, RealType*, RealType*);
template <typename RealType>
using FFTFunction = void (*)(int, RealType *, RealType *);

template<typename T, FFTFunction<T> fft_func>
template <typename T, FFTFunction<T> fft_func>
class Tables
{
static WaveTable Square;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit f02772c

Please sign in to comment.