Skip to content

Commit

Permalink
Apply clang-tidy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ASleepyCat committed May 16, 2021
1 parent b63c7a3 commit f0a9cd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Audio/include/Audio/DSP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class BQFDSP : public DSP
// Delayed samples
static const uint32 order = 2;
// FIR Delay buffers
float zb[2][order];
float zb[2][order]{};
// IIR Delay buffers
float za[2][order];
float za[2][order]{};
};

// Combinded Low/High-pass and Peaking filter
Expand Down Expand Up @@ -117,7 +117,7 @@ class GateDSP : public DSP
uint32 m_length = 0;
uint32 m_fadeIn = 0; // Fade In mark
uint32 m_fadeOut = 0; // Fade Out mark
uint32 m_halfway; // Halfway mark
uint32 m_halfway{}; // Halfway mark
uint32 m_currentSample = 0;
};

Expand Down Expand Up @@ -177,7 +177,7 @@ class WobbleDSP : public BQFDSP
virtual const char *GetName() const { return "WobbleDSP"; }

private:
uint32 m_length;
uint32 m_length{};
uint32 m_currentSample = 0;
};

Expand Down Expand Up @@ -269,7 +269,7 @@ class SidechainDSP : public DSP
// Volume multiplier for the sidechaing
float amount = 0.25f;

Interpolation::CubicBezier curve;
Interpolation::CubicBezier curve{};

virtual void Process(float *out, uint32 numSamples);
virtual const char *GetName() const { return "SidechainDSP"; }
Expand Down
9 changes: 2 additions & 7 deletions Audio/src/DSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "DSP.hpp"
#include "AudioOutput.hpp"
#include "Audio_Impl.hpp"
#include <Shared/Interpolation.hpp>

void PanDSP::Process(float *out, uint32 numSamples)
{
Expand Down Expand Up @@ -677,12 +676,8 @@ class PitchShiftDSP_Impl
Vector<float> m_receiveBuffer;

public:
PitchShiftDSP_Impl()
{
}
~PitchShiftDSP_Impl()
{
}
PitchShiftDSP_Impl() = default;
~PitchShiftDSP_Impl() = default;
void Init(uint32 sampleRate)
{
m_soundtouch.setChannels(2);
Expand Down

0 comments on commit f0a9cd9

Please sign in to comment.