private void SaveWavFile() { string path = EditorUtility.SaveFilePanel("Where do you want the wav file to go?", "", "", "wav"); var audioClip = CreateToneAudioClip(1500); SaveWavUtil.Save(path, audioClip); }
private void SaveWavFile() { // Opens a save panel, asking the user to input a file path that will be used to save the current combinedSong variable string path = EditorUtility.SaveFilePanel("Where do you want the wav file to go?", "", "", "wav"); SaveWavUtil.Save(path, combinedSong); }