Mercurial > hg > svcore
diff data/model/WritableWaveFileModel.cpp @ 1517:925d205c39b4 import-audio-data
Handle sample range specification for CSV import
author | Chris Cannam |
---|---|
date | Sat, 08 Sep 2018 20:43:14 +0100 |
parents | cee1be4fb8c1 |
children | 954d0cf29ca7 |
line wrap: on
line diff
--- a/data/model/WritableWaveFileModel.cpp Fri Sep 07 18:12:20 2018 +0100 +++ b/data/model/WritableWaveFileModel.cpp Sat Sep 08 20:43:14 2018 +0100 @@ -38,7 +38,8 @@ WritableWaveFileModel::WritableWaveFileModel(sv_samplerate_t sampleRate, int channels, - QString path) : + QString path, + bool normaliseOnRead) : m_model(0), m_writer(0), m_reader(0), @@ -72,7 +73,7 @@ FileSource source(m_writer->getPath()); - m_reader = new WavFileReader(source, true); + m_reader = new WavFileReader(source, true, normaliseOnRead); if (!m_reader->getError().isEmpty()) { SVCERR << "WritableWaveFileModel: Error in creating wave file reader" << endl; delete m_reader;