comparison data/fileio/WavFileWriter.cpp @ 689:573d45e9487b

Merge from debug-output branch
author Chris Cannam
date Tue, 14 Jun 2011 14:47:59 +0100
parents bcca512445f3 06f13a3b9e9e
children 1424aa29ae95
comparison
equal deleted inserted replaced
688:be43b2fe68e8 689:573d45e9487b
96 bool 96 bool
97 WavFileWriter::writeModel(DenseTimeValueModel *source, 97 WavFileWriter::writeModel(DenseTimeValueModel *source,
98 MultiSelection *selection) 98 MultiSelection *selection)
99 { 99 {
100 if (source->getChannelCount() != m_channels) { 100 if (source->getChannelCount() != m_channels) {
101 std::cerr << "WavFileWriter::writeModel: Wrong number of channels (" 101 DEBUG << "WavFileWriter::writeModel: Wrong number of channels ("
102 << source->getChannelCount() << " != " << m_channels << ")" 102 << source->getChannelCount() << " != " << m_channels << ")"
103 << std::endl; 103 << endl;
104 m_error = QString("Failed to write model to audio file '%1'") 104 m_error = QString("Failed to write model to audio file '%1'")
105 .arg(getWriteFilename()); 105 .arg(getWriteFilename());
106 return false; 106 return false;
107 } 107 }
108 108