Mercurial > hg > beaglert
diff examples/loggingSensors/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 |
line wrap: on
line diff
--- a/examples/loggingSensors/render.cpp Fri May 27 13:58:20 2016 +0100 +++ b/examples/loggingSensors/render.cpp Fri May 27 14:34:41 2016 +0100 @@ -1,11 +1,11 @@ -#include <BeagleRT.h> +#include <Bela.h> #include <cmath> #include <WriteFile.h> WriteFile file1; WriteFile file2; -bool setup(BeagleRTContext *context, void *userData) +bool setup(BelaContext *context, void *userData) { file1.init("out.bin"); //set the file name to write to file1.setEchoInterval(1000); @@ -20,7 +20,7 @@ return true; } -void render(BeagleRTContext *context, void *userData) +void render(BelaContext *context, void *userData) { for(unsigned int n = 0; n < context->analogFrames; n++) { file1.log(&(context->analogIn[n*context->analogFrames]), 2); // log an array of values @@ -31,7 +31,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) { }