mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 08:23:15 +00:00
COMMON: Allow for parsing QuickTime MIDI files
This commit is contained in:
parent
1f11ce6df2
commit
bbf0bbcd64
@ -165,6 +165,8 @@ void QuickTimeParser::initParseTable() {
|
||||
{ &QuickTimeParser::readWAVE, MKTAG('w', 'a', 'v', 'e') },
|
||||
{ &QuickTimeParser::readESDS, MKTAG('e', 's', 'd', 's') },
|
||||
{ &QuickTimeParser::readSMI, MKTAG('S', 'M', 'I', ' ') },
|
||||
{ &QuickTimeParser::readDefault, MKTAG('g', 'm', 'h', 'd') },
|
||||
{ &QuickTimeParser::readLeaf, MKTAG('g', 'm', 'i', 'n') },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
@ -477,6 +479,8 @@ int QuickTimeParser::readHDLR(Atom atom) {
|
||||
track->codecType = CODEC_TYPE_VIDEO;
|
||||
else if (type == MKTAG('s', 'o', 'u', 'n'))
|
||||
track->codecType = CODEC_TYPE_AUDIO;
|
||||
else if (type == MKTAG('m', 'u', 's', 'i'))
|
||||
track->codecType = CODEC_TYPE_MIDI;
|
||||
|
||||
_fd->readUint32BE(); // component manufacture
|
||||
_fd->readUint32BE(); // component flags
|
||||
|
@ -120,7 +120,8 @@ protected:
|
||||
enum CodecType {
|
||||
CODEC_TYPE_MOV_OTHER,
|
||||
CODEC_TYPE_VIDEO,
|
||||
CODEC_TYPE_AUDIO
|
||||
CODEC_TYPE_AUDIO,
|
||||
CODEC_TYPE_MIDI
|
||||
};
|
||||
|
||||
struct Track {
|
||||
|
Loading…
x
Reference in New Issue
Block a user