diff examples/bucket_brigade_chorus/render.cpp @ 301:e4392164b458 prerelease

RENAMED BeagleRT to Bela AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, scripts probably not working
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 27 May 2016 14:34:41 +0100
parents dbeed520b014
children 1feb9c23ac57
line wrap: on
line diff
--- a/examples/bucket_brigade_chorus/render.cpp	Fri May 27 13:58:20 2016 +0100
+++ b/examples/bucket_brigade_chorus/render.cpp	Fri May 27 14:34:41 2016 +0100
@@ -1,4 +1,4 @@
-#include <BeagleRT.h> 
+#include <Bela.h> 
 #include <Scope.h>
 #include <cmath>
 #include <Utilities.h>
@@ -39,7 +39,7 @@
 //	gPRU->clearGPIOTestPin();
 }
 
-bool setup(BeagleRTContext *context, void *userData)
+bool setup(BelaContext *context, void *userData)
 {
 	gInverseSampleRate = 1.0/context->audioSampleRate;
 	
@@ -48,7 +48,7 @@
 	
 	gFrequency1 = 200.0;
 	gFrequency2 = 201.0;
-	updatePll=BeagleRT_createAuxiliaryTask(&updatePllFunction, 91, "update PLL");
+	updatePll=Bela_createAuxiliaryTask(&updatePllFunction, 91, "update PLL");
 	for(int n=0; n<delayLength; n++){
 		delay[n]=0;
 	}
@@ -60,12 +60,12 @@
 // ADCs and DACs (if available). If only audio is available, numMatrixFrames
 // will be 0.
 
-void render(BeagleRTContext *context, void *userData)
+void render(BelaContext *context, void *userData)
 {
 //	printf("here\n");
 	static bool init = false;
 	if(init == false){
-		BeagleRT_scheduleAuxiliaryTask(updatePll);
+		Bela_scheduleAuxiliaryTask(updatePll);
 //		gAudioCodec->setPllP(2);
 //		gAudioCodec->setPllR();
 //		gAudioCodec->setAudioSamplingRate(43600);
@@ -115,7 +115,7 @@
 // cleanup_render() is called once at the end, after the audio has stopped.
 // Release any resources that were allocated in initialise_render().
 
-void cleanup(BeagleRTContext *context, void *userData)
+void cleanup(BelaContext *context, void *userData)
 {
     
 }