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:
Bryan Schumaker 2011-05-01 10:24:12 -04:00
parent 975b153bea
commit b06b11cafc
1 changed files with 1 additions and 0 deletions

View File

@ -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()