Skip to content

Commit

Permalink
minor fixes to channel configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
shaduzlabs committed Apr 19, 2017
1 parent 107ab5b commit 8231876
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ bool ThrobAudioProcessor::setPreferredBusArrangement(

//--------------------------------------------------------------------------------------------------

void ThrobAudioProcessor::processBlock(AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
void ThrobAudioProcessor::processBlock(AudioSampleBuffer& buffer_, MidiBuffer& /*mm_*/)
{
using namespace std::chrono;
AudioPlayHead::CurrentPositionInfo result;
Expand Down Expand Up @@ -177,8 +177,11 @@ void ThrobAudioProcessor::processBlock(AudioSampleBuffer& buffer, MidiBuffer& mi
resetAmplitude = 1.0;
}

buffer.getWritePointer(0)[i] = clockAmplitude;
buffer.getWritePointer(1)[i] = resetAmplitude;
buffer_.getWritePointer(0)[i] = clockAmplitude;
if(buffer_.getNumChannels() > 1)
{
buffer_.getWritePointer(1)[i] = resetAmplitude;
}
}
}

Expand Down

0 comments on commit 8231876

Please sign in to comment.