comparison effects/parametriceq/Source/PluginProcessor.cpp @ 1:04e171d2a747 tip

JUCE 4 compatible. Standardised paths on Mac: modules '../../juce/modules'; VST folder '~/SDKs/vstsdk2.4' (JUCE default). Replaced deprecated 'getSampleData(channel)'; getToggleState(...); setToggleState(...); setSelectedId(...). Removed unused variables. Ignore JUCE code and build files.
author Brecht De Man <b.deman@qmul.ac.uk>
date Sun, 22 Nov 2015 15:23:40 +0000
parents e32fe563e124
children
comparison
equal deleted inserted replaced
0:e32fe563e124 1:04e171d2a747
236 // Go through each channel of audio that's passed in 236 // Go through each channel of audio that's passed in
237 237
238 for (channel = 0; channel < jmin((int32)numInputChannels, numEqFilters_); ++channel) 238 for (channel = 0; channel < jmin((int32)numInputChannels, numEqFilters_); ++channel)
239 { 239 {
240 // channelData is an array of length numSamples which contains the audio for one channel 240 // channelData is an array of length numSamples which contains the audio for one channel
241 float* channelData = buffer.getSampleData(channel); 241 float* channelData = buffer.getWritePointer(channel);
242 242
243 // Run the samples through the IIR filter whose coefficients define the parametric 243 // Run the samples through the IIR filter whose coefficients define the parametric
244 // equaliser. See juce_IIRFilter.cpp for the implementation. 244 // equaliser. See juce_IIRFilter.cpp for the implementation.
245 eqFilters_[channel]->processSamples(channelData, numSamples); 245 eqFilters_[channel]->processSamples(channelData, numSamples);
246 } 246 }