private void bSetup_Click(object sender, EventArgs e)
 {
     if (cLBDSFilter.SelectedIndex != -1)
     {
         DirectShowPropertyPage page = new DirectShowPropertyPage((DsDevice)cLBDSFilter.SelectedItem);
         page.Show(this);
     }
 }
Exemplo n.º 2
0
        private void ConfigCodecSection(object sender, EventArgs e, string selection)
        {
            foreach (DsDevice device in DsDevice.GetDevicesOfCat(DirectShowLib.FilterCategory.LegacyAmFilterCategory))
            {
                try
                {
                    if (device.Name != null)
                    {
                        {
                            if (selection.Equals(device.Name))
                            {
                                if (selection.Contains("CyberLink"))
                                {
                                    // Rename MediaPortal subkey to Configuration for Cyberlink take setting
                                    RegMPtoConfig(@"Software\Cyberlink\Common\clcvd");
                                    RegMPtoConfig(@"Software\Cyberlink\Common\cl264dec");
                                    RegMPtoConfig(@"Software\Cyberlink\Common\CLVSD");
                                    RegMPtoConfig(@"Software\Cyberlink\Common\CLAud");

                                    // Show Codec page Setting
                                    DirectShowPropertyPage page = new DirectShowPropertyPage((DsDevice)device);
                                    page.Show(this);

                                    // Rename Configuration subkey to MediaPortal to apply Cyberlink setting
                                    RegConfigtoMP(@"Software\Cyberlink\Common\clcvd");
                                    RegConfigtoMP(@"Software\Cyberlink\Common\cl264dec");
                                    RegConfigtoMP(@"Software\Cyberlink\Common\CLVSD");
                                    RegConfigtoMP(@"Software\Cyberlink\Common\CLAud");
                                }
                                else
                                {
                                    DirectShowPropertyPage page = new DirectShowPropertyPage((DsDevice)device);
                                    page.Show(this);
                                }
                            }
                        }
                    }
                }
                catch (Exception)
                {
                }
            }
        }
Exemplo n.º 3
0
 private void ConfigAudioRendererCodecSection(object sender, EventArgs e, string selection)
 {
     foreach (DsDevice device in DsDevice.GetDevicesOfCat(DirectShowLib.FilterCategory.AudioRendererCategory))
     {
         try
         {
             if (device.Name != null)
             {
                 {
                     if (selection.Equals(device.Name))
                     {
                         DirectShowPropertyPage page = new DirectShowPropertyPage((DsDevice)device);
                         page.Show(this);
                     }
                 }
             }
         }
         catch (Exception)
         {
         }
     }
 }