aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/music.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-11-08 22:48:27 +0000
committerRobert Špalek2009-11-08 22:48:27 +0000
commit8edfd6b56c7a7be7a2950d687678269f2aaf7010 (patch)
tree11e4f95271d121e68b5268aef1aab74125d798ab /engines/draci/music.cpp
parentea0b2a8cb8e1e23c62442f248c5b6551469e8db8 (diff)
downloadscummvm-rg350-8edfd6b56c7a7be7a2950d687678269f2aaf7010.tar.gz
scummvm-rg350-8edfd6b56c7a7be7a2950d687678269f2aaf7010.tar.bz2
scummvm-rg350-8edfd6b56c7a7be7a2950d687678269f2aaf7010.zip
Updated the list of TODOs
svn-id: r45768
Diffstat (limited to 'engines/draci/music.cpp')
-rw-r--r--engines/draci/music.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/draci/music.cpp b/engines/draci/music.cpp
index 7e5e4066e4..a46d7d402f 100644
--- a/engines/draci/music.cpp
+++ b/engines/draci/music.cpp
@@ -125,6 +125,8 @@ void MusicPlayer::send(uint32 b) {
if (!_channel[channel]) {
_channel[channel] = (channel == 9) ? _driver->getPercussionChannel() : _driver->allocateChannel();
+ // If a new channel is allocated during the playback, make sure
+ // its volume is correctly initialized.
setChannelVolume(channel);
}
@@ -232,12 +234,6 @@ void MusicPlayer::syncVolume() {
int volume = ConfMan.getInt("music_volume");
debugC(2, kDraciSoundDebugLevel, "Syncing music volume to %d", volume);
setVolume(volume);
-
- // TODO: doesn't work in the beginning when no music is playing yet.
- // It goes through all active channels (= none) and stops. Only after
- // actual instruments have played in the channels, this has an effect.
- // As a consequence, music is very loud in the beginning until Ctrl-F5
- // is pressed for the first time.
}
} // End of namespace Draci