mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
TINSEL: Fix bug #3032780: "DW: Mute setting does not work"
Bug #3032778 was fixed too as it is the duplicate. Since there is no engine-specific logic, rely on superclass' setupSoundSettings(), and use it on startup too. svn-id: r52374
This commit is contained in:
parent
fcdb349fa2
commit
99c9ba697c
@ -834,8 +834,7 @@ TinselEngine::TinselEngine(OSystem *syst, const TinselGameDescription *gameDesc)
|
||||
DebugMan.addDebugChannel(kTinselDebugMusic, "music", "Music debugging");
|
||||
|
||||
// Setup mixer
|
||||
_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume"));
|
||||
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume"));
|
||||
syncSoundSettings();
|
||||
|
||||
// Add DW2 subfolder to search path in case user is running directly from the CDs
|
||||
const Common::FSNode gameDataDir(ConfMan.get("path"));
|
||||
@ -907,17 +906,6 @@ TinselEngine::~TinselEngine() {
|
||||
MemoryDeinit();
|
||||
}
|
||||
|
||||
void TinselEngine::syncSoundSettings() {
|
||||
// Sync the engine with the config manager
|
||||
int soundVolumeMusic = ConfMan.getInt("music_volume");
|
||||
int soundVolumeSFX = ConfMan.getInt("sfx_volume");
|
||||
int soundVolumeSpeech = ConfMan.getInt("speech_volume");
|
||||
|
||||
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, soundVolumeMusic);
|
||||
_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, soundVolumeSFX);
|
||||
_mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, soundVolumeSpeech);
|
||||
}
|
||||
|
||||
Common::String TinselEngine::getSavegameFilename(int16 saveNum) const {
|
||||
char filename[256];
|
||||
snprintf(filename, 256, "%s.%03d", getTargetName().c_str(), saveNum);
|
||||
|
@ -170,7 +170,6 @@ protected:
|
||||
#if 0
|
||||
bool canSaveGameStateCurrently();
|
||||
#endif
|
||||
virtual void syncSoundSettings();
|
||||
|
||||
public:
|
||||
TinselEngine(OSystem *syst, const TinselGameDescription *gameDesc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user