Mercurial > hg > svcore
diff data/fileio/WavFileReader.cpp @ 689:573d45e9487b
Merge from debug-output branch
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 14:47:59 +0100 |
parents | 06f13a3b9e9e |
children | 1424aa29ae95 |
line wrap: on
line diff
--- a/data/fileio/WavFileReader.cpp Tue Jun 14 13:43:03 2011 +0100 +++ b/data/fileio/WavFileReader.cpp Tue Jun 14 14:47:59 2011 +0100 @@ -40,7 +40,7 @@ if (!m_file || (!fileUpdating && m_fileInfo.channels <= 0)) { std::cerr << "WavFileReader::initialize: Failed to open file at \"" - << m_path.toStdString() << "\" (" + << m_path << "\" (" << sf_strerror(m_file) << ")" << std::endl; if (m_file) { @@ -80,12 +80,12 @@ sf_close(m_file); m_file = sf_open(m_path.toLocal8Bit(), SFM_READ, &m_fileInfo); if (!m_file || m_fileInfo.channels <= 0) { - std::cerr << "WavFileReader::updateFrameCount: Failed to open file at \"" << m_path.toStdString() << "\" (" + std::cerr << "WavFileReader::updateFrameCount: Failed to open file at \"" << m_path << "\" (" << sf_strerror(m_file) << ")" << std::endl; } } -// std::cerr << "WavFileReader::updateFrameCount: now " << m_fileInfo.frames << std::endl; +// DEBUG << "WavFileReader::updateFrameCount: now " << m_fileInfo.frames << endl; m_frameCount = m_fileInfo.frames; @@ -122,8 +122,8 @@ } if ((long)start >= m_fileInfo.frames) { -// std::cerr << "WavFileReader::getInterleavedFrames: " << start -// << " > " << m_fileInfo.frames << std::endl; +// DEBUG << "WavFileReader::getInterleavedFrames: " << start +// << " > " << m_fileInfo.frames << endl; return; }