Skip to content

Commit

Permalink
Use the right array destructor for SupaTrigga (#39)
Browse files Browse the repository at this point in the history
* Comment out unused code

* Fix: use the right array destructor
  • Loading branch information
alkama authored and bdejong committed Apr 8, 2018
1 parent c0ead7c commit 2a39fff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SupaTrigga/SupaTrigger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ SupaTrigger::SupaTrigger(audioMasterCallback audioMaster) : AudioEffectX(audioMa
//-----------------------------------------------------------------------------------------
SupaTrigger::~SupaTrigger()
{
delete leftBuffer;
delete rightBuffer;
delete[] leftBuffer;
delete[] rightBuffer;
}

//-----------------------------------------------------------------------------------------
Expand Down Expand Up @@ -325,8 +325,8 @@ void SupaTrigger::processReplacing(float **inputs, float **outputs, VstInt32 sam
{
if(first)
{
unsigned long sliceSize = samplesInMeasure >> granularity;
unsigned long sliceStart = (positionInMeasure / sliceSize) * sliceSize;
//unsigned long sliceSize = samplesInMeasure >> granularity;
//unsigned long sliceStart = (positionInMeasure / sliceSize) * sliceSize;

position = (float) ((positionInMeasure) - (displacement * samplesInMeasure)/MAXSLIDES);
speed = 1.f/speedDiff;
Expand Down

0 comments on commit 2a39fff

Please sign in to comment.