comparison include/ReceiveAudioThread.h @ 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 c42a6b4dc2d4
children
comparison
equal deleted inserted replaced
300:dbeed520b014 301:e4392164b458
2 #define RECEIVEAUDIOTHREAD_H_INCLUDED 2 #define RECEIVEAUDIOTHREAD_H_INCLUDED
3 3
4 #ifdef USE_JUCE 4 #ifdef USE_JUCE
5 #include <JuceHeader.h> 5 #include <JuceHeader.h>
6 #else 6 #else
7 #include <BeagleRT.h> 7 #include <Bela.h>
8 #include <UdpServer.h> 8 #include <UdpServer.h>
9 #include <vector> 9 #include <vector>
10 #include <iostream> 10 #include <iostream>
11 #include <native/task.h> 11 #include <native/task.h>
12 #include <native/timer.h> 12 #include <native/timer.h>
93 #ifdef USE_JUCE // if we are in Juce, then we run a separate thread for each receiver 93 #ifdef USE_JUCE // if we are in Juce, then we run a separate thread for each receiver
94 // (as each of them are typically receiving on a mono or stereo track) 94 // (as each of them are typically receiving on a mono or stereo track)
95 void run(); 95 void run();
96 #else 96 #else
97 RTIME getLastTime(); 97 RTIME getLastTime();
98 void static run(); //while in BeagleRT we have a single thread that receives for all the instances. 98 void static run(); //while in Bela we have a single thread that receives for all the instances.
99 //TODO: make run() private in BeagleRT 99 //TODO: make run() private in Bela
100 static void startThread(); 100 static void startThread();
101 static void stopThread(); 101 static void stopThread();
102 static int getNumInstances(); 102 static int getNumInstances();
103 #endif // USE_JUCE 103 #endif // USE_JUCE
104 }; 104 };