projects
/
euphoria.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Removed RCS headers.
[euphoria.git]
/
lib
/
playback_status_handler.rb
1
class PlaybackStatusHandler
2
def initialize(xmms, &block)
3
@block = block
4
5
@state = xmms.playback_status.wait.value
6
@block.call(@state)
7
8
xmms.broadcast_playback_status.notifier do |res|
9
if @state != res.value
10
@state = res.value
11
@block.call(@state)
12
end
13
end
14
end
15
end