Ejemplo n.º 1
0
        private void btnDevice_Click(object sender, System.EventArgs e)
        {
            Trial tr = new Trial();
            Guid  g;

            g = tr.SetInputDeviceGuid();
            MessageBox.Show(g.ToString());
            applicationDevice = tr.InitDirectSound();
        }
Ejemplo n.º 2
0
        private void btnFormat_Click(object sender, System.EventArgs e)
        {
            Trial tr = new Trial();

            InputFormat         = tr.GetInputFormat(listSelect.SelectedIndex);
            lblInputFormat.Text = string.Format("{0} Hz, {1}-bit ",
                                                InputFormat.SamplesPerSecond,
                                                InputFormat.BitsPerSample) +
                                  ((1 == InputFormat.Channels) ? "Mono" : "Stereo");
            MessageBox.Show(InputFormat.ToString());
        }
Ejemplo n.º 3
0
        private void Form1_Load(object sender, System.EventArgs e)
        {
            Trial tr = new Trial();

            aDevice = tr.GetInputDevice();
            comboDevice.DataSource    = aDevice;
            comboDevice.SelectedIndex = 1;


            aFormat = tr.GetFormatList();
            listSelect.DataSource = aFormat;
        }