From 39bcb5346b1f746399192391b6699e81d0d8ad3a Mon Sep 17 00:00:00 2001 From: Comment Date: Thu, 20 Jun 2013 09:06:40 +0100 Subject: spooky bug fixed, integration nearly right --- 06_performance/src/oni.h | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) (limited to '06_performance/src/oni.h') 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 players; + vector 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 players; +}; \ No newline at end of file -- cgit v1.2.3