# HG changeset patch # User Drew Perttula # Date 2006-06-18 22:01:41 # Node ID a3267d8c498e852fb77676c7f8e0b3a04f7349da # Parent 5104e5e2380f19a5d80c8beeeda5879738171345 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) diff --git a/bin/curvecalc b/bin/curvecalc --- a/bin/curvecalc +++ b/bin/curvecalc @@ -198,6 +198,11 @@ class Output: 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: