227 #if defined(__GNUC__) && __GNUC__ >= 4
228 #define WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
230 #define WARN_UNUSED_RESULT
388 int smf_extract_vlq(
const unsigned char *buf,
const size_t buffer_length, uint32_t *value, uint32_t *len);
PBD::PropertyDescriptor< timecnt_t > length
GTKMM_API const Gtk::BuiltinStockID FILE
int smf_event_is_textual(const smf_event_t *event)
void smf_event_remove_from_track(smf_event_t *event)
int smf_event_is_system_realtime(const smf_event_t *event)
void smf_track_add_event_delta_pulses(smf_track_t *track, smf_event_t *event, uint32_t delta)
int smf_track_add_eot_pulses(smf_track_t *track, size_t pulses)
char * smf_decode(const smf_t *smf)
size_t smf_get_length_pulses(const smf_t *smf)
void smf_delete(smf_t *smf)
smf_event_t * smf_track_get_event_by_number(const smf_track_t *track, size_t num)
char * smf_event_extract_text(const smf_event_t *event)
int smf_extract_vlq(const unsigned char *buf, const size_t buffer_length, uint32_t *value, uint32_t *len)
int smf_event_is_sysex(const smf_event_t *event)
int smf_event_is_last(const smf_event_t *event)
void smf_track_add_event_pulses(smf_track_t *track, smf_event_t *event, size_t pulses)
smf_event_t * smf_track_get_last_event(const smf_track_t *track)
int smf_format_vlq(unsigned char *buf, int length, unsigned long value)
int smf_event_is_valid(const smf_event_t *event)
smf_t * smf_load_from_memory(void *buffer, const size_t buffer_length)
#define WARN_UNUSED_RESULT
void smf_add_track(smf_t *smf, smf_track_t *track)
smf_event_t * smf_event_new_textual(int type, const char *text)
void smf_track_delete(smf_track_t *track)
smf_track_t * smf_track_new(void)
int smf_set_format(smf_t *smf, int format)
smf_event_t * smf_track_get_next_event(smf_track_t *track)
smf_event_t * smf_event_new_from_pointer(const void *midi_data, size_t len)
smf_track_t * smf_get_track_by_number(const smf_t *smf, int track_number)
void smf_skip_next_event(smf_t *smf)
void smf_rewind(smf_t *smf)
smf_event_t * smf_event_new_from_bytes(int byte1, int byte2, int byte3)
int smf_event_is_metadata(const smf_event_t *event)
const char * smf_get_version(void)
int smf_track_add_eot_delta_pulses(smf_track_t *track, uint32_t delta)
smf_tempo_t * smf_get_tempo_by_seconds(const smf_t *smf, double seconds)
void smf_event_delete(smf_event_t *event)
void smf_track_remove_from_smf(smf_track_t *track)
smf_event_t * smf_peek_next_event(smf_t *smf)
int smf_set_ppqn(smf_t *smf, uint16_t ppqn)
int smf_event_is_system_common(const smf_event_t *event)
smf_tempo_t * smf_get_tempo_by_pulses(const smf_t *smf, size_t pulses)
smf_event_t * smf_event_new(void)
smf_tempo_t * smf_get_tempo_by_number(const smf_t *smf, size_t number)
int smf_save(smf_t *smf, FILE *file)
int smf_seek_to_pulses(smf_t *smf, size_t pulses)
int smf_get_tempo_count(const smf_t *smf)
int smf_event_is_eot(const smf_event_t *event)
char * smf_event_decode(const smf_event_t *event)
int smf_seek_to_event(smf_t *smf, const smf_event_t *event)
smf_tempo_t * smf_get_last_tempo(const smf_t *smf)
smf_event_t * smf_get_next_event(smf_t *smf)
int32_t delta_time_pulses
size_t midi_buffer_length
size_t file_buffer_length
int need_tempo_map_compute
double last_seek_position
int expected_number_of_tracks
int microseconds_per_quarter_note
size_t time_of_next_event
size_t file_buffer_length