extern int accountcampaignchoicesmade[10];
extern int accountcampaignchoices[10][5000];
-extern FSOUND_STREAM * strm[10];
+extern FSOUND_STREAM * strm[20];
extern "C" void PlaySoundEx(int channel, FSOUND_SAMPLE *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
extern "C" void PlayStreamEx(int chan, FSOUND_STREAM *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
FSOUND_StopSound(FSOUND_ALL);
+// this is causing problems on Linux, but we'll force an _exit() a little
+// later in the shutdown process. --ryan.
+#if !PLATFORM_LINUX
#define streamcount 20
#define samplecount 100
free(texture.data);
}
texture.data = 0;
+#endif
}
extern int accountcampaignchoicesmade[10];
extern int accountcampaignchoices[10][5000];
/********************> Tick() <*****/
-extern FSOUND_STREAM * strm[10];
+extern FSOUND_STREAM * strm[20];
extern "C" void PlaySoundEx(int channel, FSOUND_SAMPLE *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
extern "C" void PlayStreamEx(int chan, FSOUND_STREAM *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
// the context is destroyed and libGL unloaded by SDL_Quit().
pglDeleteTextures = glDeleteTextures_doNothing;
+ #if PLATFORM_LINUX
+ _exit(0); // !!! FIXME: hack...crashes on exit!
+ #endif
+
#elif (defined WIN32)
if (hRC)
{
extern int channels[100];
extern FSOUND_SAMPLE * samp[100];
- extern FSOUND_STREAM * strm[10];
+ extern FSOUND_STREAM * strm[20];
extern "C" void PlaySoundEx(int chan, FSOUND_SAMPLE *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused)
{
extern bool gamestarted;
-extern FSOUND_STREAM * strm[10];
+extern FSOUND_STREAM * strm[20];
extern "C" void PlaySoundEx(int channel, FSOUND_SAMPLE *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);
extern "C" void PlayStreamEx(int chan, FSOUND_STREAM *sptr, FSOUND_DSPUNIT *dsp, signed char startpaused);