Beispiel #1
0
        private void BtnSave_Click(object sender, EventArgs e)
        {
            if (!_prefTempLocationError && !_prefRecordingLocationError)
            {
                AppPreferences.RecordingLocation = prefRecordingLocation.Text;
                AppPreferences.TempLocation      = prefTempLocation.Text;

                AppPreferences.RecordingDevice   = prefRecordingDevice.Text;
                AppPreferences.RecordingRate     = Convert.ToInt32(prefRecordingRate.Text);
                AppPreferences.RecordingDepth    = Convert.ToInt32(prefRecordingDepth.Text);
                AppPreferences.RecordingChannels = Convert.ToInt32(prefRecordingChannels.Text);
                AppPreferences.Save();
                btnSave.Enabled = false;
                AudioDevice.Open();
            }
        }
Beispiel #2
0
 private void Main_Load(object sender, EventArgs e)
 {
     AudioDevice.Open();
 }