Browse Source

Remove dsp.hpp. Plugins must now #include the specific dsp/ header file

they need
tags/v0.4.0
Andrew Belt 7 years ago
parent
commit
ed6916d3e5
7 changed files with 11 additions and 34 deletions
  1. +0
    -18
      include/dsp.hpp
  2. +5
    -0
      include/dsp/decimator.hpp
  3. +1
    -0
      include/dsp/samplerate.hpp
  4. +0
    -1
      include/rack.hpp
  5. +3
    -1
      src/core/AudioInterface.cpp
  6. +2
    -1
      src/core/MidiInterface.cpp
  7. +0
    -13
      src/dsp.cpp

+ 0
- 18
include/dsp.hpp View File

@@ -1,18 +0,0 @@
#pragma once

#include "dsp/frame.hpp"
#include "dsp/fft.hpp"
#include "dsp/ode.hpp"
#include "dsp/ringbuffer.hpp"
#include "dsp/samplerate.hpp"
#include "dsp/fir.hpp"
#include "dsp/decimator.hpp"
#include "dsp/filter.hpp"
#include "dsp/minblep.hpp"
#include "dsp/digital.hpp"


#include <assert.h>
#include <string.h>
#include <complex>
#include "math.hpp"

+ 5
- 0
include/dsp/decimator.hpp View File

@@ -1,5 +1,7 @@
#pragma once

#include "string.h"
#include "dsp/ringbuffer.hpp"
#include "dsp/fir.hpp"


@@ -21,7 +23,10 @@ struct Decimator {
for (int i = 0; i < OVERSAMPLE*QUALITY; i++) {
kernel[i] /= sum;
}
// Zero input buffer
memset(inBuffer.data, 0, sizeof(inBuffer.data));
}
/** `in` must be OVERSAMPLE floats long */
float process(float *in) {
memcpy(inBuffer.endData(), in, OVERSAMPLE*sizeof(float));
inBuffer.endIncr(OVERSAMPLE);


+ 1
- 0
include/dsp/samplerate.hpp View File

@@ -2,6 +2,7 @@

#include <assert.h>
#include <samplerate.h>
#include "frame.hpp"


namespace rack {


+ 0
- 1
include/rack.hpp View File

@@ -7,7 +7,6 @@
#include "gui.hpp"
#include "app.hpp"
#include "components.hpp"
#include "dsp.hpp"
#include "asset.hpp"




+ 3
- 1
src/core/AudioInterface.cpp View File

@@ -3,7 +3,9 @@
#include <thread>
#include <portaudio.h>
#include "core.hpp"
#include "dsp.hpp"
#include "dsp/samplerate.hpp"
#include "dsp/ringbuffer.hpp"


using namespace rack;



+ 2
- 1
src/core/MidiInterface.cpp View File

@@ -4,7 +4,8 @@
#include "rtmidi/RtMidi.h"
#include "core.hpp"
#include "gui.hpp"
#include "../../include/engine.hpp"
#include "engine.hpp"
#include "dsp/digital.hpp"


using namespace rack;


+ 0
- 13
src/dsp.cpp
File diff suppressed because it is too large
View File


Loading…
Cancel
Save