mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
BS1 specific fix for bug #1107121 (ALL/SFX: Setting the SFX volume at 256 mutes sound)
svn-id: r16746
This commit is contained in:
parent
490bba8ecb
commit
86370fa544
@ -176,9 +176,15 @@ int SwordEngine::init(GameDetector &detector) {
|
||||
_logic = new Logic(_objectMan, _resMan, _screen, _mouse, _sound, _music, _menu, _system, _mixer);
|
||||
_mouse->useLogicAndMenu(_logic, _menu);
|
||||
|
||||
uint8 musicVol = (uint8)ConfMan.getInt("music_volume");
|
||||
uint8 speechVol = (uint8)ConfMan.getInt("speech_volume");
|
||||
uint8 sfxVol = (uint8)ConfMan.getInt("sfx_volume");
|
||||
uint musicVol = ConfMan.getInt("music_volume");
|
||||
uint speechVol = ConfMan.getInt("speech_volume");
|
||||
uint sfxVol = ConfMan.getInt("sfx_volume");
|
||||
if (musicVol > 255)
|
||||
musicVol = 255;
|
||||
if (speechVol > 255)
|
||||
speechVol = 255;
|
||||
if (sfxVol > 255)
|
||||
sfxVol = 255;
|
||||
|
||||
_music->setVolume(musicVol, musicVol); // these routines expect left and right volume,
|
||||
_sound->setSpeechVol(speechVol, speechVol); // but our config manager doesn't support it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user