The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: dlichtenberger on April 01, 2012, 03:25:14 PM

Title: Linux/MIDI: show error messages, fix MIDI filenames
Post by: dlichtenberger on April 01, 2012, 03:25:14 PM
Hi,

here are two small patches against git master (1d13f923fae0eed4db9f7d4419804983d1a5f619) for running the sdl_mixer MIDI backend on Linux:

* music-tab-fix-filenames.patch - fixes the case of a few MIDI filenames for filesystems that are case sensitive
* sdl_mixer-show-midi-errors.patch - SDL returns quite useful error messages when something doesn't work (e.g. when the timidity++ software synthesizer is not installed). This patchs prints the error message obtained from SDL when a file could not be loaded. This also covers the case when the MIDI file does not exist.

Cheers,
Daniel
Title: Re: Linux/MIDI: show error messages, fix MIDI filenames
Post by: prissi on April 02, 2012, 09:40:20 PM
Incorporated, thanks!