changeset 132:3b61a975b47e sv1-v1.3 sv1-v1.3rc1

* Updates for 1.3
author Chris Cannam
date Thu, 10 Jul 2008 12:50:56 +0000
parents 883f7fc7fd34
children f2cbe0e89d0f
files audioio/AudioCallbackPlaySource.cpp framework/Document.cpp framework/MainWindowBase.cpp
diffstat 3 files changed, 13 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp	Mon Jul 07 17:16:18 2008 +0000
+++ b/audioio/AudioCallbackPlaySource.cpp	Thu Jul 10 12:50:56 2008 +0000
@@ -376,7 +376,9 @@
 	}
     }
 
+#ifdef DEBUG_AUDIO_PLAY_SOURCE
     std::cerr << "play(" << startFrame << ") -> playback model ";
+#endif
 
     startFrame = m_viewManager->alignReferenceToPlaybackFrame(startFrame);
 
@@ -400,7 +402,9 @@
     if (m_readBuffers) {
         for (size_t c = 0; c < getTargetChannelCount(); ++c) {
             RingBuffer<float> *rb = getReadRingBuffer(c);
+#ifdef DEBUG_AUDIO_PLAY_SOURCE
             std::cerr << "reset ring buffer for channel " << c << std::endl;
+#endif
             if (rb) rb->reset();
         }
     }
@@ -693,8 +697,8 @@
         RealTime playstart_t = RealTime::frame2RealTime(m_playStartFrame,
                                                         sourceRate);
         if (playing_t < playstart_t) {
-            std::cerr << "playing_t " << playing_t << " < playstart_t " 
-                      << playstart_t << std::endl;
+//            std::cerr << "playing_t " << playing_t << " < playstart_t " 
+//                      << playstart_t << std::endl;
             if (/*!!! sincerequest_t > RealTime::zeroTime && */
                 m_playStartedAt + latency_t + stretchlat_t <
                 RealTime::fromSeconds(currentTime)) {
--- a/framework/Document.cpp	Mon Jul 07 17:16:18 2008 +0000
+++ b/framework/Document.cpp	Thu Jul 10 12:50:56 2008 +0000
@@ -581,8 +581,10 @@
 
     m_layers.erase(layer);
 
+#ifdef DEBUG_DOCUMENT
     std::cerr << "Document::deleteLayer: Removing, now have "
               << m_layers.size() << " layers" << std::endl;
+#endif
 
     releaseModel(layer->getModel());
     emit layerRemoved(layer);
@@ -607,7 +609,7 @@
     Model *previousModel = layer->getModel();
 
     if (previousModel == model) {
-        std::cerr << "WARNING: Document::setModel: Layer " << layer << " (\""
+        std::cerr << "NOTE: Document::setModel: Layer " << layer << " (\""
                   << layer->objectName().toStdString()
                   << "\") is already set to model "
                   << model << " (\""
--- a/framework/MainWindowBase.cpp	Mon Jul 07 17:16:18 2008 +0000
+++ b/framework/MainWindowBase.cpp	Thu Jul 10 12:50:56 2008 +0000
@@ -873,7 +873,7 @@
 MainWindowBase::FileOpenStatus
 MainWindowBase::openAudio(FileSource source, AudioFileOpenMode mode)
 {
-    std::cerr << "MainWindowBase::openAudio(" << source.getLocation().toStdString() << ")" << std::endl;
+//    std::cerr << "MainWindowBase::openAudio(" << source.getLocation().toStdString() << ")" << std::endl;
 
     if (!source.isAvailable()) return FileOpenFailed;
     source.waitForData();
@@ -894,7 +894,7 @@
 	return FileOpenFailed;
     }
 
-    std::cerr << "mode = " << mode << std::endl;
+//    std::cerr << "mode = " << mode << std::endl;
 
     if (mode == AskUser) {
         if (getMainModel()) {
@@ -2180,7 +2180,7 @@
 void
 MainWindowBase::layerAboutToBeDeleted(Layer *layer)
 {
-    std::cerr << "MainWindowBase::layerAboutToBeDeleted(" << layer << ")" << std::endl;
+//    std::cerr << "MainWindowBase::layerAboutToBeDeleted(" << layer << ")" << std::endl;
 
     removeLayerEditDialog(layer);
 
@@ -2193,7 +2193,7 @@
 void
 MainWindowBase::layerInAView(Layer *layer, bool inAView)
 {
-    std::cerr << "MainWindowBase::layerInAView(" << layer << "," << inAView << ")" << std::endl;
+//    std::cerr << "MainWindowBase::layerInAView(" << layer << "," << inAView << ")" << std::endl;
 
     if (!inAView) removeLayerEditDialog(layer);