--------------------------------------------------------------
| 823 | |
| 824 | //-------------------------------------------------------------- |
| 825 | void DurationController::bangFired(ofxTLBangEventArgs& bang){ |
| 826 | // ofLogNotice() << "Bang from " << bang.track->getDisplayName() << " at time " << bang.currentTime << " with flag " << bang.flag; |
| 827 | if(!settings.oscOutEnabled){ |
| 828 | return; |
| 829 | } |
| 830 | |
| 831 | string trackType = bang.track->getTrackType(); |
| 832 | if(!headers[bang.track->getName()]->sendOSC()){ |
| 833 | return; |
| 834 | } |
| 835 | ofxOscMessage m; |
| 836 | m.setAddress( ofFilePath::addLeadingSlash(bang.track->getDisplayName()) ); |
| 837 | |
| 838 | if(trackType == "Flags"){ |
| 839 | m.addStringArg(bang.flag); |
| 840 | } |
| 841 | |
| 842 | bangsReceived.push_back(m); |
| 843 | } |
| 844 | |
| 845 | //-------------------------------------------------------------- |
| 846 | void DurationController::guiEvent(ofxUIEventArgs &e){ |
nothing calls this directly
no test coverage detected