32 #include <sys/types.h>
47 #define ATTRIBUTE_PACKED __attribute__((__packed__))
49 #define ATTRIBUTE_PACKED
67 #if (!defined __GNUC__)
#define WARN_UNUSED_RESULT
void maybe_add_to_tempo_map(smf_event_t *event)
void smf_init_tempo(smf_t *smf)
void remove_last_tempo_with_pulses(smf_t *smf, size_t pulses)
void smf_track_add_event(smf_track_t *track, smf_event_t *event)
smf_track_t * smf_find_track_with_next_event(smf_t *smf)
void smf_create_tempo_map_and_compute_seconds(smf_t *smf)
int is_status_byte(const unsigned char status)
int smf_event_is_tempo_change_or_time_signature(const smf_event_t *event)
void smf_fini_tempo(smf_t *smf)
int smf_event_length_is_valid(const smf_event_t *event)
uint16_t number_of_tracks
struct chunk_header_struct mthd_header