Mercurial > hg > beaglert
diff examples/cape_test/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 | 493a07f6ec09 |
line wrap: on
line diff
--- a/examples/cape_test/render.cpp Fri May 27 13:58:20 2016 +0100 +++ b/examples/cape_test/render.cpp Fri May 27 14:34:41 2016 +0100 @@ -6,7 +6,7 @@ */ -#include <BeagleRT.h> +#include <Bela.h> #include <cmath> #define ANALOG_LOW (2048.0 / 65536.0) @@ -47,7 +47,7 @@ // // Return true on success; returning false halts the program. -bool setup(BeagleRTContext *context, void *userData) +bool setup(BelaContext *context, void *userData) { return true; } @@ -57,7 +57,7 @@ // 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) { static float phase = 0.0; static int sampleCounter = 0; @@ -273,7 +273,7 @@ // cleanup() is called once at the end, after the audio has stopped. // Release any resources that were allocated in setup(). -void cleanup(BeagleRTContext *context, void *userData) +void cleanup(BelaContext *context, void *userData) { }