libsaria: Set volume callback
This commit is contained in:
parent
99771a34fb
commit
e59243e51b
|
@ -18,3 +18,7 @@ def load_file(file):
|
|||
on_like = null_cb
|
||||
def like_song(like):
|
||||
on_like(like)
|
||||
|
||||
on_set_volume = null_cb
|
||||
def set_volume(prcnt):
|
||||
on_set_volume(prcnt)
|
||||
|
|
|
@ -91,7 +91,8 @@ def seek_backward():
|
|||
libsaria.audio.seek_sec(-5)
|
||||
|
||||
def set_volume(prcnt):
|
||||
return call("SETVOLUME", audio.set_volume, prcnt)
|
||||
audio.set_volume(prcnt)
|
||||
callbacks.set_volume(prcnt)
|
||||
|
||||
def set_rand(rand):
|
||||
prefs.set("libsaria.random", rand)
|
||||
|
|
Loading…
Reference in New Issue