summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109>2008-11-24 22:28:40 +0000
committersamr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109>2008-11-24 22:28:40 +0000
commit2efde639f7c4dfa52959ce13d2e3cc9b8f3a3070 (patch)
treec3e3a002726dd30570d6948ef45be590d842187a
parent82aea5bdef0820308a6b0ee6a6303bf8c7c54c38 (diff)
downloadnohands-2efde639f7c4dfa52959ce13d2e3cc9b8f3a3070.tar.gz
Add more debugging messages to the audio endpoint watchdog.
git-svn-id: http://nohands.svn.sourceforge.net/svnroot/nohands/trunk@41 126591fb-c623-4b62-a76d-97a8e4f34109
-rw-r--r--libhfp/soundio-pump.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libhfp/soundio-pump.cpp b/libhfp/soundio-pump.cpp
index 7244495..5a9b318 100644
--- a/libhfp/soundio-pump.cpp
+++ b/libhfp/soundio-pump.cpp
@@ -1149,7 +1149,7 @@ bool SoundIoPump::
WatchdogThreshold(sio_sampnum_t &count, char &strikes, const char *name,
ErrorInfo &error)
{
- int res = 0;
+ char res = 0;
if (count < m_config.watchdog_min_progress) {
GetDi()->LogDebug("SoundIoPump: %s underprocessed (%d < %d)",
@@ -1169,12 +1169,16 @@ WatchdogThreshold(sio_sampnum_t &count, char &strikes, const char *name,
strikes += res;
if (strikes < -m_config.watchdog_strikes) {
+ GetDi()->LogDebug("SoundIoPump: %d strikes, you're out",
+ strikes);
error.Set(LIBHFP_ERROR_SUBSYS_SOUNDIO,
LIBHFP_ERROR_SOUNDIO_WATCHDOG_TIMEOUT,
"SoundIoPump: %s underprocessing", name);
return false;
}
if (strikes > m_config.watchdog_strikes) {
+ GetDi()->LogDebug("SoundIoPump: %d strikes, you're out",
+ strikes);
error.Set(LIBHFP_ERROR_SUBSYS_SOUNDIO,
LIBHFP_ERROR_SOUNDIO_WATCHDOG_TIMEOUT,
"SoundIoPump: %s overprocessing", name);