Mercurial > hg > svapp
comparison 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 |
comparison
equal
deleted
inserted
replaced
194:302dae1f6016 | 195:d9c21e7bff21 |
---|---|
1454 if (readWriteEqual) m_readBufferFill = f; | 1454 if (readWriteEqual) m_readBufferFill = f; |
1455 | 1455 |
1456 } else { | 1456 } else { |
1457 | 1457 |
1458 // space must be a multiple of generatorBlockSize | 1458 // space must be a multiple of generatorBlockSize |
1459 space = (space / generatorBlockSize) * generatorBlockSize; | 1459 size_t reqSpace = space; |
1460 space = (reqSpace / generatorBlockSize) * generatorBlockSize; | |
1460 if (space == 0) { | 1461 if (space == 0) { |
1461 #ifdef DEBUG_AUDIO_PLAY_SOURCE | 1462 #ifdef DEBUG_AUDIO_PLAY_SOURCE |
1462 std::cout << "requested fill is less than generator block size of " | 1463 std::cout << "requested fill of " << reqSpace |
1464 << " is less than generator block size of " | |
1463 << generatorBlockSize << ", leaving it" << std::endl; | 1465 << generatorBlockSize << ", leaving it" << std::endl; |
1464 #endif | 1466 #endif |
1465 return false; | 1467 return false; |
1466 } | 1468 } |
1467 | 1469 |