Mercurial > hg > beaglert
diff examples/airharp/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 | 9dc5a0ccad25 |
line wrap: on
line diff
--- a/examples/airharp/render.cpp Fri May 27 13:58:20 2016 +0100 +++ b/examples/airharp/render.cpp Fri May 27 14:34:41 2016 +0100 @@ -13,7 +13,7 @@ #include "String.h" #include "Plectrum.h" -#include <BeagleRT.h> +#include <Bela.h> #include <cmath> #include <stdio.h> #include <cstdlib> @@ -69,7 +69,7 @@ float y2_r = 0; -bool setup(BeagleRTContext *context, void *userData) +bool setup(BelaContext *context, void *userData) { gInverseSampleRate = 1.0 / context->audioSampleRate; @@ -94,7 +94,7 @@ return true; } -void render(BeagleRTContext *context, void *userData) +void render(BelaContext *context, void *userData) { float lastAccel = 0; @@ -206,7 +206,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) { }