Ejemplo n.º 1
0
        private void radioButtonOutAsio_Checked(object sender, RoutedEventArgs e)
        {
            m_outputMode = OutputMode.Asio;

            int driverNum = asio.DriverNumGet();

            listBoxAsioDevices.Items.Clear();
            for (int i = 0; i < driverNum; ++i)
            {
                listBoxAsioDevices.Items.Add(asio.DriverNameGet(i));
            }
            listBoxAsioDevices.SelectedIndex = 0;

            UpdateUIStatus();
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            asio = new AsioCS();
            asio.Init();
            int nDrivers = asio.DriverNumGet();

            Console.WriteLine("driverNum=" + nDrivers);
            for (int i = 0; i < nDrivers; ++i)
            {
                listBoxDrivers.Items.Add(asio.DriverNameGet(i));
            }
            if (0 < nDrivers)
            {
                listBoxDrivers.SelectedIndex = 0;
                buttonLoadDriver.Enabled     = true;
            }

            if (1 == nDrivers)
            {
                buttonLoadDriver_Click(null, null);
            }
        }