Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed compiler errors that result from defining DSP_SAMPLE_FLOAT #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dsp/ImpulseResponse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dsp::ImpulseResponse::ImpulseResponse(const IRData& irData, const double sampleR
this->_SetWeights();
}

double** dsp::ImpulseResponse::Process(double** inputs, const size_t numChannels, const size_t numFrames)
DSP_SAMPLE** dsp::ImpulseResponse::Process(DSP_SAMPLE** inputs, const size_t numChannels, const size_t numFrames)
{
this->_PrepareBuffers(numChannels, numFrames);
this->_UpdateHistory(inputs, numChannels, numFrames);
Expand Down
2 changes: 1 addition & 1 deletion dsp/ImpulseResponse.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ImpulseResponse : public History
struct IRData;
ImpulseResponse(const char* fileName, const double sampleRate);
ImpulseResponse(const IRData& irData, const double sampleRate);
double** Process(double** inputs, const size_t numChannels, const size_t numFrames) override;
DSP_SAMPLE** Process(DSP_SAMPLE** inputs, const size_t numChannels, const size_t numFrames) override;
IRData GetData();
double GetSampleRate() const { return mSampleRate; };
// TODO states for the IR class
Expand Down
2 changes: 1 addition & 1 deletion dsp/NoiseGate.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class Trigger : public DSP

// Hold the vectors of gain reduction for the block, in dB.
// These can be given to the Gain object.
std::vector<std::vector<double>> mGainReductionDB;
std::vector<std::vector<DSP_SAMPLE>> mGainReductionDB;
std::vector<double> mLastGainReductionDB;

double mSampleRate;
Expand Down
4 changes: 4 additions & 0 deletions dsp/wav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

#include "wav.h"

#ifdef __linux__
#include <cstdint>
#endif

bool idIsNotJunk(char* id)
{
return strncmp(id, "RIFF", 4) == 0 || strncmp(id, "WAVE", 4) == 0 || strncmp(id, "fmt ", 4) == 0
Expand Down