diff examples/basic_FFT_phase_vocoder/render.cpp @ 308:1feb9c23ac57 prerelease

Renamed read/write functions to remove the Frame --> e.g. analogWriteFrameOnce -> analogWriteOnce, digitalReadFrame -> digitalRead
author andrewm
date Fri, 27 May 2016 18:21:21 +0100
parents e4392164b458
children db2fe4e1b88e
line wrap: on
line diff
--- a/examples/basic_FFT_phase_vocoder/render.cpp	Fri May 27 18:12:15 2016 +0100
+++ b/examples/basic_FFT_phase_vocoder/render.cpp	Fri May 27 18:21:21 2016 +0100
@@ -216,7 +216,7 @@
 	for(int n = 0; n < numAudioFrames; n++) {
 		if(gReadPtr < gSampleData.sampleLen)
 			audioIn[2*n] = audioIn[2*n+1] = gSampleData.samples[gReadPtr]*(1-gPlaybackLive) +
-			gPlaybackLive*0.5f*(audioReadFrame(context,n,0)+audioReadFrame(context,n,1));
+			gPlaybackLive*0.5f*(audioRead(context,n,0)+audioRead(context,n,1));
 		else
 			audioIn[2*n] = audioIn[2*n+1] = 0;
 		if(++gReadPtr >= gSampleData.sampleLen)