Change to sfz::Buffer
This commit is contained in:
parent
c41f26bf9d
commit
26646da29c
2 changed files with 7 additions and 7 deletions
|
|
@ -37,8 +37,8 @@ namespace fx {
|
||||||
|
|
||||||
void Apan::setSamplesPerBlock(int samplesPerBlock)
|
void Apan::setSamplesPerBlock(int samplesPerBlock)
|
||||||
{
|
{
|
||||||
_lfoOutLeft.reset(new float[samplesPerBlock]);
|
_lfoOutLeft.resize(samplesPerBlock);
|
||||||
_lfoOutRight.reset(new float[samplesPerBlock]);
|
_lfoOutRight.resize(samplesPerBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Apan::clear()
|
void Apan::clear()
|
||||||
|
|
@ -51,8 +51,8 @@ namespace fx {
|
||||||
float dry = _dry;
|
float dry = _dry;
|
||||||
float wet = _wet;
|
float wet = _wet;
|
||||||
float depth = _depth;
|
float depth = _depth;
|
||||||
float* modL = _lfoOutLeft.get();
|
float* modL = _lfoOutLeft.data();
|
||||||
float* modR = _lfoOutRight.get();
|
float* modR = _lfoOutRight.data();
|
||||||
|
|
||||||
computeLfos(modL, modR, nframes);
|
computeLfos(modL, modR, nframes);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "Effects.h"
|
#include "Effects.h"
|
||||||
#include <memory>
|
#include "Buffer.h"
|
||||||
|
|
||||||
namespace sfz {
|
namespace sfz {
|
||||||
namespace fx {
|
namespace fx {
|
||||||
|
|
@ -48,8 +48,8 @@ namespace fx {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float _samplePeriod = 0.0;
|
float _samplePeriod = 0.0;
|
||||||
std::unique_ptr<float[]> _lfoOutLeft;
|
sfz::Buffer<float> _lfoOutLeft { config::defaultSamplesPerBlock };
|
||||||
std::unique_ptr<float[]> _lfoOutRight;
|
sfz::Buffer<float> _lfoOutRight { config::defaultSamplesPerBlock };
|
||||||
|
|
||||||
// Controls
|
// Controls
|
||||||
float _dry = 0.0;
|
float _dry = 0.0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue