1 # $Id: playtime_updater.rb,v 1.4 2005/07/07 16:33:55 tsauerbeck Exp $
6 def initialize(xmms, &block)
23 @timer = Ecore::Timer.new(INTERVAL) do
32 pltime = @xmms.playback_playtime.wait.value
33 cur_pos = pltime / 1000
35 if @current_pos != cur_pos
36 @current_pos = cur_pos
37 @block.call(@current_pos)