shithub: sf2mid

Download patch

ref: e544752e1ad724552864df9ba07b56e0da496edd
parent: d31a3b9a2ea78839c1a7d0fc6dcac32b8920d831
author: Nicholas Cioli <nicholascioli@gmail.com>
date: Tue Jul 10 12:39:29 EDT 2018

update tml.h to fix multiple include issues

--- a/tml.h
+++ b/tml.h
@@ -135,7 +135,7 @@
 
 // Generic Midi loading method using the stream structure above
 TMLDEF tml_message* tml_load(struct tml_stream* stream);
-TMLDEF tml_message* tml_load_tsf_stream(struct tsf_stream* stream) { return tml_load((struct tml_stream*)stream); }
+TMLDEF tml_message* tml_load_tsf_stream(struct tsf_stream* stream);
 
 #ifdef __cplusplus
 }
@@ -457,6 +457,11 @@
 	}
 
 	return messages;
+}
+
+TMLDEF tml_message* tml_load_tsf_stream(struct tsf_stream* stream)
+{
+	return tml_load((struct tml_stream*)stream);
 }
 
 TMLDEF int tml_get_info(tml_message* Msg, int* out_used_channels, int* out_used_programs, int* out_total_notes, unsigned int* out_time_first_note, unsigned int* out_time_length)