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); } }
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) + ""; }