first many thanks, I love to play this game out of my linux box!
I got a fault, game crashed, but music was playing on and on. I analyzed source and learned that you used a fork to timidity executable to play music. Nice idea, but it would better to play music using the mixer extension of SDL. So I decided to write a patch.
My current problem is, that SDL_OpenAudio is casted, and an audio device will open for FX. Ok, but I need Mix_OpenAudio, which is casted after SDL'ed once. Mix_GetError() returns, that an Audiodevice is allready open.
I wrote a little bit in sdl.c in function SdlSoundStart(), so it looks like this:
Code: Select all
spec.samples = 512;
spec.callback = fill_sound_buffer;
#if defined(WITH_SDLMIXER)
SDL_CALL Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 4096);
#else
SDL_CALL SDL_OpenAudio(&spec, &spec);
SDL_CALL SDL_PauseAudio(0);
#endif
return NULL;
}
My question here is, can someone tell me, if there's a simple way to put this type of sound-bank with Mix-ext?
If you want to try my code, here is a patch and add the line
musicdriver = sdlmidi
to your config file in [misc]