diff data/model/WaveFileModel.cpp @ 690:1424aa29ae95

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:26:52 +0100
parents 06f13a3b9e9e
children c9fc7728ab0d
line wrap: on
line diff
--- a/data/model/WaveFileModel.cpp	Tue Jun 14 14:47:59 2011 +0100
+++ b/data/model/WaveFileModel.cpp	Tue Jun 14 15:26:52 2011 +0100
@@ -53,7 +53,7 @@
         m_reader = AudioFileReaderFactory::createThreadingReader
             (m_source, targetRate);
         if (m_reader) {
-            DEBUG << "WaveFileModel::WaveFileModel: reader rate: "
+            SVDEBUG << "WaveFileModel::WaveFileModel: reader rate: "
                       << m_reader->getSampleRate() << endl;
         }
     }
@@ -115,7 +115,7 @@
         prevCompletion = *completion;
     }
 #ifdef DEBUG_WAVE_FILE_MODEL
-    DEBUG << "WaveFileModel::isReady(): ready = " << ready << ", completion = " << (completion ? *completion : -1) << endl;
+    SVDEBUG << "WaveFileModel::isReady(): ready = " << ready << ", completion = " << (completion ? *completion : -1) << endl;
 #endif
     return ready;
 }
@@ -210,7 +210,7 @@
     }
 
 #ifdef DEBUG_WAVE_FILE_MODEL
-//    DEBUG << "WaveFileModel::getValues(" << channel << ", "
+//    SVDEBUG << "WaveFileModel::getValues(" << channel << ", "
 //              << start << ", " << end << "): calling reader" << endl;
 #endif
 
@@ -534,7 +534,7 @@
     }
 
 #ifdef DEBUG_WAVE_FILE_MODEL
-    DEBUG << "returning " << ranges.size() << " ranges" << endl;
+    SVDEBUG << "returning " << ranges.size() << " ranges" << endl;
 #endif
     return;
 }
@@ -607,7 +607,7 @@
     m_fillThread->start();
 
 #ifdef DEBUG_WAVE_FILE_MODEL
-    DEBUG << "WaveFileModel::fillCache: started fill thread" << endl;
+    SVDEBUG << "WaveFileModel::fillCache: started fill thread" << endl;
 #endif
 }   
 
@@ -617,7 +617,7 @@
     if (m_fillThread) {
 	size_t fillExtent = m_fillThread->getFillExtent();
 #ifdef DEBUG_WAVE_FILE_MODEL
-        DEBUG << "WaveFileModel::fillTimerTimedOut: extent = " << fillExtent << endl;
+        SVDEBUG << "WaveFileModel::fillTimerTimedOut: extent = " << fillExtent << endl;
 #endif
 	if (fillExtent > m_lastFillExtent) {
 	    emit modelChanged(m_lastFillExtent, fillExtent);
@@ -625,7 +625,7 @@
 	}
     } else {
 #ifdef DEBUG_WAVE_FILE_MODEL
-        DEBUG << "WaveFileModel::fillTimerTimedOut: no thread" << endl;
+        SVDEBUG << "WaveFileModel::fillTimerTimedOut: no thread" << endl;
 #endif
 	emit modelChanged();
     }
@@ -646,7 +646,7 @@
     emit modelChanged();
     emit ready();
 #ifdef DEBUG_WAVE_FILE_MODEL
-    DEBUG << "WaveFileModel::cacheFilled" << endl;
+    SVDEBUG << "WaveFileModel::cacheFilled" << endl;
 #endif
 }
 
@@ -669,7 +669,7 @@
 
     if (updating) {
         while (channels == 0 && !m_model.m_exiting) {
-//            DEBUG << "WaveFileModel::fill: Waiting for channels..." << endl;
+//            SVDEBUG << "WaveFileModel::fill: Waiting for channels..." << endl;
             sleep(1);
             channels = m_model.getChannelCount();
         }
@@ -690,11 +690,11 @@
         updating = m_model.m_reader->isUpdating();
         m_frameCount = m_model.getFrameCount();
 
-//        DEBUG << "WaveFileModel::fill: frame = " << frame << ", count = " << m_frameCount << endl;
+//        SVDEBUG << "WaveFileModel::fill: frame = " << frame << ", count = " << m_frameCount << endl;
 
         while (frame < m_frameCount) {
 
-//            DEBUG << "WaveFileModel::fill inner loop: frame = " << frame << ", count = " << m_frameCount << ", blocksize " << readBlockSize << endl;
+//            SVDEBUG << "WaveFileModel::fill inner loop: frame = " << frame << ", count = " << m_frameCount << ", blocksize " << readBlockSize << endl;
 
             if (updating && (frame + readBlockSize > m_frameCount)) break;