libsaria: Set volume during startup
This restores the volume to the level during the last session. Before this, it was defaulting to max volume.
This commit is contained in:
parent
975b153bea
commit
b06b11cafc
|
@ -74,6 +74,7 @@ def set_volume(prcnt):
|
|||
pipeline.set_volume(prcnt)
|
||||
unlock_audio()
|
||||
prefs.set("libsaria.audio.volume", prcnt)
|
||||
set_volume(prefs.init("libsaria.audio.volume", 1.0))
|
||||
|
||||
def position():
|
||||
lock_audio()
|
||||
|
|
Loading…
Reference in New Issue