Mercurial > hg > svcore
diff data/fileio/CodedAudioFileReader.cpp @ 921:2896b8872834 tonioni
Add normalise preference and take it into account in WaveFileModel
author | Chris Cannam |
---|---|
date | Fri, 13 Jun 2014 16:12:00 +0100 |
parents | f3cda3280398 |
children | 9911b8cb53bc |
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.cpp Fri Jun 13 16:03:48 2014 +0100 +++ b/data/fileio/CodedAudioFileReader.cpp Fri Jun 13 16:12:00 2014 +0100 @@ -46,7 +46,7 @@ m_max(0.f), m_gain(1.f) { - SVDEBUG << "CodedAudioFileReader::CodedAudioFileReader: rate " << targetRate << ", normalised = " << normalised << endl; + cerr << "CodedAudioFileReader::CodedAudioFileReader: rate " << targetRate << ", normalised = " << normalised << endl; m_frameCount = 0; m_sampleRate = targetRate; @@ -446,6 +446,7 @@ } if (m_normalised) { + cerr << "CodedAudioFileReader::getInterleavedFrames: normalised, gain = " << m_gain << endl; for (int i = 0; i < (int)(count * m_channelCount); ++i) { frames[i] *= m_gain; }