diff audioio/AudioCallbackPlaySource.cpp @ 195:d9c21e7bff21

* Some debug, turn off PulseAudio autospawn
author Chris Cannam
date Thu, 15 Jul 2010 15:25:59 +0000
parents 0b3aa9b702bb
children 5ee9e6bc21eb
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp	Thu Jul 08 14:22:28 2010 +0000
+++ b/audioio/AudioCallbackPlaySource.cpp	Thu Jul 15 15:25:59 2010 +0000
@@ -1456,10 +1456,12 @@
     } else {
 
 	// space must be a multiple of generatorBlockSize
-	space = (space / generatorBlockSize) * generatorBlockSize;
+        size_t reqSpace = space;
+	space = (reqSpace / generatorBlockSize) * generatorBlockSize;
 	if (space == 0) {
 #ifdef DEBUG_AUDIO_PLAY_SOURCE
-            std::cout << "requested fill is less than generator block size of "
+            std::cout << "requested fill of " << reqSpace
+                      << " is less than generator block size of "
                       << generatorBlockSize << ", leaving it" << std::endl;
 #endif
             return false;