Skip to content

openframeworks OSC addon added event dispatching functionality when the receiver gets OSC message(s).

Notifications You must be signed in to change notification settings

hideyukisaito/ofxOsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hideyukisaito/ofxOsc

based on the ofxOsc included in of_preRelease_v007_osx

changes:
ofxOscReceiver dispatches ofEvent "onMessageReceived" with ofxOscMessage as ofEventArgs on received new message.
So we can get ofxOscMessage without using receiver.hasWaitingMessages().

i.e.

void testApp::setup()
{
    receiver.setup(10000);
    ofAddListener(receiver.onMessageReceived, this, &testApp::onMessageReceived);
}

void testApp::onMessageReceived(ofxOscMessage &msg)
{
    string addr = msg.getAddress();
    string message = msg.getArgAsString();
}

About

openframeworks OSC addon added event dispatching functionality when the receiver gets OSC message(s).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published