aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/music.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-10-22 07:34:43 +0000
committerRobert Špalek2009-10-22 07:34:43 +0000
commit819449d09907f97c09048268eb52e54b9d9b33c0 (patch)
tree2771cbcd5dbab1d93be7e33b4fd4520ae24613bf /engines/draci/music.cpp
parent93517e7649da286cd5b86efb3ee2e5cf7e7be436 (diff)
downloadscummvm-rg350-819449d09907f97c09048268eb52e54b9d9b33c0.tar.gz
scummvm-rg350-819449d09907f97c09048268eb52e54b9d9b33c0.tar.bz2
scummvm-rg350-819449d09907f97c09048268eb52e54b9d9b33c0.zip
Implemented GPL2 commands for music.
Debugged everything. svn-id: r45330
Diffstat (limited to 'engines/draci/music.cpp')
-rw-r--r--engines/draci/music.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/engines/draci/music.cpp b/engines/draci/music.cpp
index b13fac0673..ec6d85c66c 100644
--- a/engines/draci/music.cpp
+++ b/engines/draci/music.cpp
@@ -43,6 +43,10 @@ MusicPlayer::MusicPlayer(MidiDriver *driver, const char *pathMask) : _parser(0),
this->open();
_smfParser = MidiParser::createParser_SMF();
_midiMusicData = NULL;
+
+ // TODO: Load cmf.ins with the instrument table. It seems that an
+ // interface for such an operation is supported for Adlib. Maybe for
+ // this card, setting instruments is necessary.
}
MusicPlayer::~MusicPlayer() {
@@ -224,14 +228,12 @@ void MusicPlayer::syncVolume() {
int volume = ConfMan.getInt("music_volume");
debugC(2, kDraciSoundDebugLevel, "Syncing music volume to %d", volume);
setVolume(volume);
-}
-// TODO:
-// + volume support
-// - bindings to GPL2 scripting
-// - load cmf.ins
-// - enable Adlib
-// + resuming after configuration
-// + error handling
+ // 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