Пример #1
0
        void IBMDSwitcherAudioMonitorOutputCallback.Notify(_BMDSwitcherAudioMonitorOutputEventType eventType)
        {
            this._switcherAudioMonitorOutputEventArgs = new SwitcherAudioMonitorOutputEventArgs();
            switch (eventType)
            {
            case _BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeDimChanged:
                this.SwitcherAudioMonitorOutputEventTypeDimChanged?.Invoke(this, this._switcherAudioMonitorOutputEventArgs);
                break;

            case _BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeDimLevelChanged:
                this.SwitcherAudioMonitorOutputEventTypeDimLevelChanged?.Invoke(this, this._switcherAudioMonitorOutputEventArgs);
                break;

            case _BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeGainChanged:
                this.SwitcherAudioMonitorOutputEventTypeGainChanged?.Invoke(this, this._switcherAudioMonitorOutputEventArgs);
                break;

            case _BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeMonitorEnableChanged:
                this.SwitcherAudioMonitorOutputEventTypeMonitorEnableChanged?.Invoke(this, this._switcherAudioMonitorOutputEventArgs);
                break;

            case _BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeMuteChanged:
                this.SwitcherAudioMonitorOutputEventTypeMuteChanged?.Invoke(this, this._switcherAudioMonitorOutputEventArgs);
                break;

            case _BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeSoloChanged:
                this.SwitcherAudioMonitorOutputEventTypeSoloChanged?.Invoke(this, this._switcherAudioMonitorOutputEventArgs);
                break;

            case _BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeSoloInputChanged:
                this.SwitcherAudioMonitorOutputEventTypeSoloInputChanged?.Invoke(this, this._switcherAudioMonitorOutputEventArgs);
                break;
            }
        }
        void IBMDSwitcherAudioMonitorOutputCallback.Notify(_BMDSwitcherAudioMonitorOutputEventType EventType)
        {
            switch (EventType)
            {
            case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeDimChanged):
                if (DimChanged != null)
                {
                    DimChanged(this, null);
                }
                break;

            case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeDimLevelChanged):
                if (DimLevelChanged != null)
                {
                    DimLevelChanged(this, null);
                }
                break;

            case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeGainChanged):
                if (GainChanged != null)
                {
                    GainChanged(this, null);
                }
                break;

            case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeMonitorEnableChanged):
                if (MonitorEnableChanged != null)
                {
                    MonitorEnableChanged(this, null);
                }
                break;

            case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeMuteChanged):
                if (MuteChanged != null)
                {
                    MuteChanged(this, null);
                }
                break;

            case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeSoloChanged):
                if (SoloChanged != null)
                {
                    SoloChanged(this, null);
                }
                break;

            case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeSoloInputChanged):
                if (SoloInputChanged != null)
                {
                    SoloInputChanged(this, null);
                }
                break;
            }
        }
Пример #3
0
        void IBMDSwitcherAudioMonitorOutputCallback.Notify(_BMDSwitcherAudioMonitorOutputEventType EventType)
        {
            switch (EventType)
            {
                case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeDimChanged):
                    if (DimChanged != null)
                        DimChanged(this, null);
                    break;

                case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeDimLevelChanged):
                    if (DimLevelChanged != null)
                        DimLevelChanged(this, null);
                    break;

                case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeGainChanged):
                    if (GainChanged != null)
                        GainChanged(this, null);
                    break;

                case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeMonitorEnableChanged):
                    if (MonitorEnableChanged != null)
                        MonitorEnableChanged(this, null);
                    break;

                case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeMuteChanged):
                    if (MuteChanged != null)
                        MuteChanged(this, null);
                    break;

                case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeSoloChanged):
                    if (SoloChanged != null)
                        SoloChanged(this, null);
                    break;

                case (_BMDSwitcherAudioMonitorOutputEventType.bmdSwitcherAudioMonitorOutputEventTypeSoloInputChanged):
                    if (SoloInputChanged != null)
                        SoloInputChanged(this, null);
                    break;
            }
        }