Mercurial > hg > svapp
diff audioio/AudioGenerator.cpp @ 229:8c13e8219903 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:40 +0100 |
parents | 67cea66bd588 |
children | 8aace2d9f1c2 |
line wrap: on
line diff
--- a/audioio/AudioGenerator.cpp Thu May 12 17:31:56 2011 +0100 +++ b/audioio/AudioGenerator.cpp Mon May 16 17:19:40 2011 +0100 @@ -66,7 +66,7 @@ AudioGenerator::~AudioGenerator() { #ifdef DEBUG_AUDIO_GENERATOR - std::cerr << "AudioGenerator::~AudioGenerator" << std::endl; + DEBUG << "AudioGenerator::~AudioGenerator" << endl; #endif } @@ -160,7 +160,7 @@ AudioGenerator::playPluginConfigurationChanged(const Playable *playable, QString configurationXml) { -// std::cerr << "AudioGenerator::playPluginConfigurationChanged" << std::endl; +// DEBUG << "AudioGenerator::playPluginConfigurationChanged" << endl; const Model *model = dynamic_cast<const Model *>(playable); if (!model) { @@ -171,7 +171,7 @@ } if (m_synthMap.find(model) == m_synthMap.end()) { - std::cerr << "AudioGenerator::playPluginConfigurationChanged: We don't know about this plugin" << std::endl; + DEBUG << "AudioGenerator::playPluginConfigurationChanged: We don't know about this plugin" << endl; return; } @@ -309,7 +309,7 @@ { if (m_targetChannelCount == targetChannelCount) return; -// std::cerr << "AudioGenerator::setTargetChannelCount(" << targetChannelCount << ")" << std::endl; +// DEBUG << "AudioGenerator::setTargetChannelCount(" << targetChannelCount << ")" << endl; QMutexLocker locker(&m_mutex); m_targetChannelCount = targetChannelCount; @@ -464,7 +464,7 @@ size_t sourceChannel = (c % modelChannels); -// std::cerr << "mixing channel " << c << " from source channel " << sourceChannel << std::endl; +// DEBUG << "mixing channel " << c << " from source channel " << sourceChannel << endl; float channelGain = gain; if (pan != 0.0) {