Scumm sound settings can now be changed from the gmm
svn-id: r32851
This commit is contained in:
parent
e36166bda2
commit
30c52e215c
4 changed files with 6 additions and 6 deletions
|
@ -514,7 +514,7 @@ void ScummEngine::processKeyboard(Common::KeyState lastKeyHit) {
|
||||||
vol = Audio::Mixer::kMaxMixerVolume;
|
vol = Audio::Mixer::kMaxMixerVolume;
|
||||||
|
|
||||||
ConfMan.setInt("music_volume", vol);
|
ConfMan.setInt("music_volume", vol);
|
||||||
updateSoundSettings();
|
syncSoundSettings();
|
||||||
|
|
||||||
} else if (lastKeyHit.ascii == '-' || lastKeyHit.ascii == '+') { // Change text speed
|
} else if (lastKeyHit.ascii == '-' || lastKeyHit.ascii == '+') { // Change text speed
|
||||||
if (lastKeyHit.ascii == '+' && _defaultTalkDelay > 0)
|
if (lastKeyHit.ascii == '+' && _defaultTalkDelay > 0)
|
||||||
|
|
|
@ -275,7 +275,7 @@ bool ScummEngine::loadState(int slot, bool compat) {
|
||||||
delete in;
|
delete in;
|
||||||
|
|
||||||
// Update volume settings
|
// Update volume settings
|
||||||
updateSoundSettings();
|
syncSoundSettings();
|
||||||
|
|
||||||
// Init NES costume data
|
// Init NES costume data
|
||||||
if (_game.platform == Common::kPlatformNES) {
|
if (_game.platform == Common::kPlatformNES) {
|
||||||
|
|
|
@ -1108,7 +1108,7 @@ int ScummEngine::init() {
|
||||||
if (_game.version >= 5 && _game.version <= 7)
|
if (_game.version >= 5 && _game.version <= 7)
|
||||||
_sound->setupSound();
|
_sound->setupSound();
|
||||||
|
|
||||||
updateSoundSettings();
|
syncSoundSettings();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1667,7 +1667,7 @@ void ScummEngine::setupMusic(int midi) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScummEngine::updateSoundSettings() {
|
void ScummEngine::syncSoundSettings() {
|
||||||
|
|
||||||
// Sync the engine with the config manager
|
// Sync the engine with the config manager
|
||||||
int soundVolumeMusic = ConfMan.getInt("music_volume");
|
int soundVolumeMusic = ConfMan.getInt("music_volume");
|
||||||
|
@ -2309,7 +2309,7 @@ void ScummEngine::mainMenuDialog() {
|
||||||
if (!_mainMenuDialog)
|
if (!_mainMenuDialog)
|
||||||
_mainMenuDialog = new MainMenuDialog(this);
|
_mainMenuDialog = new MainMenuDialog(this);
|
||||||
runDialog(*_mainMenuDialog);
|
runDialog(*_mainMenuDialog);
|
||||||
updateSoundSettings();
|
syncSoundSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScummEngine::confirmExitDialog() {
|
void ScummEngine::confirmExitDialog() {
|
||||||
|
|
|
@ -462,7 +462,7 @@ protected:
|
||||||
virtual void loadLanguageBundle() {}
|
virtual void loadLanguageBundle() {}
|
||||||
void loadCJKFont();
|
void loadCJKFont();
|
||||||
void setupMusic(int midi);
|
void setupMusic(int midi);
|
||||||
void updateSoundSettings();
|
virtual void syncSoundSettings();
|
||||||
void setTalkspeed(int talkspeed);
|
void setTalkspeed(int talkspeed);
|
||||||
int getTalkspeed();
|
int getTalkspeed();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue