comparison SDL_sound.c @ 432:ddce7101673e

Call SDL_InitSubSystem instead of SDL_Init, to prevent unwanted initialization of the SDL parachute.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 10 Dec 2002 02:15:32 +0000
parents 9d0b5ec9cc26
children 5b00e43ec23c
comparison
equal deleted inserted replaced
431:54a68e39fa7c 432:ddce7101673e
216 216
217 available_decoders = (const Sound_DecoderInfo **) 217 available_decoders = (const Sound_DecoderInfo **)
218 malloc((total) * sizeof (Sound_DecoderInfo *)); 218 malloc((total) * sizeof (Sound_DecoderInfo *));
219 BAIL_IF_MACRO(available_decoders == NULL, ERR_OUT_OF_MEMORY, 0); 219 BAIL_IF_MACRO(available_decoders == NULL, ERR_OUT_OF_MEMORY, 0);
220 220
221 SDL_Init(SDL_INIT_AUDIO); 221 SDL_InitSubSystem(SDL_INIT_AUDIO);
222 222
223 errorlist_mutex = SDL_CreateMutex(); 223 errorlist_mutex = SDL_CreateMutex();
224 224
225 for (i = 0; decoders[i].funcs != NULL; i++) 225 for (i = 0; decoders[i].funcs != NULL; i++)
226 { 226 {