/// <summary>
    /// Send an individual OSC message.  Internally takes the OscMessage object and
    /// serializes it into a byte[] suitable for sending to the PacketIO.
    /// </summary>
    /// <param name="oscMessage">The OSC Message to send.</param>
    public void Send(OscMessage oscMessage)
    {
        byte[] packet = new byte[numBytes];
        int    length = OSC.OscMessageToPacket(oscMessage, packet, numBytes);

        OscPacketIO.SendPacket(packet, length);
    }
Beispiel #2
0
    /// <summary>
    /// Send an individual OSC message.  Internally takes the OscMessage object and
    /// serializes it into a byte[] suitable for sending to the PacketIO.
    /// </summary>
    /// <param name="oscMessage">The OSC Message to send.</param>
    public void Send(OscMessage oscMessage)
    {
        setOsc(oscMessage);
        byte[] packet = new byte[1000];
        int    length = OSC.OscMessageToPacket(oscMessage, packet, 1000);

        OscPacketIO.SendPacket(packet, length);
    }
Beispiel #3
0
    /// <summary>
    /// Send an individual OSC message.  Internally takes the OscMessage object and
    /// serializes it into a byte[] suitable for sending to the PacketIO.
    /// </summary>
    /// <param name="oscMessage">The OSC Message to send.</param>
    public void Send(OscMessage oscMessage)
    {
        byte[] packet = new byte[maxPktSize];
        int    length = OSC.OscMessageToPacket(oscMessage, packet, maxPktSize);

        //Debug.Log("***Send: " + packet + "; " + length + "; " + OscPacketIO.ToString());

        OscPacketIO.SendPacket(packet, length);
    }