diff options
author | Max Horn | 2004-12-27 00:27:00 +0000 |
---|---|---|
committer | Max Horn | 2004-12-27 00:27:00 +0000 |
commit | 67b311713d8f4cfcd460a9649e0075f24278a048 (patch) | |
tree | b3cc2c445a34084ab1baa645c1ae818c44268eff /saga/music.cpp | |
parent | 6670b2969a3669ae7bda7103407e8e5e22c2916a (diff) | |
download | scummvm-rg350-67b311713d8f4cfcd460a9649e0075f24278a048.tar.gz scummvm-rg350-67b311713d8f4cfcd460a9649e0075f24278a048.tar.bz2 scummvm-rg350-67b311713d8f4cfcd460a9649e0075f24278a048.zip |
Added 'sound types' to the mixer - for now, only plain (for the premixer), SFX and music; volume is now controlled based on the sound type
svn-id: r16330
Diffstat (limited to 'saga/music.cpp')
-rw-r--r-- | saga/music.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/music.cpp b/saga/music.cpp index 338bf09977..0b8596be0f 100644 --- a/saga/music.cpp +++ b/saga/music.cpp @@ -295,7 +295,7 @@ void MusicPlayer::stopMusic() { Music::Music(SoundMixer *mixer, MidiDriver *driver, int enabled) : _mixer(mixer), _enabled(enabled), _adlib(false) { _player = new MusicPlayer(driver); _musicInitialized = 1; - _mixer->setMusicVolume(ConfMan.getInt("music_volume")); + _mixer->setVolumeForSoundType(SoundMixer::kMusicAudioDataType, ConfMan.getInt("music_volume")); if (_vm->_gameType == GType_ITE) { File file; @@ -438,7 +438,7 @@ int Music::play(uint32 music_rn, uint16 flags) { if (audioStream) { debug(0, "Playing digitized music"); - _mixer->playInputStream(&_musicHandle, audioStream, true); + _mixer->playInputStream(SoundMixer::kMusicAudioDataType, &_musicHandle, audioStream); return SUCCESS; } |