Mercurial > hg > svcore
comparison data/fileio/DecodingWavFileReader.h @ 936:0c1d6de8f44b
Merge from branch warnfix_no_size_t
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 13:51:16 +0100 |
parents | d03b3d956358 |
children | cc27f35aa75c |
comparison
equal
deleted
inserted
replaced
917:49618f39ff09 | 936:0c1d6de8f44b |
---|---|
33 ResampleAtOnce, // resample the file on construction, with progress dialog | 33 ResampleAtOnce, // resample the file on construction, with progress dialog |
34 ResampleThreaded // resample in a background thread after construction | 34 ResampleThreaded // resample in a background thread after construction |
35 }; | 35 }; |
36 | 36 |
37 DecodingWavFileReader(FileSource source, | 37 DecodingWavFileReader(FileSource source, |
38 ResampleMode resampleMode, | 38 ResampleMode resampleMode, |
39 CacheMode cacheMode, | 39 CacheMode cacheMode, |
40 size_t targetRate = 0, | 40 int targetRate = 0, |
41 ProgressReporter *reporter = 0); | 41 bool normalised = false, |
42 ProgressReporter *reporter = 0); | |
42 virtual ~DecodingWavFileReader(); | 43 virtual ~DecodingWavFileReader(); |
43 | 44 |
44 virtual QString getError() const { return m_error; } | 45 virtual QString getError() const { return m_error; } |
45 virtual QString getLocation() const { return m_source.getLocation(); } | 46 virtual QString getLocation() const { return m_source.getLocation(); } |
46 static void getSupportedExtensions(std::set<QString> &extensions); | 47 static void getSupportedExtensions(std::set<QString> &extensions); |
60 protected: | 61 protected: |
61 FileSource m_source; | 62 FileSource m_source; |
62 QString m_path; | 63 QString m_path; |
63 QString m_error; | 64 QString m_error; |
64 bool m_cancelled; | 65 bool m_cancelled; |
65 size_t m_processed; | 66 int m_processed; |
66 int m_completion; | 67 int m_completion; |
67 | 68 |
68 WavFileReader *m_original; | 69 WavFileReader *m_original; |
69 ProgressReporter *m_reporter; | 70 ProgressReporter *m_reporter; |
70 | 71 |