1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@267 efabe8c0-fbe8-4139-b769-b5e6d273206e
This commit is contained in:
skomoroh 2011-03-06 07:16:40 +00:00
parent 27f49e6bc7
commit 23490fe487

View file

@ -248,6 +248,8 @@ def pysol_init(app, args):
AbstractAudioClient): AbstractAudioClient):
try: try:
app.audio = c() app.audio = c()
app.audio.startServer()
app.audio.connectServer(app)
except: except:
pass pass
else: else:
@ -256,7 +258,9 @@ def pysol_init(app, args):
else: else:
c = sounds[SOUND_MOD] c = sounds[SOUND_MOD]
app.audio = c() app.audio = c()
app.audio.startServer() app.audio.startServer()
app.audio.connectServer(app)
# update sound_mode # update sound_mode
if isinstance(app.audio, PysolSoundServerModuleClient): if isinstance(app.audio, PysolSoundServerModuleClient):
app.opt.sound_mode = 1 app.opt.sound_mode = 1
@ -311,7 +315,6 @@ Please check your %s installation.
app.initMusic() app.initMusic()
# init audio 2) # init audio 2)
app.audio.connectServer(app)
if not app.audio.CAN_PLAY_SOUND: if not app.audio.CAN_PLAY_SOUND:
app.opt.sound = 0 app.opt.sound = 0
app.audio.updateSettings() app.audio.updateSettings()