Changed DEBUG and DEBUG_CHATTER to TIMIDITY_DEBUG
resample.c (pre_resample): Fixed a memory corruption bug. (from SDL_sound repository)
timidity.c (mid_exit): Set freed pointers to NULL so that
a reinitialization of the library doesn't crash.
instrum.c,instrum_dls.c,instrum.h,timidity.c,timidity.h,common.c,common.h:
Const correctness on char* pointers. Fixed "pointer targets in assignment
differ in signedness" warnings in instrum_dls.c.
instrum_dls.c (LoadRIFF, AllocRegions, AllocInstruments, AllocWaveList):
Replaced all malloc() usage by safe_malloc().
Make timidity to compile using cplusplus compilers: add missing type
casts, avoid `new' as variable name, assign pointers to NULL instead
of 0. Change type of next from void* to a pointer of structure's own
type in PathList and MidEventList. Return NULL instead of 0 from
functions returning a pointer.
dls1.h, dls2.h, instrum_dls.c, timidity_internal.h:
Fix most of the gcc pedantic warnings. Make it compile using very old gcc.
Fix timidity strict aliasing warnings from certain gcc versions:
- playmidi.c (mid_song_read_wave): Changed to accept a sint8 pointer
  instead of void*. Removed the sint8** casts from the compute_data()
  calls.
- timidity.h (mid_song_read_wave): Adjusted prototype.
timidity.h (MidSongOptions): Added an uint8 width member just after
channels. Not actually used by the library yet, but it will at least
serve as a padding. Also added an uint16 padding member just after
buffer_size.
instrum_dls.c (load_instrument_dls):  Avoid a gcc warning that dls_ins
might be used uninitialized.
timidity.c (read_config_file): close the file before returning in error cases.
instrum_dls.c: Fix gcc's shadowing warnings due to the stupid name clash with index().
instrum.c (load_instrument): Fix shadowing warnings due to reuse of variables i and tmp.
timidity.c (read_config_file): honor the return code from recursive
read_config_file() call for the "source" directive.
from timidity-0.2i bugfix patch found at http://www.onicos.com/staff/iz/timidity/
timidity.c (read_config_file): Don't underflow array when parsing
timidity config file. (From SDL_sound mercurial repo.)
instrum_dls.c: Fixed "comparison between signed and unsigned integer expressions" warnings.
Made some functions and variables static. Commented out unused
PrintRIFF and PrintDLS functions. Consistent whitespace usage.
update the copyright notices.
Added seek and tell functions to the _MidIStream struct.
Added mid_istream_seek and mid_istream_tell to the api.
readmidi.c: Fixed parsing of certain MIDI files with extra data at
the end of the tracks. Fix from SDL_mixer mercurial repository,
changeset 7a8f0018e23d. Problem was described in libsdl bugzilla:
http://bugzilla.libsdl.org/show_bug.cgi?id=1299