mirror of
https://github.com/panzi/mediaextract
synced 2025-02-27 02:00:35 +00:00
16 lines
468 B
C
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__ */
|