diff examples/scope_basic/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 db2fe4e1b88e
line wrap: on
line diff
--- a/examples/scope_basic/render.cpp	Fri May 27 13:58:20 2016 +0100
+++ b/examples/scope_basic/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>
 
@@ -10,7 +10,7 @@
 // instantiate the scope
 Scope scope;
 
-bool setup(BeagleRTContext *context, void *userData)
+bool setup(BelaContext *context, void *userData)
 {
     // tell the scope how many channels and the sample rate
     scope.setup(3, context->audioSampleRate);
@@ -23,7 +23,7 @@
 
 float lastOut = 0.0;
 float lastOut2 = 0.0;
-void render(BeagleRTContext *context, void *userData)
+void render(BelaContext *context, void *userData)
 {
     // iterate over the audio frames and create three oscillators, seperated in phase by PI/2
     for (unsigned int n=0; n<context->audioFrames; n++){
@@ -48,7 +48,7 @@
     }
 }
 
-void cleanup(BeagleRTContext *context, void *userData)
+void cleanup(BelaContext *context, void *userData)
 {
 
 }