From: Dmitry R. <ru...@in...> - 2005-11-09 23:39:56
|
I tried and made support for SDL_mixer sound and music output in UNIX environment (probably it works elsewhere, I just didn't test it). It is a convenient option, because if you have SDL installed, you're likely to have SDL_mixer too, and it doesn't require any external MIDI players or the capability of mixing audio streams from several processes in a single device. The patch introduces a couple of new drivers which are activated by defining WITH_SDLMIXER, then using '-m sdlmixer' argument. It turned out that the TTD mixer API and SDL_mixer don't fit together well, so I had to mangle mixer.c a bit. Happy hacking, -- --- Dmitry Rutsky |