[SDL] SDL_Init or SDL_InitSubSystem

Sam Lantinga slouken at devolution.com
Mon Jan 20 09:51:01 PST 2003

> Hi

> I have some problem with sdl sound plugin in freeciv.
> This pugin can work with others clients ( than SDLClient ) and can be 
> hotswap or reload during game.

> Must I use SDL_Init(SDL_INIT_AUDIO) funt. or I can run only 
> SDL_InitSubSystem(SDL_INIT_AUDIO)) ( without run SDL_Init(...) ) ?

> The same question to SDL_Quit() and SDL_QuitSubSystem(...);

> exp.
> gtk client with sdl sound plugin.

> Run Client.
> Start SDL sound plugin ( run only SDL_InitSubSystem(SDL_INIT_AUDIO)) - 
> init sdl)
> start game...
> Stop SDL sound plugin ( run only SDL_QuitSubSystem(SDL_INIT_AUDIO)) - 
> quit sdl)
> Start other sound plugin...

Yes, this should be fine on UNIX.  Windows has dependencies between the
window and the sound device, but that's not the case on other platforms.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment

More information about the SDL mailing list