Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How to set correctly sendBundle()

$
0
0

@Dazzid_of wrote:

I have a very basic question. I need to send a package of messages using OSC Bundle. Something similar to this example:

osc::OutboundPacketStream p(buffer, OUTPUT_BUFFER_SIZE);
		p << osc::BeginBundleImmediate
			<< osc::BeginMessage("/qtm/data")
			<< (int64_t)time << (int)time << frameNumber << 0 << 0 << 6 << osc::EndMessage
			<< osc::BeginMessage("/features/timeMS")
			<< (float)time << osc::EndMessage
			<< osc::BeginMessage("/features/bowVioDist")
			<< (float)bowVioDist << osc::EndMessage
			<< osc::BeginMessage("/features/WhichStringAngle")
			<< (float)bowAngle2Violin << osc::EndMessage
...(etc)
            << osc::EndBundle;
		transmitSocket.Send(p.Data(), p.Size());

But using ofxOsc sendBundle(). Searching for examples on OF I still don't find how to properly set the bundle message. I guess I first need to define a ofxOscBundle myMessage but then how to populate the message to be sent by sendBundle(myMessage)?

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles