diff effects/pvoc_passthrough/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
line wrap: on
line diff
--- a/effects/pvoc_passthrough/Source/PluginProcessor.cpp	Fri Oct 10 15:41:23 2014 +0100
+++ b/effects/pvoc_passthrough/Source/PluginProcessor.cpp	Sun Nov 22 15:23:40 2015 +0000
@@ -276,11 +276,11 @@
     for (channel = 0; channel < numInputChannels; ++channel)
     {
         // channelData is an array of length numSamples which contains the audio for one channel
-        float* channelData = buffer.getSampleData(channel);
+        float* channelData = buffer.getWritePointer(channel);
         
         // inputBufferData is the circular buffer for collecting input samples for the FFT
-        float* inputBufferData = inputBuffer_.getSampleData(jmin (channel, inputBuffer_.getNumChannels() - 1));
-        float* outputBufferData = outputBuffer_.getSampleData(jmin (channel, inputBuffer_.getNumChannels() - 1));
+        float* inputBufferData = inputBuffer_.getWritePointer(jmin (channel, inputBuffer_.getNumChannels() - 1));
+        float* outputBufferData = outputBuffer_.getWritePointer(jmin (channel, inputBuffer_.getNumChannels() - 1));
         
         // State variables need to be temporarily cached for each channel. We don't want the
         // operations on one channel to affect the identical behaviour of the next channel