diff examples/level_meter/render.cpp @ 311:493a07f6ec09 prerelease

Renamed BelaContext->audioSampleCount to BelaContext->audioFramesElapsed for consistency of terminology
author andrewm
date Fri, 27 May 2016 18:37:51 +0100
parents 02c4ca0e3718
children 9dc5a0ccad25
line wrap: on
line diff
--- a/examples/level_meter/render.cpp	Fri May 27 18:29:20 2016 +0100
+++ b/examples/level_meter/render.cpp	Fri May 27 18:37:51 2016 +0100
@@ -105,7 +105,7 @@
 		else {
 			// Make peak decay slowly by only multiplying
 			// every few samples
-			if(((context->audioSampleCount + n) & 31) == 0)
+			if(((context->audioFramesElapsed + n) & 31) == 0)
 				gAudioPeakLevel *= gPeakDecayRate;
 		}	
 		// LED bargraph on digital outputs 0-9