[SDL] SDL_Init or SDL_InitSubSystem

Rafał Bursig bursig at poczta.fm
Mon Jan 20 10:27:00 PST 2003


Dnia 2003.01.20 18:50 Sam Lantinga napisał(a):
> > 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.
> 
Thanks ...

But it is save when I use such sdl init ( and quit ) method with win32 
client ( WinAPI ) ?

Rafal

----------------------------------------------------------------------
Poczta nowych mozliwosci >>> http://link.interia.pl/f16bc 






More information about the SDL mailing list