blob: 158d513a4bcf099034490f40129d37bc604690d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#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;
};
|