diff options
| author | Comment <tim@gray.(none)> | 2013-06-18 22:34:30 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-06-18 22:34:30 +0100 |
| commit | 04bc6345764e55ae249a622030f26496a0586541 (patch) | |
| tree | cdfd45f49c3eba96ec1c566925a085698ca2238a /03_play/src | |
| parent | c42c63d30a31713ffc113d6a03795d4538bd5c84 (diff) | |
steaming pile of crap
Diffstat (limited to '03_play/src')
| -rw-r--r-- | 03_play/src/testApp.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/03_play/src/testApp.cpp b/03_play/src/testApp.cpp index c8dc261..1688ef3 100644 --- a/03_play/src/testApp.cpp +++ b/03_play/src/testApp.cpp @@ -8,7 +8,7 @@ void testApp::setup() { verdana.loadFont(ofToDataPath("verdana.ttf"), 10); playing=0; - numDevices=2; + numDevices=1; string filename="TRSS_nesbitt_recordings.xml"; @@ -48,27 +48,28 @@ void testApp::setup() { void testApp::startPlayers(){ for (int deviceID = 0; deviceID < numDevices; deviceID++){ //openNIPlayers[deviceID].stop(); - //openNIPlayers[deviceID].setup(false); - //openNIPlayers[deviceID].start(); + openNIPlayers[deviceID].setup(true); + usleep(100000); + openNIPlayers[deviceID].start(); openNIPlayers[deviceID].startPlayer(ofToDataPath(recs[playing].data[deviceID])); - openNIPlayers[deviceID].setSpeed(0.01f); + //openNIPlayers[deviceID].setSpeed(0.01f); //openNIPlayers[deviceID].setPaused(true); - soundplayer.stop(); + //soundplayer.stop(); - if (recs[playing].audio!=""){ - soundplayer.loadSound(recs[playing].audio); - soundplayer.play(); - soundplayer.setPosition(offset); - } + //if (recs[playing].audio!=""){ + // soundplayer.loadSound(recs[playing].audio); + // soundplayer.play(); + // soundplayer.setPosition(offset); + //} } } //-------------------------------------------------------------- void testApp::update(){ for (int deviceID = 0; deviceID < numDevices; deviceID++){ - openNIPlayers[deviceID].setFrame(frame); + //openNIPlayers[deviceID].setFrame(frame); openNIPlayers[deviceID].update(); } } |
