diff options
author | Ludvig Strigeus | 2002-04-14 18:13:08 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2002-04-14 18:13:08 +0000 |
commit | ac62a7cb2e17a86350681366d768a99db3b9845d (patch) | |
tree | 48a6f9eca1242f7ebf03f05835372811a4048f7a /gui.cpp | |
parent | a5e3dbb85dad96d8ffb6205e07d12ff8396ba5c7 (diff) | |
download | scummvm-rg350-ac62a7cb2e17a86350681366d768a99db3b9845d.tar.gz scummvm-rg350-ac62a7cb2e17a86350681366d768a99db3b9845d.tar.bz2 scummvm-rg350-ac62a7cb2e17a86350681366d768a99db3b9845d.zip |
wrote new mixer class,
cleaned up sound header files,
integrated mixer into scummvm & simon
svn-id: r3937
Diffstat (limited to 'gui.cpp')
-rw-r--r-- | gui.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -21,8 +21,10 @@ #include "stdafx.h" #include "scumm.h" +#include "mididrv.h" #include "gui.h" #include "guimaps.h" +#include "imuse.h" #ifdef _WIN32_WCE // Additional variables for Win32 specific GUI @@ -484,12 +486,13 @@ void Gui::handleSoundDialogCommand(int cmd) { if (cmd == 40 || cmd == 50) { if (cmd == 40) { - SoundEngine *se = (SoundEngine *)_s->_soundEngine; _s->_sound_volume_master = _gui_variables[0]; // Master _s->_sound_volume_music = _gui_variables[1]; // Music _s->_sound_volume_sfx = _gui_variables[2]; // SFX - se->set_music_volume(_s->_sound_volume_music); - se->set_master_volume(_s->_sound_volume_master); + + IMuse *imuse = _s->_imuse; + imuse->set_music_volume(_s->_sound_volume_music); + imuse->set_master_volume(_s->_sound_volume_master); registry_save(); } |