Mercurial > hg > svcore
diff data/fileio/AudioFileReader.h @ 271:822bd7fd526c
* Add support for reading mp3 and Ogg file title tags
author | Chris Cannam |
---|---|
date | Mon, 02 Jul 2007 13:53:38 +0000 |
parents | e08f486e8d8c |
children | 20028c634494 |
line wrap: on
line diff
--- a/data/fileio/AudioFileReader.h Tue Jun 26 12:27:47 2007 +0000 +++ b/data/fileio/AudioFileReader.h Mon Jul 02 13:53:38 2007 +0000 @@ -34,6 +34,13 @@ size_t getChannelCount() const { return m_channelCount; } size_t getSampleRate() const { return m_sampleRate; } + /** + * Return the title of the work in the audio file, if known. This + * may be implemented by subclasses that support file tagging. + * This is not the same thing as the file name. + */ + virtual QString getTitle() const { return ""; } + /** * The subclass implementations of this function must be * thread-safe -- that is, safe to call from multiple threads with