Mercurial > hg > svapp
changeset 233:8aace2d9f1c2
Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author | Chris Cannam |
---|---|
date | Tue, 14 Jun 2011 15:27:12 +0100 |
parents | 025065fd5b49 |
children | a98f1638c5ec dd14baa45847 |
files | audioio/AudioCallbackPlaySource.cpp audioio/AudioGenerator.cpp audioio/AudioJACKTarget.cpp audioio/AudioPortAudioTarget.cpp audioio/AudioPulseAudioTarget.cpp framework/Document.cpp framework/MainWindowBase.cpp framework/SVFileReader.cpp framework/TransformUserConfigurator.cpp framework/VersionTester.cpp |
diffstat | 10 files changed, 103 insertions(+), 103 deletions(-) [+] |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/audioio/AudioCallbackPlaySource.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -101,7 +101,7 @@ AudioCallbackPlaySource::~AudioCallbackPlaySource() { #ifdef DEBUG_AUDIO_PLAY_SOURCE - DEBUG << "AudioCallbackPlaySource::~AudioCallbackPlaySource entering" << endl; + SVDEBUG << "AudioCallbackPlaySource::~AudioCallbackPlaySource entering" << endl; #endif m_exiting = true; @@ -136,7 +136,7 @@ m_bufferScavenger.scavenge(true); m_pluginScavenger.scavenge(true); #ifdef DEBUG_AUDIO_PLAY_SOURCE - DEBUG << "AudioCallbackPlaySource::~AudioCallbackPlaySource finishing" << endl; + SVDEBUG << "AudioCallbackPlaySource::~AudioCallbackPlaySource finishing" << endl; #endif } @@ -192,7 +192,7 @@ if (wfm && wfm != dtvm && wfm->getSampleRate() != model->getSampleRate() && wfm->getSampleRate() == m_sourceSampleRate) { - DEBUG << "AudioCallbackPlaySource::addModel: Conflicting wave file model " << *i << " found" << endl; + SVDEBUG << "AudioCallbackPlaySource::addModel: Conflicting wave file model " << *i << " found" << endl; conflicting = true; break; } @@ -200,7 +200,7 @@ if (conflicting) { - DEBUG << "AudioCallbackPlaySource::addModel: ERROR: " + SVDEBUG << "AudioCallbackPlaySource::addModel: ERROR: " << "New model sample rate does not match" << endl << "existing model(s) (new " << model->getSampleRate() << " vs " << m_sourceSampleRate @@ -266,7 +266,7 @@ AudioCallbackPlaySource::modelChanged(size_t startFrame, size_t endFrame) { #ifdef DEBUG_AUDIO_PLAY_SOURCE - DEBUG << "AudioCallbackPlaySource::modelChanged(" << startFrame << "," << endFrame << ")" << endl; + SVDEBUG << "AudioCallbackPlaySource::modelChanged(" << startFrame << "," << endFrame << ")" << endl; #endif if (endFrame > m_lastModelEndFrame) { m_lastModelEndFrame = endFrame; @@ -384,11 +384,11 @@ if (m_viewManager->getPlaySelectionMode() && !m_viewManager->getSelections().empty()) { - DEBUG << "AudioCallbackPlaySource::play: constraining frame " << startFrame << " to selection = "; + SVDEBUG << "AudioCallbackPlaySource::play: constraining frame " << startFrame << " to selection = "; startFrame = m_viewManager->constrainFrameToSelection(startFrame); - DEBUG << startFrame << endl; + SVDEBUG << startFrame << endl; } else { if (startFrame >= m_lastModelEndFrame) { @@ -466,7 +466,7 @@ AudioCallbackPlaySource::stop() { #ifdef DEBUG_AUDIO_PLAY_SOURCE - DEBUG << "AudioCallbackPlaySource::stop()" << endl; + SVDEBUG << "AudioCallbackPlaySource::stop()" << endl; #endif bool changed = m_playing; m_playing = false; @@ -555,7 +555,7 @@ m_blockSize = size; } if (size * 4 > m_ringBufferSize) { - DEBUG << "AudioCallbackPlaySource::setTarget: Buffer size " + SVDEBUG << "AudioCallbackPlaySource::setTarget: Buffer size " << size << " > a quarter of ring buffer size " << m_ringBufferSize << ", calling for more ring buffer" << endl; @@ -848,7 +848,7 @@ MultiSelection::SelectionList::const_iterator i; #ifdef DEBUG_AUDIO_PLAY_SOURCE - DEBUG << "AudioCallbackPlaySource::rebuildRangeLists" << endl; + SVDEBUG << "AudioCallbackPlaySource::rebuildRangeLists" << endl; #endif if (!selections.empty()) { @@ -968,7 +968,7 @@ m_resampleQuality = q; #ifdef DEBUG_AUDIO_PLAY_SOURCE - DEBUG << "AudioCallbackPlaySource::setResampleQuality: setting to " + SVDEBUG << "AudioCallbackPlaySource::setResampleQuality: setting to " << m_resampleQuality << endl; #endif @@ -1068,7 +1068,7 @@ if (!m_playing) { #ifdef DEBUG_AUDIO_PLAY_SOURCE_PLAYING - DEBUG << "AudioCallbackPlaySource::getSourceSamples: Not playing" << endl; + SVDEBUG << "AudioCallbackPlaySource::getSourceSamples: Not playing" << endl; #endif for (size_t ch = 0; ch < getTargetChannelCount(); ++ch) { for (int i = 0; i < count; ++i) { @@ -1079,7 +1079,7 @@ } #ifdef DEBUG_AUDIO_PLAY_SOURCE_PLAYING - DEBUG << "AudioCallbackPlaySource::getSourceSamples: Playing" << endl; + SVDEBUG << "AudioCallbackPlaySource::getSourceSamples: Playing" << endl; #endif // Ensure that all buffers have at least the amount of data we @@ -1230,7 +1230,7 @@ #ifdef DEBUG_AUDIO_PLAY_SOURCE_PLAYING if (c == 0) { - DEBUG << "feeding stretcher: got " << gotHere + SVDEBUG << "feeding stretcher: got " << gotHere << ", " << rb->getReadSpace() << " remain" << endl; } #endif @@ -1722,7 +1722,7 @@ // OK, we don't have enough and there's more to // read -- don't unify until we can do better #ifdef DEBUG_AUDIO_PLAY_SOURCE_PLAYING - DEBUG << "AudioCallbackPlaySource::unifyRingBuffers: Not unifying: write buffer has less (" << wb->getReadSpace() << ") than " << m_blockSize*2 << " to read and write buffer fill (" << m_writeBufferFill << ") is not close to end frame (" << m_lastModelEndFrame << ")" << endl; + SVDEBUG << "AudioCallbackPlaySource::unifyRingBuffers: Not unifying: write buffer has less (" << wb->getReadSpace() << ") than " << m_blockSize*2 << " to read and write buffer fill (" << m_writeBufferFill << ") is not close to end frame (" << m_lastModelEndFrame << ")" << endl; #endif return; } @@ -1742,7 +1742,7 @@ } #ifdef DEBUG_AUDIO_PLAY_SOURCE_PLAYING - DEBUG << "AudioCallbackPlaySource::unifyRingBuffers: m_readBufferFill = " << m_readBufferFill << ", rf = " << rf << ", m_writeBufferFill = " << m_writeBufferFill << endl; + SVDEBUG << "AudioCallbackPlaySource::unifyRingBuffers: m_readBufferFill = " << m_readBufferFill << ", rf = " << rf << ", m_writeBufferFill = " << m_writeBufferFill << endl; #endif size_t wf = m_writeBufferFill;
--- a/audioio/AudioGenerator.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/audioio/AudioGenerator.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -66,7 +66,7 @@ AudioGenerator::~AudioGenerator() { #ifdef DEBUG_AUDIO_GENERATOR - DEBUG << "AudioGenerator::~AudioGenerator" << endl; + SVDEBUG << "AudioGenerator::~AudioGenerator" << endl; #endif } @@ -160,7 +160,7 @@ AudioGenerator::playPluginConfigurationChanged(const Playable *playable, QString configurationXml) { -// DEBUG << "AudioGenerator::playPluginConfigurationChanged" << endl; +// SVDEBUG << "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()) { - DEBUG << "AudioGenerator::playPluginConfigurationChanged: We don't know about this plugin" << endl; + SVDEBUG << "AudioGenerator::playPluginConfigurationChanged: We don't know about this plugin" << endl; return; } @@ -309,7 +309,7 @@ { if (m_targetChannelCount == targetChannelCount) return; -// DEBUG << "AudioGenerator::setTargetChannelCount(" << targetChannelCount << ")" << endl; +// SVDEBUG << "AudioGenerator::setTargetChannelCount(" << targetChannelCount << ")" << endl; QMutexLocker locker(&m_mutex); m_targetChannelCount = targetChannelCount; @@ -464,7 +464,7 @@ size_t sourceChannel = (c % modelChannels); -// DEBUG << "mixing channel " << c << " from source channel " << sourceChannel << endl; +// SVDEBUG << "mixing channel " << c << " from source channel " << sourceChannel << endl; float channelGain = gain; if (pan != 0.0) {
--- a/audioio/AudioJACKTarget.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/audioio/AudioJACKTarget.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -262,7 +262,7 @@ AudioJACKTarget::~AudioJACKTarget() { - DEBUG << "AudioJACKTarget::~AudioJACKTarget()" << endl; + SVDEBUG << "AudioJACKTarget::~AudioJACKTarget()" << endl; if (m_source) { m_source->setTarget(0, m_bufferSize); @@ -289,7 +289,7 @@ m_client = 0; - DEBUG << "AudioJACKTarget::~AudioJACKTarget() done" << endl; + SVDEBUG << "AudioJACKTarget::~AudioJACKTarget() done" << endl; } void @@ -351,7 +351,7 @@ while (ports[physicalPortCount]) ++physicalPortCount; #ifdef DEBUG_AUDIO_JACK_TARGET - DEBUG << "AudioJACKTarget::sourceModelReplaced: have " << channels << " channels and " << physicalPortCount << " physical ports" << endl; + SVDEBUG << "AudioJACKTarget::sourceModelReplaced: have " << channels << " channels and " << physicalPortCount << " physical ports" << endl; #endif while (m_outputs.size() < channels) {
--- a/audioio/AudioPortAudioTarget.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/audioio/AudioPortAudioTarget.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -113,7 +113,7 @@ AudioPortAudioTarget::~AudioPortAudioTarget() { - DEBUG << "AudioPortAudioTarget::~AudioPortAudioTarget()" << endl; + SVDEBUG << "AudioPortAudioTarget::~AudioPortAudioTarget()" << endl; if (m_source) { m_source->setTarget(0, m_bufferSize); @@ -123,7 +123,7 @@ if (m_stream) { - DEBUG << "closing stream" << endl; + SVDEBUG << "closing stream" << endl; PaError err; err = Pa_CloseStream(m_stream); @@ -141,14 +141,14 @@ m_stream = 0; - DEBUG << "AudioPortAudioTarget::~AudioPortAudioTarget() done" << endl; + SVDEBUG << "AudioPortAudioTarget::~AudioPortAudioTarget() done" << endl; } void AudioPortAudioTarget::shutdown() { #ifdef DEBUG_PORT_AUDIO_TARGET - DEBUG << "AudioPortAudioTarget::shutdown" << endl; + SVDEBUG << "AudioPortAudioTarget::shutdown" << endl; #endif m_done = true; } @@ -190,12 +190,12 @@ PaStreamCallbackFlags) { #ifdef DEBUG_AUDIO_PORT_AUDIO_TARGET - DEBUG << "AudioPortAudioTarget::process(" << nframes << ")" << endl; + SVDEBUG << "AudioPortAudioTarget::process(" << nframes << ")" << endl; #endif if (!m_source || m_done) { #ifdef DEBUG_AUDIO_PORT_AUDIO_TARGET - DEBUG << "AudioPortAudioTarget::process: Doing nothing, no source or application done" << endl; + SVDEBUG << "AudioPortAudioTarget::process: Doing nothing, no source or application done" << endl; #endif return 0; } @@ -205,9 +205,9 @@ sched_param param; param.sched_priority = 20; if (pthread_setschedparam(pthread_self(), SCHED_RR, ¶m)) { - DEBUG << "AudioPortAudioTarget: NOTE: couldn't set RT scheduling class" << endl; + SVDEBUG << "AudioPortAudioTarget: NOTE: couldn't set RT scheduling class" << endl; } else { - DEBUG << "AudioPortAudioTarget: NOTE: successfully set RT scheduling class" << endl; + SVDEBUG << "AudioPortAudioTarget: NOTE: successfully set RT scheduling class" << endl; } #endif m_prioritySet = true;
--- a/audioio/AudioPulseAudioTarget.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/audioio/AudioPulseAudioTarget.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -96,7 +96,7 @@ AudioPulseAudioTarget::~AudioPulseAudioTarget() { - DEBUG << "AudioPulseAudioTarget::~AudioPulseAudioTarget()" << endl; + SVDEBUG << "AudioPulseAudioTarget::~AudioPulseAudioTarget()" << endl; if (m_source) { m_source->setTarget(0, m_bufferSize); @@ -119,7 +119,7 @@ m_context = 0; m_loop = 0; - DEBUG << "AudioPulseAudioTarget::~AudioPulseAudioTarget() done" << endl; + SVDEBUG << "AudioPulseAudioTarget::~AudioPulseAudioTarget() done" << endl; } void @@ -275,7 +275,7 @@ } #ifdef DEBUG_AUDIO_PULSE_AUDIO_TARGET_PLAY - DEBUG << "calling pa_stream_write with " + SVDEBUG << "calling pa_stream_write with " << nframes * tmpbufch * sizeof(float) << " bytes" << endl; #endif @@ -302,7 +302,7 @@ AudioPulseAudioTarget::streamStateChanged() { #ifdef DEBUG_AUDIO_PULSE_AUDIO_TARGET - DEBUG << "AudioPulseAudioTarget::streamStateChanged" << endl; + SVDEBUG << "AudioPulseAudioTarget::streamStateChanged" << endl; #endif QMutexLocker locker(&m_mutex); @@ -314,7 +314,7 @@ case PA_STREAM_READY: { - DEBUG << "AudioPulseAudioTarget::streamStateChanged: Ready" << endl; + SVDEBUG << "AudioPulseAudioTarget::streamStateChanged: Ready" << endl; pa_usec_t latency = 0; int negative = 0; @@ -327,13 +327,13 @@ const pa_buffer_attr *attr; if (!(attr = pa_stream_get_buffer_attr(m_stream))) { - DEBUG << "AudioPulseAudioTarget::streamStateChanged: Cannot query stream buffer attributes" << endl; + SVDEBUG << "AudioPulseAudioTarget::streamStateChanged: Cannot query stream buffer attributes" << endl; m_source->setTarget(this, m_bufferSize); m_source->setTargetSampleRate(m_sampleRate); if (latframes != 0) m_source->setTargetPlayLatency(latframes); } else { int targetLength = attr->tlength; - DEBUG << "AudioPulseAudioTarget::streamStateChanged: stream target length = " << targetLength << endl; + SVDEBUG << "AudioPulseAudioTarget::streamStateChanged: stream target length = " << targetLength << endl; m_source->setTarget(this, targetLength); m_source->setTargetSampleRate(m_sampleRate); if (latframes == 0) latframes = targetLength; @@ -367,7 +367,7 @@ AudioPulseAudioTarget::contextStateChanged() { #ifdef DEBUG_AUDIO_PULSE_AUDIO_TARGET - DEBUG << "AudioPulseAudioTarget::contextStateChanged" << endl; + SVDEBUG << "AudioPulseAudioTarget::contextStateChanged" << endl; #endif QMutexLocker locker(&m_mutex); @@ -379,7 +379,7 @@ break; case PA_CONTEXT_READY: - DEBUG << "AudioPulseAudioTarget::contextStateChanged: Ready" + SVDEBUG << "AudioPulseAudioTarget::contextStateChanged: Ready" << endl; m_stream = pa_stream_new(m_context, "stream", &m_spec, 0); @@ -400,7 +400,7 @@ break; case PA_CONTEXT_TERMINATED: - DEBUG << "AudioPulseAudioTarget::contextStateChanged: Terminated" << endl; + SVDEBUG << "AudioPulseAudioTarget::contextStateChanged: Terminated" << endl; //!!! do something... break; @@ -416,13 +416,13 @@ void AudioPulseAudioTarget::streamOverflowStatic(pa_stream *, void *) { - DEBUG << "AudioPulseAudioTarget::streamOverflowStatic: Overflow!" << endl; + SVDEBUG << "AudioPulseAudioTarget::streamOverflowStatic: Overflow!" << endl; } void AudioPulseAudioTarget::streamUnderflowStatic(pa_stream *, void *data) { - DEBUG << "AudioPulseAudioTarget::streamUnderflowStatic: Underflow!" << endl; + SVDEBUG << "AudioPulseAudioTarget::streamUnderflowStatic: Underflow!" << endl; AudioPulseAudioTarget *target = (AudioPulseAudioTarget *)data; if (target && target->m_source) { target->m_source->audioProcessingOverload();
--- a/framework/Document.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/framework/Document.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -63,14 +63,14 @@ CommandHistory::getInstance()->clear(); #ifdef DEBUG_DOCUMENT - DEBUG << "Document::~Document: about to delete layers" << endl; + SVDEBUG << "Document::~Document: about to delete layers" << endl; #endif while (!m_layers.empty()) { deleteLayer(*m_layers.begin(), true); } if (!m_models.empty()) { - DEBUG << "Document::~Document: WARNING: " + SVDEBUG << "Document::~Document: WARNING: " << m_models.size() << " model(s) still remain -- " << "should have been garbage collected when deleting layers" << endl; @@ -78,7 +78,7 @@ Model *model = m_models.begin()->first; if (model == m_mainModel) { // just in case! - DEBUG << "Document::~Document: WARNING: Main model is also" + SVDEBUG << "Document::~Document: WARNING: Main model is also" << " in models list!" << endl; } else if (model) { model->aboutToDelete(); @@ -90,7 +90,7 @@ } #ifdef DEBUG_DOCUMENT - DEBUG << "Document::~Document: About to get rid of main model" + SVDEBUG << "Document::~Document: About to get rid of main model" << endl; #endif if (m_mainModel) { @@ -114,7 +114,7 @@ m_layers.insert(newLayer); #ifdef DEBUG_DOCUMENT - DEBUG << "Document::createLayer: Added layer of type " << type + SVDEBUG << "Document::createLayer: Added layer of type " << type << ", now have " << m_layers.size() << " layers" << endl; #endif @@ -160,7 +160,7 @@ m_layers.insert(newLayer); #ifdef DEBUG_DOCUMENT - DEBUG << "Document::createImportedLayer: Added layer of type " << type + SVDEBUG << "Document::createImportedLayer: Added layer of type " << type << ", now have " << m_layers.size() << " layers" << endl; #endif @@ -282,7 +282,7 @@ // delete any of the models. #ifdef DEBUG_DOCUMENT - DEBUG << "Document::setMainModel: Have " + SVDEBUG << "Document::setMainModel: Have " << m_layers.size() << " layers" << endl; std::cerr << "Models now: "; for (ModelMap::const_iterator i = m_models.begin(); i != m_models.end(); ++i) { @@ -297,7 +297,7 @@ Model *model = layer->getModel(); #ifdef DEBUG_DOCUMENT - DEBUG << "Document::setMainModel: inspecting model " + SVDEBUG << "Document::setMainModel: inspecting model " << (model ? model->objectName(): "(null)") << " in layer " << layer->objectName() << endl; #endif @@ -367,7 +367,7 @@ message); } #ifdef DEBUG_DOCUMENT - DEBUG << "Replacing model " << model << " (type " + SVDEBUG << "Replacing model " << model << " (type " << typeid(*model).name() << ") with model " << replacementModel << " (type " << typeid(*replacementModel).name() << ") in layer " @@ -397,7 +397,7 @@ Model *m = i->first; #ifdef DEBUG_DOCUMENT - DEBUG << "considering alignment for model " << m << " (name \"" + SVDEBUG << "considering alignment for model " << m << " (name \"" << m->objectName() << "\")" << endl; #endif @@ -438,7 +438,7 @@ } #ifdef DEBUG_DOCUMENT - DEBUG << "Document::addDerivedModel: source is " << input.getModel() << " \"" << input.getModel()->objectName() << "\"" << endl; + SVDEBUG << "Document::addDerivedModel: source is " << input.getModel() << " \"" << input.getModel()->objectName() << "\"" << endl; #endif ModelRecord rec; @@ -452,7 +452,7 @@ m_models[outputModelToAdd] = rec; #ifdef DEBUG_DOCUMENT - DEBUG << "Document::addDerivedModel: Added model " << outputModelToAdd << endl; + SVDEBUG << "Document::addDerivedModel: Added model " << outputModelToAdd << endl; std::cerr << "Models now: "; for (ModelMap::const_iterator i = m_models.begin(); i != m_models.end(); ++i) { std::cerr << i->first << " "; @@ -480,7 +480,7 @@ m_models[model] = rec; #ifdef DEBUG_DOCUMENT - DEBUG << "Document::addImportedModel: Added model " << model << endl; + SVDEBUG << "Document::addImportedModel: Added model " << model << endl; std::cerr << "Models now: "; for (ModelMap::const_iterator i = m_models.begin(); i != m_models.end(); ++i) { std::cerr << i->first << " "; @@ -575,7 +575,7 @@ } if (sourceCount > 0) { - DEBUG << "Document::releaseModel: Deleting model " + SVDEBUG << "Document::releaseModel: Deleting model " << model << " even though it is source for " << sourceCount << " other derived model(s) -- resetting " << "their source fields appropriately" << endl; @@ -586,7 +586,7 @@ m_models.erase(model); #ifdef DEBUG_DOCUMENT - DEBUG << "Document::releaseModel: Deleted model " << model << endl; + SVDEBUG << "Document::releaseModel: Deleted model " << model << endl; std::cerr << "Models now: "; for (ModelMap::const_iterator i = m_models.begin(); i != m_models.end(); ++i) { std::cerr << i->first << " "; @@ -630,7 +630,7 @@ } if (m_layers.find(layer) == m_layers.end()) { - DEBUG << "Document::deleteLayer: Layer " + SVDEBUG << "Document::deleteLayer: Layer " << layer << " (" << typeid(layer).name() << ") does not exist, or has already been deleted " << "(this may not be as serious as it sounds)" << endl; @@ -640,7 +640,7 @@ m_layers.erase(layer); #ifdef DEBUG_DOCUMENT - DEBUG << "Document::deleteLayer: Removing, now have " + SVDEBUG << "Document::deleteLayer: Removing, now have " << m_layers.size() << " layers" << endl; #endif @@ -667,7 +667,7 @@ Model *previousModel = layer->getModel(); if (previousModel == model) { - DEBUG << "NOTE: Document::setModel: Layer " << layer << " (\"" + SVDEBUG << "NOTE: Document::setModel: Layer " << layer << " (\"" << layer->objectName() << "\") is already set to model " << model << " (\"" << (model ? model->objectName(): "(null)") @@ -703,7 +703,7 @@ Model *model = layer->getModel(); if (!model) { #ifdef DEBUG_DOCUMENT - DEBUG << "Document::addLayerToView: Layer (\"" + SVDEBUG << "Document::addLayerToView: Layer (\"" << layer->objectName() << "\") with no model being added to view: " << "normally you want to set the model first" << endl; #endif @@ -848,7 +848,7 @@ if (!rm) return; if (rm->getAlignmentReference() == m_mainModel) { - DEBUG << "Document::alignModel: model " << rm << " is already aligned to main model " << m_mainModel << endl; + SVDEBUG << "Document::alignModel: model " << rm << " is already aligned to main model " << m_mainModel << endl; return; } @@ -857,7 +857,7 @@ // it possible to distinguish between the reference and any // unaligned model just by looking at the model itself, // without also knowing what the main model is - DEBUG << "Document::alignModel(" << model << "): is main model, setting appropriately" << endl; + SVDEBUG << "Document::alignModel(" << model << "): is main model, setting appropriately" << endl; rm->setAlignment(new AlignmentModel(model, model, 0, 0)); return; } @@ -902,7 +902,7 @@ transform.setStepSize(transform.getBlockSize()/2); transform.setParameter("serialise", 1); - DEBUG << "Document::alignModel: Alignment transform step size " << transform.getStepSize() << ", block size " << transform.getBlockSize() << endl; + SVDEBUG << "Document::alignModel: Alignment transform step size " << transform.getStepSize() << ", block size " << transform.getBlockSize() << endl; ModelTransformerFactory *mtf = ModelTransformerFactory::getInstance(); @@ -956,7 +956,7 @@ Document::AddLayerCommand::~AddLayerCommand() { #ifdef DEBUG_DOCUMENT - DEBUG << "Document::AddLayerCommand::~AddLayerCommand" << endl; + SVDEBUG << "Document::AddLayerCommand::~AddLayerCommand" << endl; #endif if (!m_added) { m_d->deleteLayer(m_layer); @@ -967,7 +967,7 @@ Document::AddLayerCommand::getName() const { #ifdef DEBUG_DOCUMENT - DEBUG << "Document::AddLayerCommand::getName(): Name is " + SVDEBUG << "Document::AddLayerCommand::getName(): Name is " << m_name << endl; #endif return m_name; @@ -1016,7 +1016,7 @@ Document::RemoveLayerCommand::~RemoveLayerCommand() { #ifdef DEBUG_DOCUMENT - DEBUG << "Document::RemoveLayerCommand::~RemoveLayerCommand" << endl; + SVDEBUG << "Document::RemoveLayerCommand::~RemoveLayerCommand" << endl; #endif if (!m_added) { m_d->deleteLayer(m_layer); @@ -1027,7 +1027,7 @@ Document::RemoveLayerCommand::getName() const { #ifdef DEBUG_DOCUMENT - DEBUG << "Document::RemoveLayerCommand::getName(): Name is " + SVDEBUG << "Document::RemoveLayerCommand::getName(): Name is " << m_name << endl; #endif return m_name;
--- a/framework/MainWindowBase.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/framework/MainWindowBase.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -234,7 +234,7 @@ MainWindowBase::~MainWindowBase() { - DEBUG << "MainWindowBase::~MainWindowBase" << endl; + SVDEBUG << "MainWindowBase::~MainWindowBase" << endl; if (m_playTarget) m_playTarget->shutdown(); // delete m_playTarget; delete m_playSource; @@ -427,7 +427,7 @@ void MainWindowBase::documentModified() { -// DEBUG << "MainWindowBase::documentModified" << endl; +// SVDEBUG << "MainWindowBase::documentModified" << endl; if (!m_documentModified) { //!!! this in subclass implementation? @@ -441,7 +441,7 @@ void MainWindowBase::documentRestored() { -// DEBUG << "MainWindowBase::documentRestored" << endl; +// SVDEBUG << "MainWindowBase::documentRestored" << endl; if (m_documentModified) { //!!! this in subclass implementation? @@ -1073,7 +1073,7 @@ MainWindowBase::FileOpenStatus MainWindowBase::openAudio(FileSource source, AudioFileOpenMode mode, QString templateName) { -// DEBUG << "MainWindowBase::openAudio(" << source.getLocation() << ")" << endl; +// SVDEBUG << "MainWindowBase::openAudio(" << source.getLocation() << ")" << endl; if (!source.isAvailable()) return FileOpenFailed; source.waitForData(); @@ -1280,7 +1280,7 @@ MainWindowBase::FileOpenStatus MainWindowBase::openPlaylist(FileSource source, AudioFileOpenMode mode) { - DEBUG << "MainWindowBase::openPlaylist(" << source.getLocation() << ")" << endl; + SVDEBUG << "MainWindowBase::openPlaylist(" << source.getLocation() << ")" << endl; std::set<QString> extensions; PlaylistFileReader::getSupportedExtensions(extensions); @@ -1321,7 +1321,7 @@ MainWindowBase::FileOpenStatus MainWindowBase::openLayer(FileSource source) { - DEBUG << "MainWindowBase::openLayer(" << source.getLocation() << ")" << endl; + SVDEBUG << "MainWindowBase::openLayer(" << source.getLocation() << ")" << endl; Pane *pane = m_paneStack->getCurrentPane(); @@ -1418,7 +1418,7 @@ if (model) { - DEBUG << "MainWindowBase::openLayer: Have model" << endl; + SVDEBUG << "MainWindowBase::openLayer: Have model" << endl; emit activity(tr("Import MIDI file \"%1\"").arg(source.getLocation())); @@ -1453,7 +1453,7 @@ MainWindowBase::FileOpenStatus MainWindowBase::openImage(FileSource source) { - DEBUG << "MainWindowBase::openImage(" << source.getLocation() << ")" << endl; + SVDEBUG << "MainWindowBase::openImage(" << source.getLocation() << ")" << endl; Pane *pane = m_paneStack->getCurrentPane(); @@ -1513,7 +1513,7 @@ MainWindowBase::FileOpenStatus MainWindowBase::openSession(FileSource source) { - DEBUG << "MainWindowBase::openSession(" << source.getLocation() << ")" << endl; + SVDEBUG << "MainWindowBase::openSession(" << source.getLocation() << ")" << endl; if (!source.isAvailable()) return FileOpenFailed; source.waitForData(); @@ -1633,7 +1633,7 @@ MainWindowBase::FileOpenStatus MainWindowBase::openSessionFromRDF(FileSource source) { - DEBUG << "MainWindowBase::openSessionFromRDF(" << source.getLocation() << ")" << endl; + SVDEBUG << "MainWindowBase::openSessionFromRDF(" << source.getLocation() << ")" << endl; if (!source.isAvailable()) return FileOpenFailed; source.waitForData(); @@ -1664,7 +1664,7 @@ { size_t rate = 0; - DEBUG << "MainWindowBase::openLayersFromRDF" << endl; + SVDEBUG << "MainWindowBase::openLayersFromRDF" << endl; ProgressDialog dialog(tr("Importing from RDF..."), true, 2000, this); connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash())); @@ -2587,7 +2587,7 @@ //!!! how to prevent this function from being active if not //appropriate model type? or will we ultimately support //tabular display for all editable models? - DEBUG << "NOTE: Not a tabular model" << endl; + SVDEBUG << "NOTE: Not a tabular model" << endl; return; } @@ -2769,7 +2769,7 @@ void MainWindowBase::viewCentreFrameChanged(View *v, unsigned long frame) { -// DEBUG << "MainWindowBase::viewCentreFrameChanged(" << v << "," << frame << ")" << endl; +// SVDEBUG << "MainWindowBase::viewCentreFrameChanged(" << v << "," << frame << ")" << endl; if (m_viewDataDialogMap.find(v) != m_viewDataDialogMap.end()) { for (DataDialogSet::iterator i = m_viewDataDialogMap[v].begin(); @@ -2795,21 +2795,21 @@ void MainWindowBase::layerAdded(Layer *) { -// DEBUG << "MainWindowBase::layerAdded(" << layer << ")" << endl; +// SVDEBUG << "MainWindowBase::layerAdded(" << layer << ")" << endl; updateMenuStates(); } void MainWindowBase::layerRemoved(Layer *) { -// DEBUG << "MainWindowBase::layerRemoved(" << layer << ")" << endl; +// SVDEBUG << "MainWindowBase::layerRemoved(" << layer << ")" << endl; updateMenuStates(); } void MainWindowBase::layerAboutToBeDeleted(Layer *layer) { -// DEBUG << "MainWindowBase::layerAboutToBeDeleted(" << layer << ")" << endl; +// SVDEBUG << "MainWindowBase::layerAboutToBeDeleted(" << layer << ")" << endl; removeLayerEditDialog(layer); @@ -2822,7 +2822,7 @@ void MainWindowBase::layerInAView(Layer *layer, bool inAView) { -// DEBUG << "MainWindowBase::layerInAView(" << layer << "," << inAView << ")" << endl; +// SVDEBUG << "MainWindowBase::layerInAView(" << layer << "," << inAView << ")" << endl; if (!inAView) removeLayerEditDialog(layer); @@ -2876,14 +2876,14 @@ void MainWindowBase::modelAdded(Model *model) { -// DEBUG << "MainWindowBase::modelAdded(" << model << ")" << endl; +// SVDEBUG << "MainWindowBase::modelAdded(" << model << ")" << endl; m_playSource->addModel(model); } void MainWindowBase::mainModelChanged(WaveFileModel *model) { -// DEBUG << "MainWindowBase::mainModelChanged(" << model << ")" << endl; +// SVDEBUG << "MainWindowBase::mainModelChanged(" << model << ")" << endl; updateDescriptionLabel(); if (model) m_viewManager->setMainModelSampleRate(model->getSampleRate()); if (model && !m_playTarget && m_audioOutput) createPlayTarget(); @@ -2892,7 +2892,7 @@ void MainWindowBase::modelAboutToBeDeleted(Model *model) { -// DEBUG << "MainWindowBase::modelAboutToBeDeleted(" << model << ")" << endl; +// SVDEBUG << "MainWindowBase::modelAboutToBeDeleted(" << model << ")" << endl; if (model == m_viewManager->getPlaybackModel()) { m_viewManager->setPlaybackModel(0); } @@ -2911,7 +2911,7 @@ } } if (!found) { - DEBUG << "MainWindowBase::paneDeleteButtonClicked: Unknown pane " + SVDEBUG << "MainWindowBase::paneDeleteButtonClicked: Unknown pane " << pane << endl; return; } @@ -2940,7 +2940,7 @@ MainWindowBase::pollOSC() { if (!m_oscQueue || m_oscQueue->isEmpty()) return; - DEBUG << "MainWindowBase::pollOSC: have " << m_oscQueue->getMessagesAvailable() << " messages" << endl; + SVDEBUG << "MainWindowBase::pollOSC: have " << m_oscQueue->getMessagesAvailable() << " messages" << endl; if (m_openingAudioFile) return;
--- a/framework/SVFileReader.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/framework/SVFileReader.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -442,7 +442,7 @@ QString name = attributes.value("name"); - DEBUG << "SVFileReader::readModel: model name \"" << name << "\"" << endl; + SVDEBUG << "SVFileReader::readModel: model name \"" << name << "\"" << endl; READ_MANDATORY(int, sampleRate, toInt); @@ -954,7 +954,7 @@ READ_MANDATORY(int, frame, toInt); -// DEBUG << "SVFileReader::addPointToDataset: frame = " << frame << endl; +// SVDEBUG << "SVFileReader::addPointToDataset: frame = " << frame << endl; SparseOneDimensionalModel *sodm = dynamic_cast<SparseOneDimensionalModel *> (m_currentDataset); @@ -1016,7 +1016,7 @@ float height = 0.0; height = attributes.value("height").trimmed().toFloat(&ok); QString label = attributes.value("label"); -// DEBUG << "SVFileReader::addPointToDataset: TextModel: frame = " << frame << ", height = " << height << ", label = " << label << ", ok = " << ok << endl; +// SVDEBUG << "SVFileReader::addPointToDataset: TextModel: frame = " << frame << ", height = " << height << ", label = " << label << ", ok = " << ok << endl; tm->addPoint(TextModel::Point(frame, height, label)); return ok; } @@ -1026,7 +1026,7 @@ if (pm) { // std::cerr << "Current dataset is a path model" << std::endl; int mapframe = attributes.value("mapframe").trimmed().toInt(&ok); -// DEBUG << "SVFileReader::addPointToDataset: PathModel: frame = " << frame << ", mapframe = " << mapframe << ", ok = " << ok << endl; +// SVDEBUG << "SVFileReader::addPointToDataset: PathModel: frame = " << frame << ", mapframe = " << mapframe << ", ok = " << ok << endl; pm->addPoint(PathModel::Point(frame, mapframe)); return ok; } @@ -1037,7 +1037,7 @@ // std::cerr << "Current dataset is an image model" << std::endl; QString image = attributes.value("image"); QString label = attributes.value("label"); -// DEBUG << "SVFileReader::addPointToDataset: ImageModel: frame = " << frame << ", image = " << image << ", label = " << label << ", ok = " << ok << endl; +// SVDEBUG << "SVFileReader::addPointToDataset: ImageModel: frame = " << frame << ", image = " << image << ", label = " << label << ", ok = " << ok << endl; im->addPoint(ImageModel::Point(frame, image, label)); return ok; } @@ -1185,7 +1185,7 @@ return true; } else { m_currentTransformIsNewStyle = false; - DEBUG << "NOTE: SV-XML: Reading old-style derivation element" + SVDEBUG << "NOTE: SV-XML: Reading old-style derivation element" << endl; } @@ -1368,7 +1368,7 @@ bool SVFileReader::readMeasurement(const QXmlAttributes &attributes) { - DEBUG << "SVFileReader::readMeasurement: inLayer " + SVDEBUG << "SVFileReader::readMeasurement: inLayer " << m_inLayer << ", layer " << m_currentLayer << endl; if (!m_inLayer) {
--- a/framework/TransformUserConfigurator.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/framework/TransformUserConfigurator.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -37,12 +37,12 @@ { if (plugin && plugin->getType() == "Feature Extraction Plugin") { Vamp::Plugin *vp = static_cast<Vamp::Plugin *>(plugin); - DEBUG << "TransformUserConfigurator::getChannelRange: is a VP" << endl; + SVDEBUG << "TransformUserConfigurator::getChannelRange: is a VP" << endl; minChannels = vp->getMinChannelCount(); maxChannels = vp->getMaxChannelCount(); return true; } else { - DEBUG << "TransformUserConfigurator::getChannelRange: is not a VP" << endl; + SVDEBUG << "TransformUserConfigurator::getChannelRange: is not a VP" << endl; return TransformFactory::getInstance()-> getTransformChannelRange(identifier, minChannels, maxChannels); } @@ -119,7 +119,7 @@ static_cast<RealTimePluginInstance *>(plugin); if (effect && source) { - DEBUG << "Setting auditioning effect" << endl; + SVDEBUG << "Setting auditioning effect" << endl; source->setAuditioningEffect(rtp); } }
--- a/framework/VersionTester.cpp Tue Jun 14 14:49:22 2011 +0100 +++ b/framework/VersionTester.cpp Tue Jun 14 15:27:12 2011 +0100 @@ -88,7 +88,7 @@ if (lines.empty()) return; QString latestVersion = lines[0]; - DEBUG << "Comparing current version \"" << m_myVersion << "\" with latest version \"" << latestVersion << "\"" << endl; + SVDEBUG << "Comparing current version \"" << m_myVersion << "\" with latest version \"" << latestVersion << "\"" << endl; if (isVersionNewerThan(latestVersion, m_myVersion)) { emit newerVersionAvailable(latestVersion); }