Exemple #1
0
 public void sendMessageToOSCHandler()
 {
     string[] data = new string[2];
     data[0] = masterAzimuth;
     data[1] = Azimuth.ToString();
     output.SendMessage("SendOSCMessageToClient", data);
     data[0] = masterElevation;
     data[1] = Elevation.ToString();
     output.SendMessage("SendOSCMessageToClient", data);
 }
Exemple #2
0
    public void sendMessageToOSCHandler()
    {
        string[] data = new string[2];

        data[0] = azimuth + GetID().ToString();
        data[1] = GetAzimuth().ToString();
        output.SendMessage("SendOSCMessageToClient", data);

        data[0] = elevation + GetID().ToString();
        data[1] = GetElevation().ToString();
        output.SendMessage("SendOSCMessageToClient", data);
    }
Exemple #3
0
    public void sendMessageToOSCHandler()
    {
        //TODO: Refactoring -> OSC-Handler should handle adresses, SourceObject should only tell OSCHandler its values
        string[] data = new string[2];
        data[0] = AZIMUTH_ADDRESS + GetID().ToString();
        data[1] = GetAzimuth().ToString();
        output.SendMessage("SendOSCMessageToClient", data);

        data[0] = ELEVATION_ADDRESS + GetID().ToString();
        data[1] = GetElevation().ToString();
        output.SendMessage("SendOSCMessageToClient", data);

        data[0] = GAIN_ADDRESS + GetID().ToString();
        data[1] = GetGain().ToString();
        output.SendMessage("SendOSCMessageToClient", data);
    }
Exemple #4
0
    public void sendMute64(int mute)
    {
        if (mute > 1)
        {
            mute = 1;
        }

        string[] data = new string[2];

        data[0] = "/MultiEncoder/mute63";
        data[1] = mute.ToString();
        _oscOut.SendMessage("SendOSCMessageToClient", data);
    }
Exemple #5
0
    public void UpdateSources()
    {
        string[] data = new string[2];

        data[0] = inputChannelNumber;
        data[1] = numberOfObjects.ToString();
        output.SendMessage("SendOSCMessageToClient", data);

        for (int i = 0; i < numberOfObjects; i++)
        {
            GameObject src = sources[i] as GameObject;
            src.GetComponent <SourceObject>().sendMessageToOSCHandler();
        }
    }