Skip to content

Commit

Permalink
ZVISION: Document where MIDI commands are used
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Dec 25, 2014
1 parent 11cf9b5 commit 6c451c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/zvision/scripting/actions.cpp
Expand Up @@ -477,7 +477,9 @@ ActionMusic::ActionMusic(ZVision *engine, int32 slotkey, const Common::String &l

sscanf(line.c_str(), "%u %24s %u %u", &type, fileNameBuffer, &loop, &volume);

// type 4 are midi sound effect files
// Type 4 actions are MIDI commands, not files. These are only used by
// Zork: Nemesis, for the flute and piano puzzles (tj4e and ve6f, as well
// as vr)
if (type == 4) {
_midi = true;
int note;
Expand Down
1 change: 1 addition & 0 deletions engines/zvision/scripting/sidefx/music_node.h
Expand Up @@ -91,6 +91,7 @@ class MusicNode : public MusicNodeBASE {
bool _loaded;
};

// Only used by Zork: Nemesis, for the flute and piano puzzles (tj4e and ve6f, as well as vr)
class MusicMidiNode : public MusicNodeBASE {
public:
MusicMidiNode(ZVision *engine, uint32 key, int8 program, int8 note, int8 volume);
Expand Down

0 comments on commit 6c451c9

Please sign in to comment.