diff data/fileio/AudioFileReader.h @ 1010:36f79bc5c3d7

Provide access to local filename
author Chris Cannam
date Fri, 14 Nov 2014 17:23:38 +0000
parents c9d456b1fcde
children cc27f35aa75c
line wrap: on
line diff
--- a/data/fileio/AudioFileReader.h	Fri Nov 14 17:23:27 2014 +0000
+++ b/data/fileio/AudioFileReader.h	Fri Nov 14 17:23:38 2014 +0000
@@ -62,6 +62,16 @@
      */
     virtual QString getMaker() const { return ""; }
 
+    /**
+     * Return the local file path of the audio data. This is the
+     * location most likely to contain readable audio data: it may be
+     * in a different place or format from the originally specified
+     * location, for example if the file has been retrieved and
+     * decoded. In some cases there may be no local file path, and
+     * this will return "" if there is none.
+     */
+    virtual QString getLocalFilename() const { return ""; }
+    
     typedef std::map<QString, QString> TagMap;
     virtual TagMap getTags() const { return TagMap(); }