mediaextract/midi.h
2012-12-28 20:01:40 +01:00

16 lines
468 B
C

#ifndef AUDIOEXTRACT_MIDI_H__
#define AUDIOEXTRACT_MIDI_H__
#include "audioextract.h"
#define MIDI_MAGIC MAGIC("MThd")
#define MIDI_TRACK_MAGIC MAGIC("MTrk")
#define MIDI_HEADER_SIZE 14
#define MIDI_TRACK_HEADER_SIZE 8
int midi_isheader(const unsigned char *start, const unsigned char *end, size_t *lengthptr, size_t *tracksptr);
int midi_istrack(const unsigned char *start, const unsigned char *end, size_t *lengthptr);
#endif /* AUDIOEXTRACT_MIDI_H__ */