OSC problems.
Posted: 06 Dec 2012, 13:14
Hi there! I am experiencing some troubles about interacting with Ventuz using my soft in C#.
Probably i can't get the mechanics so i'm counting on your help. Pleaseeeee
My program is sending OSC Messages via udp to localhost(127.0.0.1), port 7000.
I'm using OSC.NET. Is it neccessary to use Ventuz.OSC?
Listings:
Transmitter method:
And this is how i'm creating a message:
Feel free to ask any questions. Thx in advance.
Probably i can't get the mechanics so i'm counting on your help. Pleaseeeee

My program is sending OSC Messages via udp to localhost(127.0.0.1), port 7000.
I'm using OSC.NET. Is it neccessary to use Ventuz.OSC?
Listings:
Transmitter method:
Code: Select all
public int Send(OSCPacket packet)
{
int byteNum = 0;
byte[] data = packet.BinaryData;
try
{
byteNum = this.udpClient.Send(data, data.Length);
}
catch (Exception e)
{
Console.Error.WriteLine(e.Message);
Console.Error.WriteLine(e.StackTrace);
}
return byteNum;
}
Code: Select all
messageToSend = new OSCMessage("/POS", 2);
float someFloat = 10f;
float someNextFloat = 10f;
messageToSend.Append(someFloat);
messageToSend.Append(someNextFloat);
transmitter.Send(messageToSend);