diff options
author | Max Horn | 2003-10-03 23:34:06 +0000 |
---|---|---|
committer | Max Horn | 2003-10-03 23:34:06 +0000 |
commit | ad293a5ab8bf59f9535a4e8fbb3681c76f28128e (patch) | |
tree | d622de229789fe7258d36fcf4ffec6892a2e4de1 /sound | |
parent | c3d84b1a14b787ba9037b71f11d601d6e40fb4f7 (diff) | |
download | scummvm-rg350-ad293a5ab8bf59f9535a4e8fbb3681c76f28128e.tar.gz scummvm-rg350-ad293a5ab8bf59f9535a4e8fbb3681c76f28128e.tar.bz2 scummvm-rg350-ad293a5ab8bf59f9535a4e8fbb3681c76f28128e.zip |
cleanup / doxygenification
svn-id: r10578
Diffstat (limited to 'sound')
-rw-r--r-- | sound/midiparser.h | 3 | ||||
-rw-r--r-- | sound/midiparser_smf.cpp | 20 | ||||
-rw-r--r-- | sound/midiparser_xmidi.cpp | 22 |
3 files changed, 12 insertions, 33 deletions
diff --git a/sound/midiparser.h b/sound/midiparser.h index d44b477015..30d3243667 100644 --- a/sound/midiparser.h +++ b/sound/midiparser.h @@ -24,10 +24,9 @@ #ifndef INCLUDED_MIDIPARSER #define INCLUDED_MIDIPARSER -class MidiParser; - #include "common/scummsys.h" +class MidiParser; class MidiDriver; diff --git a/sound/midiparser_smf.cpp b/sound/midiparser_smf.cpp index b4365607a0..7ec5035ad2 100644 --- a/sound/midiparser_smf.cpp +++ b/sound/midiparser_smf.cpp @@ -25,12 +25,9 @@ #include "common/util.h" -////////////////////////////////////////////////// -// -// The Standard MIDI File version of MidiParser -// -////////////////////////////////////////////////// - +/** + * The Standard MIDI File version of MidiParser. + */ class MidiParser_SMF : public MidiParser { protected: byte *_buffer; @@ -49,15 +46,8 @@ public: }; - -////////////////////////////////////////////////// -// -// MidiParser_SMF implementation -// -////////////////////////////////////////////////// - -static byte command_lengths[8] = { 3, 3, 3, 3, 2, 2, 3, 0 }; -static byte special_lengths[16] = { 0, 1, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; +static const byte command_lengths[8] = { 3, 3, 3, 3, 2, 2, 3, 0 }; +static const byte special_lengths[16] = { 0, 1, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 }; MidiParser_SMF::~MidiParser_SMF() { if (_buffer) diff --git a/sound/midiparser_xmidi.cpp b/sound/midiparser_xmidi.cpp index 176b1aacc0..8b4a194aa0 100644 --- a/sound/midiparser_xmidi.cpp +++ b/sound/midiparser_xmidi.cpp @@ -25,12 +25,12 @@ #include "common/util.h" -////////////////////////////////////////////////// -// -// The XMIDI version of MidiParser -// -////////////////////////////////////////////////// - +/** + * The XMIDI version of MidiParser. + * + * Much of this code is adapted from the XMIDI implementation from the exult + * project. + */ class MidiParser_XMIDI : public MidiParser { protected: NoteTimer _notes_cache[32]; @@ -49,16 +49,6 @@ public: }; - -////////////////////////////////////////////////// -// -// MidiParser_XMIDI implementation -// -// Much of this code is adapted from the XMIDI -// implementation from the exult project. -// -////////////////////////////////////////////////// - // This is a special XMIDI variable length quantity uint32 MidiParser_XMIDI::readVLQ2 (byte * &pos) { uint32 value = 0; |