Mercurial > hg > svcore
diff data/model/WritableWaveFileModel.cpp @ 847:2d53205f70cd tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:37:01 +0000 |
parents | e802e550a1f2 |
children | 59e7fe1b1003 |
line wrap: on
line diff
--- a/data/model/WritableWaveFileModel.cpp Fri Nov 22 10:37:28 2013 +0000 +++ b/data/model/WritableWaveFileModel.cpp Tue Nov 26 14:37:01 2013 +0000 @@ -48,7 +48,7 @@ path = dir.filePath(QString("written_%1.wav") .arg((intptr_t)this)); } catch (DirectoryCreationFailed f) { - std::cerr << "WritableWaveFileModel: Failed to create temporary directory" << std::endl; + cerr << "WritableWaveFileModel: Failed to create temporary directory" << endl; return; } } @@ -58,7 +58,7 @@ m_writer = new WavFileWriter(path, sampleRate, channels, WavFileWriter::WriteToTarget); if (!m_writer->isOK()) { - std::cerr << "WritableWaveFileModel: Error in creating WAV file writer: " << m_writer->getError() << std::endl; + cerr << "WritableWaveFileModel: Error in creating WAV file writer: " << m_writer->getError() << endl; delete m_writer; m_writer = 0; return; @@ -68,7 +68,7 @@ m_reader = new WavFileReader(source, true); if (!m_reader->getError().isEmpty()) { - std::cerr << "WritableWaveFileModel: Error in creating wave file reader" << std::endl; + cerr << "WritableWaveFileModel: Error in creating wave file reader" << endl; delete m_reader; m_reader = 0; return; @@ -76,7 +76,7 @@ m_model = new WaveFileModel(source, m_reader); if (!m_model->isOK()) { - std::cerr << "WritableWaveFileModel: Error in creating wave file model" << std::endl; + cerr << "WritableWaveFileModel: Error in creating wave file model" << endl; delete m_model; m_model = 0; delete m_reader; @@ -114,7 +114,7 @@ #endif if (!m_writer->writeSamples(samples, count)) { - std::cerr << "ERROR: WritableWaveFileModel::addSamples: writer failed: " << m_writer->getError() << std::endl; + cerr << "ERROR: WritableWaveFileModel::addSamples: writer failed: " << m_writer->getError() << endl; return false; }