Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.h @ 935:f960d67ce842 tonioni
Merge from branch warnfix_no_size_t
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 13:42:01 +0100 |
parents | d03b3d956358 |
children | cc27f35aa75c |
comparison
equal
deleted
inserted
replaced
925:3efc20c59a94 | 935:f960d67ce842 |
---|---|
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 size_t targetRate = 0, | 43 int 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 size_t m_fileSize; | 76 int m_fileSize; |
77 double m_bitrateNum; | 77 double m_bitrateNum; |
78 size_t m_bitrateDenom; | 78 int m_bitrateDenom; |
79 int m_completion; | 79 int m_completion; |
80 bool m_done; | 80 bool m_done; |
81 | 81 |
82 unsigned char *m_filebuffer; | 82 unsigned char *m_filebuffer; |
83 float **m_samplebuffer; | 83 float **m_samplebuffer; |
84 size_t m_samplebuffersize; | 84 int m_samplebuffersize; |
85 | 85 |
86 ProgressReporter *m_reporter; | 86 ProgressReporter *m_reporter; |
87 bool m_cancelled; | 87 bool m_cancelled; |
88 | 88 |
89 struct DecoderData | 89 struct DecoderData |
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, size_t sz); | 96 bool decode(void *mm, int 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 *); |