Esempio n. 1
0
        private void SwitcherConnected()
        {
            string switcherName;

            m_switcher.GetProductName(out switcherName);
            SwitcherName = switcherName;

            // Install SwitcherMonitor callbacks:
            m_switcher.AddCallback(m_switcherMonitor);

            GetInputs();

            m_mixEffectBlock1 = GetMixBox1();
            if (m_mixEffectBlock1 != null)
            {
                m_mixEffectBlock1.AddCallback(m_mixEffectBlockMonitor);
            }
            else
            {
                MessageBox.Show("Unexpected: Could not get first mix effect block", "Error");
            }

            m_switcherKey       = GetSwitcherKey1(m_mixEffectBlock1);
            m_switcherKeyPreset = GetKeyParam(m_mixEffectBlock1);
            m_transitionParam   = GetKeyTransition(m_mixEffectBlock1);

            UpdatePopupItems();
            UpdateSliderPosition();
            IsConnected = true;

            m_switcherKey.SetOnAir(0);
        }
Esempio n. 2
0
 public void SetSongOffAir()
 {
     try
     {
         GetTransition1Parameters().SetNextTransitionSelection(_BMDSwitcherTransitionSelection.bmdSwitcherTransitionSelectionBackground);
         IBMDSwitcherKey key = GetKey1();
         key.SetOnAir(0);
     }
     catch (Exception ex)
     {
         throw new SwitcherLibException(ex.Message, ex);
     }
 }
Esempio n. 3
0
 public void SetSongOnAir()
 {
     try
     {
         IBMDSwitcherKey key = GetKey1();
         key.SetInputFill(3010);                 //http://skaarhoj.com/fileadmin/BMDPROTOCOL.html
         GetTransition1Parameters().SetNextTransitionSelection(_BMDSwitcherTransitionSelection.bmdSwitcherTransitionSelectionBackground);
         key.SetOnAir(1);
     }
     catch (Exception ex)
     {
         throw new SwitcherLibException(ex.Message, ex);
     }
 }