2011-04-30 12:37:31 -04:00
|
|
|
# Bryan Schumaker (4 / 30 / 2011)
|
|
|
|
|
2011-04-30 13:41:08 -04:00
|
|
|
import libsaria
|
|
|
|
|
2011-04-30 12:37:31 -04:00
|
|
|
def null_cb(*args):
|
|
|
|
pass
|
|
|
|
|
|
|
|
on_play = null_cb
|
|
|
|
def play():
|
|
|
|
on_play()
|
2011-04-30 12:42:27 -04:00
|
|
|
|
|
|
|
on_pause = null_cb
|
|
|
|
def pause():
|
|
|
|
on_pause()
|
2011-04-30 12:55:48 -04:00
|
|
|
|
|
|
|
on_load = null_cb
|
|
|
|
def load_file(file):
|
2011-06-17 19:47:04 -04:00
|
|
|
attrs = libsaria.sources.all_attrs()
|
|
|
|
on_load(file, attrs)
|
2011-04-30 13:05:22 -04:00
|
|
|
|
|
|
|
on_like = null_cb
|
|
|
|
def like_song(like):
|
|
|
|
on_like(like)
|
2011-04-30 13:08:05 -04:00
|
|
|
|
|
|
|
on_set_volume = null_cb
|
|
|
|
def set_volume(prcnt):
|
|
|
|
on_set_volume(prcnt)
|
2011-04-30 13:41:08 -04:00
|
|
|
|
|
|
|
on_get_art = null_cb
|
|
|
|
def get_art(file, id):
|
|
|
|
on_get_art(file, id)
|
2011-05-01 09:41:47 -04:00
|
|
|
|
|
|
|
on_load_playlist = null_cb
|
|
|
|
def load_playlist():
|
|
|
|
on_load_playlist()
|
2011-05-01 09:54:06 -04:00
|
|
|
|
2011-05-21 07:44:11 -04:00
|
|
|
on_library_updated = null_cb
|
|
|
|
def library_updated():
|
|
|
|
on_library_updated()
|
|
|
|
|
2011-05-07 18:52:24 -04:00
|
|
|
on_queue_changed = null_cb
|
|
|
|
def queue_changed():
|
|
|
|
on_queue_changed()
|
2011-05-22 09:24:53 -04:00
|
|
|
|
|
|
|
on_filter = null_cb
|
|
|
|
def refilter():
|
|
|
|
on_refilter()
|