コード例 #1
0
ファイル: Cat_Audio.cs プロジェクト: qacpiweb/kabina
        //początek eksperymentu
        private void bExperStart_Click(object sender, EventArgs e)
        {
            plik = VarOutFile.CreateFile(tName.Text, tSurname.Text, tAge.Text, tBCD.Text);
            lInstructions.Text = plik_wejsciowy.Question;
            Visual_Presenting_Sample();
            Dialog dlg = new Dialog(plik_wejsciowy.Instructions);

            dlg.ShowDialog();

            //wybor urzadzenia ASIO
            int liczba = Un4seen.BassAsio.BassAsio.BASS_ASIO_GetDeviceCount();

            urzadzenie = -1;
            for (int i = 0; i < liczba; i++)
            {
                if (listDevices.Items[listDevices.SelectedIndex].ToString() == Un4seen.BassAsio.BassAsio.BASS_ASIO_GetDeviceInfo(i).name)
                {
                    urzadzenie = i;
                }
            }

            current_sample = Convert.ToInt32(numStartSample.Value);
            dodaj_date     = true;
            przygotowanie_odtwarzania();
        }
コード例 #2
0
ファイル: Cat_Audio.cs プロジェクト: qacpiweb/kabina
        public void zapisz_odpowiedz(object sender, EventArgs e)
        {
            var    b = (Button)sender;
            string v;
            string a;

            a = plik_wejsciowy.get_audio_samp(current_sample);
            v = "No Video";
            VarOutFile.Add_Line(plik, dodaj_date, plik_wejsciowy.file_path, current_sample, v, a, b.Text);
            dodaj_date = false;
            Ustawienie_probek();
        }
コード例 #3
0
ファイル: Aso_Audio.cs プロジェクト: qacpiweb/kabina
        public void zapisz_odpowiedz(object sender, EventArgs e)
        {
            string b = this.tAnswer.Text;
            string v;
            string a;

            a = plik_wejsciowy.get_audio_samp(current_sample);
            v = "No Video";
            VarOutFile.Add_Line(plik, dodaj_date, plik_wejsciowy.file_path, current_sample, v, a, b);
            dodaj_date   = false;
            tAnswer.Text = "";
            Ustawienie_probek();
        }
コード例 #4
0
        //początek eksperymentu
        private void bExperStart_Click(object sender, EventArgs e)
        {
            plik = VarOutFile.CreateFile(tName.Text, tSurname.Text, tAge.Text, tBCD.Text);
            lInstructions.Text = plik_wejsciowy.Question;
            Visual_Presenting_Sample();
            Dialog dlg = new Dialog(plik_wejsciowy.Instructions);

            dlg.ShowDialog();

            current_sample = Convert.ToInt32(numStartSample.Value);
            dodaj_date     = true;
            przygotowanie_odtwarzania();
        }