summaryrefslogtreecommitdiff
path: root/06_performance/src/oni.h
diff options
context:
space:
mode:
authorTim <tim@Admins-Mac-Pro-2.local>2013-06-20 10:04:58 +0100
committerTim <tim@Admins-Mac-Pro-2.local>2013-06-20 10:04:58 +0100
commitd836325685bfcb269a46881fc0cb67628f15bc11 (patch)
treea4864321a8806322eedb7a02a5c403be3bef970f /06_performance/src/oni.h
parent51d327513ba268d245527ff59bd208ed907ffe6e (diff)
parent39bcb5346b1f746399192391b6699e81d0d8ad3a (diff)
Merge branch 'master' of eclectronics.org@eclectronics.org:TRSS
Conflicts: 04_playobjects/src/testApp.h
Diffstat (limited to '06_performance/src/oni.h')
-rw-r--r--06_performance/src/oni.h47
1 files changed, 46 insertions, 1 deletions
diff --git a/06_performance/src/oni.h b/06_performance/src/oni.h
index ccb1417..158d513 100644
--- a/06_performance/src/oni.h
+++ b/06_performance/src/oni.h
@@ -1 +1,46 @@
-#include "ofxOpenNI.h" \ No newline at end of file
+#include "ofMain.h"
+#include "ofxXmlSettings.h"
+#include "ofxOpenNI.h"
+
+
+
+//in order to play different clips it seems necessary to have a player per clip
+class syncOniPlayer{
+ public:
+ syncOniPlayer() {
+ drawable=false;
+ }
+ ~syncOniPlayer(){
+ stop();
+ }
+ void addPlayer(string name);
+ void play();
+ void update();
+ void pause();
+ int getCurrentFrame();
+ void drawWindows();
+ void drawCloud(int step);
+ void stop();
+ string audio;
+
+ private:
+ vector<ofxOpenNI*> players;
+ vector<string> filenames;
+ ofSoundPlayer soundplayer;
+ bool drawable;
+
+};
+//========================================
+class oniManager{
+ public:
+ void init(const char* filename);
+ void startPlayer(int num);
+ void update();
+ void drawWindows();
+ void drawCloud(int step);
+ void previous();
+ void next();
+ int playing;
+ ofxXmlSettings XML;
+ vector<syncOniPlayer> players;
+}; \ No newline at end of file