Mercurial > hg > svcore
comparison data/fileio/WavFileWriter.cpp @ 687:06f13a3b9e9e debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:09 +0100 |
parents | 920e3880f7b4 |
children | 573d45e9487b |
comparison
equal
deleted
inserted
replaced
686:b4a8d8221eaf | 687:06f13a3b9e9e |
---|---|
80 m_error = QString("Failed to write model to audio file: No file open"); | 80 m_error = QString("Failed to write model to audio file: No file open"); |
81 return false; | 81 return false; |
82 } | 82 } |
83 | 83 |
84 if (source->getChannelCount() != m_channels) { | 84 if (source->getChannelCount() != m_channels) { |
85 std::cerr << "WavFileWriter::writeModel: Wrong number of channels (" | 85 DEBUG << "WavFileWriter::writeModel: Wrong number of channels (" |
86 << source->getChannelCount() << " != " << m_channels << ")" | 86 << source->getChannelCount() << " != " << m_channels << ")" |
87 << std::endl; | 87 << endl; |
88 m_error = QString("Failed to write model to audio file '%1'") | 88 m_error = QString("Failed to write model to audio file '%1'") |
89 .arg(m_temp->getTemporaryFilename()); | 89 .arg(m_temp->getTemporaryFilename()); |
90 return false; | 90 return false; |
91 } | 91 } |
92 | 92 |