[SDL] Unexpected exit at first SDL_mixer call (v1.2.11 in mingw-cross-env)

Mason Wheeler masonwheeler at yahoo.com
Tue Mar 2 10:23:24 PST 2010


>----- Original Message ----

>From: David Bruce <davidstuartbruce at gmail.com>
>Subject: Re: [SDL] Unexpected exit at first SDL_mixer call (v1.2.11 in mingw-cross-env)
>
>Hi Ronald,
>
>> SDL-mixer 1.2.8 did not use Mix_Init(). You should add it prior OpenAudio
>> for 1.2.11 usage.
>
>That's extremely helpful.  However, I need the code to still work with
>1.2.8.  What is the recommended way to keep my code compatible?

Try calling Mix_Linked_Version, so you can know whether or not you'll
need to call Mix_Init.




More information about the SDL mailing list