#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; };