GROOVIE: Implement MusicPlayerMPEG4::updateVolume()

This commit is contained in:
Matthew Hoops 2011-04-07 20:34:54 -04:00
parent 9c2fc6721d
commit 25236ebde1

View File

@ -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) {