Mercurial > code > home > repos > light9
diff bin/curvecalc @ 326:a3267d8c498e
leave in a comment about how to offset the audio time in case your sound card is lying
we didn't eventually need this because we found a good-sounding card
that could report offset correctly. But if you're stuck with a card
that reports offset incorrectly, you can play with this offset for
a partial workaround. note that song intros will probably still be
corrupted (but you could workaround that by prepending some silence)
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sun, 18 Jun 2006 22:01:41 +0000 |
parents | 2193eab0650b |
children | d4aff817a304 |
line wrap: on
line diff
--- a/bin/curvecalc Sun Jun 18 01:31:44 2006 +0000 +++ b/bin/curvecalc Sun Jun 18 22:01:41 2006 +0000 @@ -198,6 +198,11 @@ self.later = reactor.callLater(1,self.update) def update2(self,t): + + # spot alsa soundcard offset is always 0, we get times about a + # second ahead of what's really getting played + #t = t - .7 + dispatcher.send("update status", val="ok: receiving time from music player") if self.later and not self.later.cancelled and not self.later.called: