diff 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
line wrap: on
line diff
--- a/data/fileio/MP3FileReader.h	Tue Jun 17 13:52:07 2014 +0100
+++ b/data/fileio/MP3FileReader.h	Tue Jun 17 14:33:42 2014 +0100
@@ -40,7 +40,7 @@
     MP3FileReader(FileSource source,
                   DecodeMode decodeMode,
                   CacheMode cacheMode,
-                  size_t targetRate = 0,
+                  int targetRate = 0,
                   ProgressReporter *reporter = 0);
     virtual ~MP3FileReader();
 
@@ -72,15 +72,15 @@
     QString m_title;
     QString m_maker;
     TagMap m_tags;
-    size_t m_fileSize;
+    int m_fileSize;
     double m_bitrateNum;
-    size_t m_bitrateDenom;
+    int m_bitrateDenom;
     int m_completion;
     bool m_done;
 
     unsigned char *m_filebuffer;
     float **m_samplebuffer;
-    size_t m_samplebuffersize;
+    int m_samplebuffersize;
 
     ProgressReporter *m_reporter;
     bool m_cancelled;
@@ -92,7 +92,7 @@
 	MP3FileReader *reader;
     };
 
-    bool decode(void *mm, size_t sz);
+    bool decode(void *mm, int sz);
     enum mad_flow accept(struct mad_header const *, struct mad_pcm *);
 
     static enum mad_flow input(void *, struct mad_stream *);