private void saveSoundToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();

            saveFileDialog.Filter = "WAV files (*.wav)|*.wav";
            if (saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                WAVSound savedSound = soundVisualizer.Sound.Copy(); //  recorderVisualizer.Sound.Copy();
                savedSound.SaveToFile(saveFileDialog.FileName);
            }
        }
示例#2
0
文件: SR1.cs 项目: whisp91/TME285
        private void quickSave_Click(object sender, EventArgs e)
        {
            if (soundVisualizer.Sound == null)
            {
                return;
            }
            if (folder == null)
            {
                ShowQuickSaveFolderDialog();
            }

            string   filename   = word + "_" + currentWordNumber + ".wav";
            WAVSound savedSound = soundVisualizer.Sound.Copy();

            savedSound.SaveToFile(folder + "\\" + filename);

            numberBox.Text = (currentWordNumber + 1) + "";
        }