comparison data/model/WritableWaveFileModel.cpp @ 686:b4a8d8221eaf debug-output

Remove most toStdString calls (no longer needed, with debug header)
author Chris Cannam
date Thu, 12 May 2011 17:31:24 +0100
parents e43368ec5ff0
children 06f13a3b9e9e
comparison
equal deleted inserted replaced
685:99222d4bfc78 686:b4a8d8221eaf
52 } 52 }
53 } 53 }
54 54
55 m_writer = new WavFileWriter(path, sampleRate, channels); 55 m_writer = new WavFileWriter(path, sampleRate, channels);
56 if (!m_writer->isOK()) { 56 if (!m_writer->isOK()) {
57 std::cerr << "WritableWaveFileModel: Error in creating WAV file writer: " << m_writer->getError().toStdString() << std::endl; 57 std::cerr << "WritableWaveFileModel: Error in creating WAV file writer: " << m_writer->getError() << std::endl;
58 delete m_writer; 58 delete m_writer;
59 m_writer = 0; 59 m_writer = 0;
60 return; 60 return;
61 } 61 }
62 62
108 #ifdef DEBUG_WRITABLE_WAVE_FILE_MODEL 108 #ifdef DEBUG_WRITABLE_WAVE_FILE_MODEL
109 // std::cerr << "WritableWaveFileModel::addSamples(" << count << ")" << std::endl; 109 // std::cerr << "WritableWaveFileModel::addSamples(" << count << ")" << std::endl;
110 #endif 110 #endif
111 111
112 if (!m_writer->writeSamples(samples, count)) { 112 if (!m_writer->writeSamples(samples, count)) {
113 std::cerr << "ERROR: WritableWaveFileModel::addSamples: writer failed: " << m_writer->getError().toStdString() << std::endl; 113 std::cerr << "ERROR: WritableWaveFileModel::addSamples: writer failed: " << m_writer->getError() << std::endl;
114 return false; 114 return false;
115 } 115 }
116 116
117 m_frameCount += count; 117 m_frameCount += count;
118 118