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 9a74369 commit b7a9d90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PluginAudioProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ void PluginAudioProcessor::processBlock(AudioSampleBuffer& buffer_, MidiBuffer&
{
for (int i = 0; i < getBlockSize(); ++i)
{
buffer_.getWritePointer(0)[i] = buffer_.getReadPointer(0)[i] * m_gain;
buffer_.getWritePointer(1)[i] = buffer_.getReadPointer(1)[i] * m_gain;
for (int c = 0; i < buffer_.getNumChannels(); ++c)
{
buffer_.getWritePointer(c)[i] = buffer_.getReadPointer(c)[i] * m_gain;
}
}
}

Expand Down

0 comments on commit b7a9d90

Please sign in to comment.