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)
|
||||
{
|
||||
_lfoOutLeft.reset(new float[samplesPerBlock]);
|
||||
_lfoOutRight.reset(new float[samplesPerBlock]);
|
||||
_lfoOutLeft.resize(samplesPerBlock);
|
||||
_lfoOutRight.resize(samplesPerBlock);
|
||||
}
|
||||
|
||||
void Apan::clear()
|
||||
|
|
@ -51,8 +51,8 @@ namespace fx {
|
|||
float dry = _dry;
|
||||
float wet = _wet;
|
||||
float depth = _depth;
|
||||
float* modL = _lfoOutLeft.get();
|
||||
float* modR = _lfoOutRight.get();
|
||||
float* modL = _lfoOutLeft.data();
|
||||
float* modR = _lfoOutRight.data();
|
||||
|
||||
computeLfos(modL, modR, nframes);
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
#include "Effects.h"
|
||||
#include <memory>
|
||||
#include "Buffer.h"
|
||||
|
||||
namespace sfz {
|
||||
namespace fx {
|
||||
|
|
@ -48,8 +48,8 @@ namespace fx {
|
|||
|
||||
private:
|
||||
float _samplePeriod = 0.0;
|
||||
std::unique_ptr<float[]> _lfoOutLeft;
|
||||
std::unique_ptr<float[]> _lfoOutRight;
|
||||
sfz::Buffer<float> _lfoOutLeft { config::defaultSamplesPerBlock };
|
||||
sfz::Buffer<float> _lfoOutRight { config::defaultSamplesPerBlock };
|
||||
|
||||
// Controls
|
||||
float _dry = 0.0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue