Mercurial > hg > svcore
comparison data/fileio/OggVorbisFileReader.h @ 1126:39019ce29178 tony-2.0-integration
Merge through to branch for Tony 2.0
author | Chris Cannam |
---|---|
date | Thu, 20 Aug 2015 14:54:21 +0100 |
parents | abc309f507ae |
children | 1c9bbbb6116a |
comparison
equal
deleted
inserted
replaced
1119:e22bfe8ca248 | 1126:39019ce29178 |
---|---|
32 class OggVorbisFileReader : public CodedAudioFileReader | 32 class OggVorbisFileReader : public CodedAudioFileReader |
33 { | 33 { |
34 Q_OBJECT | 34 Q_OBJECT |
35 | 35 |
36 public: | 36 public: |
37 enum DecodeMode { | |
38 DecodeAtOnce, // decode the file on construction, with progress | |
39 DecodeThreaded // decode in a background thread after construction | |
40 }; | |
41 | |
42 OggVorbisFileReader(FileSource source, | 37 OggVorbisFileReader(FileSource source, |
43 DecodeMode decodeMode, | 38 DecodeMode decodeMode, |
44 CacheMode cacheMode, | 39 CacheMode cacheMode, |
45 sv_samplerate_t targetRate = 0, | 40 sv_samplerate_t targetRate = 0, |
46 bool normalised = false, | 41 bool normalised = false, |
47 ProgressReporter *reporter = 0); | 42 ProgressReporter *reporter = nullptr); |
48 virtual ~OggVorbisFileReader(); | 43 virtual ~OggVorbisFileReader(); |
49 | 44 |
50 virtual QString getError() const { return m_error; } | 45 virtual QString getError() const { return m_error; } |
51 | 46 |
52 virtual QString getLocation() const { return m_source.getLocation(); } | 47 virtual QString getLocation() const { return m_source.getLocation(); } |