|
From: <pst...@us...> - 2013-01-07 05:11:29
|
Revision: 947
http://sourceforge.net/p/jazzplusplus/code/947
Author: pstieber
Date: 2013-01-07 05:11:25 +0000 (Mon, 07 Jan 2013)
Log Message:
-----------
Wrapped cout code with DEBUG_ALSA tests.
Modified Paths:
--------------
trunk/jazz/src/AlsaPlayer.cpp
Modified: trunk/jazz/src/AlsaPlayer.cpp
===================================================================
--- trunk/jazz/src/AlsaPlayer.cpp 2013-01-07 01:24:06 UTC (rev 946)
+++ trunk/jazz/src/AlsaPlayer.cpp 2013-01-07 05:11:25 UTC (rev 947)
@@ -596,7 +596,9 @@
// called by timer
int Now = GetRealTimeClock();
+#ifdef DEBUG_ALSA
cout << "JZAlsaPlayer::Notify " << Now << ' ' << play_clock << endl;
+#endif // DEBUG_ALSA
if (Now < 0)
{
@@ -607,7 +609,9 @@
{
// rewind..
// clear and rebuild
+#ifdef DEBUG_ALSA
cout << "JZAlsaPlayer::Notify rewind" << endl;
+#endif // DEBUG_ALSA
ResetPlay(Now);
mPlayBuffer.Clear();
mOutClock = Now + FIRST_DELTACLOCK;
@@ -831,10 +835,12 @@
{
JZEvent* pEvent = 0;
+#ifdef DEBUG_ALSA
cout
<< "JZAlsaPlayer::recd_event got " << (int)ev->type
<< " (echo is " << SND_SEQ_EVENT_ECHO << ')'
<< endl;
+#endif // DEBUG_ALSA
switch (ev->type)
{
@@ -917,7 +923,9 @@
else
{
recd_clock = ev->time.tick;
+#ifdef DEBUG_ALSA
cout << "recd_clock now: " << recd_clock << endl;
+#endif // DEBUG_ALSA
}
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|