explicitly activate the sound manager
This commit is contained in:
parent
78aa4be170
commit
73d4b78396
1 changed files with 5 additions and 3 deletions
|
@ -492,10 +492,12 @@ static void fgMainLoop( void ) {
|
||||||
&& cur_fdm_state->get_inited()) {
|
&& cur_fdm_state->get_inited()) {
|
||||||
fgSetBool("sim/sceneryloaded",true);
|
fgSetBool("sim/sceneryloaded",true);
|
||||||
#ifdef ENABLE_AUDIO_SUPPORT
|
#ifdef ENABLE_AUDIO_SUPPORT
|
||||||
if (fgGetBool("/sim/sound/enabled") == false)
|
if (fgGetBool("/sim/sound/enabled") == true) {
|
||||||
smgr->stop();
|
|
||||||
else
|
|
||||||
smgr->set_volume(fgGetFloat("/sim/sound/volume"));
|
smgr->set_volume(fgGetFloat("/sim/sound/volume"));
|
||||||
|
smgr->activate();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
smgr->stop();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue