Mercurial > hg > audio_effects_textbook_code
comparison effects/empty/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 |
---|---|
197 // Go through each channel of audio that's passed in | 197 // Go through each channel of audio that's passed in |
198 | 198 |
199 for (int channel = 0; channel < numInputChannels; ++channel) | 199 for (int channel = 0; channel < numInputChannels; ++channel) |
200 { | 200 { |
201 // channelData is an array of length numSamples which contains the audio for one channel | 201 // channelData is an array of length numSamples which contains the audio for one channel |
202 float* channelData = buffer.getSampleData(channel); | 202 float* channelData = buffer.getWritePointer(channel); |
203 | 203 |
204 for (int i = 0; i < numSamples; ++i) | 204 for (int i = 0; i < numSamples; ++i) |
205 { | 205 { |
206 const float in = channelData[i]; | 206 const float in = channelData[i]; |
207 | 207 |