comparison data/fileio/OggVorbisFileReader.h @ 1097:abc309f507ae simple-fft-model

Tidy
author Chris Cannam
date Mon, 15 Jun 2015 12:38:50 +0100
parents fe39581d249b
children 1c9bbbb6116a
comparison
equal deleted inserted replaced
1096:4d9816ba0ebe 1097:abc309f507ae
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(); }