comparison data/fileio/DecodingWavFileReader.cpp @ 920:f3cda3280398 tonioni

Add normalised option to CodedAudioFileReader
author Chris Cannam
date Fri, 13 Jun 2014 16:03:48 +0100
parents f0558e69a074
children d03b3d956358
comparison
equal deleted inserted replaced
919:4c7b4040bd2d 920:f3cda3280398
20 #include "base/ProgressReporter.h" 20 #include "base/ProgressReporter.h"
21 21
22 #include <QFileInfo> 22 #include <QFileInfo>
23 23
24 DecodingWavFileReader::DecodingWavFileReader(FileSource source, 24 DecodingWavFileReader::DecodingWavFileReader(FileSource source,
25 ResampleMode resampleMode, 25 ResampleMode resampleMode,
26 CacheMode mode, 26 CacheMode mode,
27 size_t targetRate, 27 size_t targetRate,
28 ProgressReporter *reporter) : 28 bool normalised,
29 CodedAudioFileReader(mode, targetRate), 29 ProgressReporter *reporter) :
30 CodedAudioFileReader(mode, targetRate, normalised),
30 m_source(source), 31 m_source(source),
31 m_path(source.getLocalFilename()), 32 m_path(source.getLocalFilename()),
32 m_cancelled(false), 33 m_cancelled(false),
33 m_processed(0), 34 m_processed(0),
34 m_completion(0), 35 m_completion(0),