diff data/fileio/OggVorbisFileReader.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/OggVorbisFileReader.h	Tue Jun 26 12:27:47 2007 +0000
+++ b/data/fileio/OggVorbisFileReader.h	Mon Jul 02 13:53:38 2007 +0000
@@ -43,6 +43,8 @@
 
     virtual QString getError() const { return m_error; }
 
+    virtual QString getTitle() const { return m_title; }
+    
     static void getSupportedExtensions(std::set<QString> &extensions);
 
     virtual int getDecodeCompletion() const { return m_completion; }
@@ -54,12 +56,14 @@
 protected:
     QString m_path;
     QString m_error;
+    QString m_title;
 
     OGGZ *m_oggz;
     FishSound *m_fishSound;
     QProgressDialog *m_progress;
     size_t m_fileSize;
     size_t m_bytesRead;
+    bool m_commentsRead;
     bool m_cancelled;
     int m_completion;