aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie/music.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-04-07 20:34:54 -0400
committerMatthew Hoops2011-04-07 20:34:54 -0400
commit25236ebde1f1a24c6661c1de74fd28cdd46fdafc (patch)
tree4e52c513c40cab804e349ec7a9f4a3626b329204 /engines/groovie/music.cpp
parent9c2fc6721d1719193b465a5bdc8a8308e15832d6 (diff)
downloadscummvm-rg350-25236ebde1f1a24c6661c1de74fd28cdd46fdafc.tar.gz
scummvm-rg350-25236ebde1f1a24c6661c1de74fd28cdd46fdafc.tar.bz2
scummvm-rg350-25236ebde1f1a24c6661c1de74fd28cdd46fdafc.zip
GROOVIE: Implement MusicPlayerMPEG4::updateVolume()
Diffstat (limited to 'engines/groovie/music.cpp')
-rw-r--r--engines/groovie/music.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/groovie/music.cpp b/engines/groovie/music.cpp
index 0d0d8770b3..e02125c192 100644
--- a/engines/groovie/music.cpp
+++ b/engines/groovie/music.cpp
@@ -753,7 +753,8 @@ MusicPlayerMPEG4::MusicPlayerMPEG4(GroovieEngine *vm) : MusicPlayer(vm) {
}
void MusicPlayerMPEG4::updateVolume() {
- // TODO: Check if anything has to be done here
+ // Just set the mixer volume for the music sound type
+ _vm->_system->getMixer()->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _userVolume * _gameVolume / 100);
}
bool MusicPlayerMPEG4::load(uint32 fileref, bool loop) {