- int set_name (string newname, bool destructive);
-
- string path() const { return _path; }
- string peak_path (string audio_path);
- string old_peak_path (string audio_path);
-
- static void set_peak_dir (string dir) { peak_dir = dir; }
-
- /* factory for an existing but not-used-in-session audio file. this exists
- because there maybe multiple back-end derivations of AudioFileSource,
- some of which can handle formats that cannot be handled by others.
- For example, CoreAudioFileSource can handle MP3 files, which SndFileSource
- cannot.
- */
+ bool set_name (const std::string& newname) {
+ return (set_source_name(newname, destructive()) == 0);
+ }
+
+ Glib::ustring peak_path (Glib::ustring audio_path);
+ Glib::ustring find_broken_peakfile (Glib::ustring missing_peak_path,
+ Glib::ustring audio_path);