Mercurial > code > home > repos > light9
changeset 242:561b4202461d
fixing extra audio stutter - this is currently broken
author | drewp@bigasterisk.com |
---|---|
date | Mon, 13 Jun 2005 03:18:04 +0000 |
parents | 0a2239379466 |
children | fff8762db48a |
files | bin/ascoltami |
diffstat | 1 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/ascoltami Mon Jun 13 03:16:19 2005 +0000 +++ b/bin/ascoltami Mon Jun 13 03:18:04 2005 +0000 @@ -137,6 +137,9 @@ reactor.callLater(.05, self.pollStatus) + def set_total_time(self, song_path): + raise NotImplementedError("get lengther.py from semprini") + def play(self, song_path): self.autopausedthissong = False @@ -146,13 +149,14 @@ self.mpd.add(showconfig.songInMpd(self.pre_post_names[1])) self.filename_var.set(song_path) - # jump to song 1 to get its total_time - self.mpd.seek(seconds=0, song=1) - self.mpd.pause() - self.mpd.status().addCallback(self.play2) + self.set_total_time(song_path) +## # jump to song 1 to get its total_time +## self.mpd.seek(seconds=0, song=1) +## self.mpd.pause() +## self.mpd.status().addCallback(self.play2) - def play2(self, stat): - self.total_time.set(stat.time_total) +## def play2(self, stat): +## self.total_time.set(stat.time_total) self.mpd.seek(seconds=0, song=0) def check_autopause(self):