mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
* fixed bug #3046827
git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@267 39dd0a4e-7c14-0410-91b3-c4f2d318f732
This commit is contained in:
parent
0f91eb03dd
commit
1a761a56cd
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue