Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.h @ 1069:32ab6c48efaa
Merge from branch tonioni
author | Chris Cannam |
---|---|
date | Mon, 20 Apr 2015 09:11:34 +0100 |
parents | a1cd5abcb38b |
children | abc309f507ae |
comparison
equal
deleted
inserted
replaced
1036:682d64f05e72 | 1069:32ab6c48efaa |
---|---|
38 }; | 38 }; |
39 | 39 |
40 MP3FileReader(FileSource source, | 40 MP3FileReader(FileSource source, |
41 DecodeMode decodeMode, | 41 DecodeMode decodeMode, |
42 CacheMode cacheMode, | 42 CacheMode cacheMode, |
43 int targetRate = 0, | 43 sv_samplerate_t targetRate = 0, |
44 bool normalised = false, | 44 bool normalised = false, |
45 ProgressReporter *reporter = 0); | 45 ProgressReporter *reporter = 0); |
46 virtual ~MP3FileReader(); | 46 virtual ~MP3FileReader(); |
47 | 47 |
48 virtual QString getError() const { return m_error; } | 48 virtual QString getError() const { return m_error; } |
71 QString m_path; | 71 QString m_path; |
72 QString m_error; | 72 QString m_error; |
73 QString m_title; | 73 QString m_title; |
74 QString m_maker; | 74 QString m_maker; |
75 TagMap m_tags; | 75 TagMap m_tags; |
76 int m_fileSize; | 76 sv_frame_t m_fileSize; |
77 double m_bitrateNum; | 77 double m_bitrateNum; |
78 int m_bitrateDenom; | 78 int m_bitrateDenom; |
79 int m_completion; | 79 int m_completion; |
80 bool m_done; | 80 bool m_done; |
81 | 81 |
91 unsigned char const *start; | 91 unsigned char const *start; |
92 unsigned long length; | 92 unsigned long length; |
93 MP3FileReader *reader; | 93 MP3FileReader *reader; |
94 }; | 94 }; |
95 | 95 |
96 bool decode(void *mm, int sz); | 96 bool decode(void *mm, sv_frame_t sz); |
97 enum mad_flow accept(struct mad_header const *, struct mad_pcm *); | 97 enum mad_flow accept(struct mad_header const *, struct mad_pcm *); |
98 | 98 |
99 static enum mad_flow input(void *, struct mad_stream *); | 99 static enum mad_flow input(void *, struct mad_stream *); |
100 static enum mad_flow output(void *, struct mad_header const *, struct mad_pcm *); | 100 static enum mad_flow output(void *, struct mad_header const *, struct mad_pcm *); |
101 static enum mad_flow error(void *, struct mad_stream *, struct mad_frame *); | 101 static enum mad_flow error(void *, struct mad_stream *, struct mad_frame *); |