diff projects/filter_FIR/render.cpp @ 5:09f03ac40fcc

API improvements and cleanups. Now all common audio command-line options can be parsed automatically.
author andrewm
date Sat, 08 Nov 2014 16:16:55 +0100
parents 021ac8a1a4f9
children 06f93bef7dd2
line wrap: on
line diff
--- a/projects/filter_FIR/render.cpp	Thu Nov 06 19:02:48 2014 +0000
+++ b/projects/filter_FIR/render.cpp	Sat Nov 08 16:16:55 2014 +0100
@@ -36,7 +36,7 @@
 bool initialise_trigger();
 void trigger_samples();
 
-extern int gPeriodSize;			// Period size in sensor frames
+int gPeriodSize;			// Period size in sensor frames
 
 
 // initialise_render() is called once before the audio rendering starts.
@@ -58,6 +58,7 @@
 
 	gReadPtr = -1;
 	gNumChannels = numChannels;
+	gPeriodSize = numMatrixFramesPerPeriod;
 
 	initialise_filter();