Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.h @ 929:59e7fe1b1003 warnfix_no_size_t
Unsigned removals and warning fixes in data/
author | Chris Cannam |
---|---|
date | Tue, 17 Jun 2014 14:33:42 +0100 |
parents | a4b8ad0f1a8f |
children | d03b3d956358 |
comparison
equal
deleted
inserted
replaced
928:6a94bb528e9d | 929:59e7fe1b1003 |
---|---|
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 ProgressReporter *reporter = 0); | 44 ProgressReporter *reporter = 0); |
45 virtual ~MP3FileReader(); | 45 virtual ~MP3FileReader(); |
46 | 46 |
47 virtual QString getError() const { return m_error; } | 47 virtual QString getError() const { return m_error; } |
48 | 48 |
70 QString m_path; | 70 QString m_path; |
71 QString m_error; | 71 QString m_error; |
72 QString m_title; | 72 QString m_title; |
73 QString m_maker; | 73 QString m_maker; |
74 TagMap m_tags; | 74 TagMap m_tags; |
75 size_t m_fileSize; | 75 int m_fileSize; |
76 double m_bitrateNum; | 76 double m_bitrateNum; |
77 size_t m_bitrateDenom; | 77 int m_bitrateDenom; |
78 int m_completion; | 78 int m_completion; |
79 bool m_done; | 79 bool m_done; |
80 | 80 |
81 unsigned char *m_filebuffer; | 81 unsigned char *m_filebuffer; |
82 float **m_samplebuffer; | 82 float **m_samplebuffer; |
83 size_t m_samplebuffersize; | 83 int m_samplebuffersize; |
84 | 84 |
85 ProgressReporter *m_reporter; | 85 ProgressReporter *m_reporter; |
86 bool m_cancelled; | 86 bool m_cancelled; |
87 | 87 |
88 struct DecoderData | 88 struct DecoderData |
90 unsigned char const *start; | 90 unsigned char const *start; |
91 unsigned long length; | 91 unsigned long length; |
92 MP3FileReader *reader; | 92 MP3FileReader *reader; |
93 }; | 93 }; |
94 | 94 |
95 bool decode(void *mm, size_t sz); | 95 bool decode(void *mm, int sz); |
96 enum mad_flow accept(struct mad_header const *, struct mad_pcm *); | 96 enum mad_flow accept(struct mad_header const *, struct mad_pcm *); |
97 | 97 |
98 static enum mad_flow input(void *, struct mad_stream *); | 98 static enum mad_flow input(void *, struct mad_stream *); |
99 static enum mad_flow output(void *, struct mad_header const *, struct mad_pcm *); | 99 static enum mad_flow output(void *, struct mad_header const *, struct mad_pcm *); |
100 static enum mad_flow error(void *, struct mad_stream *, struct mad_frame *); | 100 static enum mad_flow error(void *, struct mad_stream *, struct mad_frame *); |