Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
270:840dd5e6400f | 271:822bd7fd526c |
---|---|
41 CacheMode cacheMode); | 41 CacheMode cacheMode); |
42 virtual ~OggVorbisFileReader(); | 42 virtual ~OggVorbisFileReader(); |
43 | 43 |
44 virtual QString getError() const { return m_error; } | 44 virtual QString getError() const { return m_error; } |
45 | 45 |
46 virtual QString getTitle() const { return m_title; } | |
47 | |
46 static void getSupportedExtensions(std::set<QString> &extensions); | 48 static void getSupportedExtensions(std::set<QString> &extensions); |
47 | 49 |
48 virtual int getDecodeCompletion() const { return m_completion; } | 50 virtual int getDecodeCompletion() const { return m_completion; } |
49 | 51 |
50 virtual bool isUpdating() const { | 52 virtual bool isUpdating() const { |
52 } | 54 } |
53 | 55 |
54 protected: | 56 protected: |
55 QString m_path; | 57 QString m_path; |
56 QString m_error; | 58 QString m_error; |
59 QString m_title; | |
57 | 60 |
58 OGGZ *m_oggz; | 61 OGGZ *m_oggz; |
59 FishSound *m_fishSound; | 62 FishSound *m_fishSound; |
60 QProgressDialog *m_progress; | 63 QProgressDialog *m_progress; |
61 size_t m_fileSize; | 64 size_t m_fileSize; |
62 size_t m_bytesRead; | 65 size_t m_bytesRead; |
66 bool m_commentsRead; | |
63 bool m_cancelled; | 67 bool m_cancelled; |
64 int m_completion; | 68 int m_completion; |
65 | 69 |
66 static int readPacket(OGGZ *, ogg_packet *, long, void *); | 70 static int readPacket(OGGZ *, ogg_packet *, long, void *); |
67 static int acceptFrames(FishSound *, float **, long, void *); | 71 static int acceptFrames(FishSound *, float **, long, void *); |