Browse Source

Update to Rack API

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
c860741cc3
2 changed files with 7 additions and 10 deletions
  1. +5
    -8
      Makefile
  2. +2
    -2
      src/SpringReverb.cpp

+ 5
- 8
Makefile View File

@@ -1,14 +1,11 @@
SLUG = Befaco
VERSION = 0.5.0

FLAGS = -I./pffft -DPFFFT_SIMD_DISABLE

SOURCES = $(wildcard src/*.cpp) pffft/pffft.c
SOURCES += $(wildcard src/*.cpp) pffft/pffft.c

include ../../plugin.mk
DISTRIBUTABLES += $(wildcard LICENSE*) res


dist: all
mkdir -p dist/Befaco
cp LICENSE* dist/Befaco/
cp plugin.* dist/Befaco/
cp -R res dist/Befaco/
cd dist && zip -5 -r Befaco-$(VERSION)-$(ARCH).zip Befaco
include ../../plugin.mk

+ 2
- 2
src/SpringReverb.cpp View File

@@ -216,7 +216,7 @@ void SpringReverb::step() {
float output[BLOCKSIZE];
// Convert input buffer
{
inputSrc.setRatio(48000.0 / engineGetSampleRate());
inputSrc.setRates(engineGetSampleRate(), 48000);
int inLen = inputBuffer.size();
int outLen = BLOCKSIZE;
inputSrc.process(inputBuffer.startData(), &inLen, (Frame<1>*) input, &outLen);
@@ -228,7 +228,7 @@ void SpringReverb::step() {

// Convert output buffer
{
outputSrc.setRatio(engineGetSampleRate() / 48000.0);
outputSrc.setRates(48000, engineGetSampleRate());
int inLen = BLOCKSIZE;
int outLen = outputBuffer.capacity();
outputSrc.process((Frame<1>*) output, &inLen, outputBuffer.endData(), &outLen);


Loading…
Cancel
Save