internal clsAsio(frmConfigBass frm)
                : base(frm)
            {
                //DevInfos = BassAsio.BASS_ASIO_GetDeviceInfos();
                List <AsioDeviceInfo> listdevinfos = new List <AsioDeviceInfo>();
                AsioDeviceInfo        devinfo;

                for (int i = 0; BassAsio.GetDeviceInfo(i, out devinfo); i++)
                {
                    listdevinfos.Add(devinfo);
                }
                DevInfos = listdevinfos.ToArray();

                Frm.trkAsiodB.Value    = Cfg.AsiodB;
                Frm.panNonAsio.Visible = false;
                Frm.lblAsiodB.Visible  = true;
                Frm.trkAsiodB.Visible  = true;
                if (DevInfos.Length > 0)
                {
                    Frm.cmdAsioPanel.Visible = true;
                }
                else
                {
                    Frm.cmdAsioPanel.Visible  = false;
                    Frm.cmdApply.Enabled      = false;
                    Frm.cmdConnectAll.Enabled = false;
                }
            }
 internal clsNonAsio(frmConfigBass frm)
     : base(frm)
 {
     //DevInfos = Bass.BASS_GetDeviceInfos();
     Frm.panNonAsio.Visible   = true;
     Frm.cmdAsioPanel.Visible = false;
     Frm.lblAsiodB.Visible    = false;
     Frm.trkAsiodB.Visible    = false;
 }
 protected clsInterface(frmConfigBass frm)
 {
     Frm = frm;
 }
Exemple #4
0
 private void cmdShowFrmAudio_Click(object sender, EventArgs e)
 {
     frmConfigBass = new frmConfigBass();
     frmConfigBass.Show();
     ((Button)sender).BackColor = ClickColor;
 }