Ejemplo n.º 1
0
        void AudioHandler_Events(object sender, SldwAudioEventArgs e)
        {
            switch (e.EventType)
            {
            case SldwAudioEventArgs.eSldwAudioEventType.OutputGain:
                _xpanel.StringInput[22].StringValue = e.OutputGain.ToString();
                for (uint i = 0; i < 7; i++)
                {
                    _xpanel.BooleanInput[23 + i].BoolValue = (int)e.OutputGain == i;
                }
                break;

            case SldwAudioEventArgs.eSldwAudioEventType.Eq:
                _xpanel.StringInput[23].StringValue = e.Eq.ToString();
                for (uint i = 0; i < 5; i++)
                {
                    _xpanel.BooleanInput[30 + i].BoolValue = (int)e.Eq == i;
                }
                break;

            case SldwAudioEventArgs.eSldwAudioEventType.LowCut:
                _xpanel.BooleanInput[22].BoolValue = e.LowCut;
                break;
            }
        }
Ejemplo n.º 2
0
        void AudioHandler_Events(object sender, SldwAudioEventArgs e)
        {
            switch (e.EventType)
            {
            case SldwAudioEventArgs.eSldwAudioEventType.OutputGain:
                SetOutputGainFb((ushort)e.OutputGain);
                break;

            case SldwAudioEventArgs.eSldwAudioEventType.Eq:
                SetEqFb((ushort)e.Eq);
                break;

            case SldwAudioEventArgs.eSldwAudioEventType.LowCut:
                SetLowCutFb(Convert.ToUInt16(e.LowCut));
                break;
            }
        }
Ejemplo n.º 3
0
 void ReceiverAudioHandler_Events(object sender, SldwAudioEventArgs e)
 {
     CrestronConsole.PrintLine(e.ToString());
 }