From 79d06d1d48049b682f9d6b1a92d18768835c4753 Mon Sep 17 00:00:00 2001 From: amartin Date: Wed, 13 Feb 2008 07:55:06 +0000 Subject: network --- (limited to 'TamTamJam.activity') diff --git a/TamTamJam.activity/Jam/JamMain.py b/TamTamJam.activity/Jam/JamMain.py index 4242dd3..731c53f 100644 --- a/TamTamJam.activity/Jam/JamMain.py +++ b/TamTamJam.activity/Jam/JamMain.py @@ -1214,6 +1214,10 @@ class JamMain(gtk.EventBox): return self.ticksPerSecond*(delta % self.beatDuration) def updateSync( self ): + if Config.DEBUG: + # help the log print out on time + sys.stdout.flush() + if self.network.isOffline(): return False elif self.network.isWaiting(): @@ -1238,6 +1242,6 @@ class JamMain(gtk.EventBox): correct -= Config.TICKS_PER_BEAT elif correct < 0: correct += Config.TICKS_PER_BEAT - #print "correct:: %f ticks, %f ticks in, %f expected, %f err, correct %f" % (curTick, curTicksIn, ticksIn, err, correct) + print "correct:: %f ticks, %f ticks in, %f expected, %f err, correct %f" % (curTick, curTicksIn, ticksIn, err, correct) if abs(err) > 0.25: self.csnd.adjustTick(-err) -- cgit v0.9.1