Skip to content

Commit

Permalink
removed timestamp arg from bangs
Browse files Browse the repository at this point in the history
  • Loading branch information
obviousjim committed Sep 15, 2012
1 parent 776283b commit c234b78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Duration/src/DurationController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ void DurationController::handleOscOut(){

//any bangs that came our way this frame send them out too
for(int i = 0; i < bangsReceived.size(); i++){
// cout << "FOUND BANGS!" << endl;
bundle.addMessage(bangsReceived[i]);
}
numMessages += bangsReceived.size();
Expand Down Expand Up @@ -465,16 +466,18 @@ void DurationController::bangFired(ofxTLBangEventArgs& bang){
if(!settings.oscOutEnabled){
return;
}

string trackType = bang.track->getTrackType();
if(!headers[bang.track->getName()]->sendOSC()){
return;
}
ofxOscMessage m;
m.setAddress( ofFilePath::addLeadingSlash(bang.track->getDisplayName()) );
m.addIntArg(bang.currentMillis);

if(trackType == "Flags"){
m.addStringArg(bang.flag);
}

bangsReceived.push_back(m);
}

Expand Down

0 comments on commit c234b78

Please sign in to comment.