Hi,
we are in the early development stages of our game “Legacy of Aeritia”.
Because we want our game engine to be modular, we would like to call
SDL_Init() more than once - once for video, once for audio.
Is this possible and “legal” (i.e. it won’t break in future versions or
on certain platforms) ?
Thanks
-- Jean-Pierre Gygax (www.legacy-ovwp.org)
Use SDL_InitSubSystem. Initialise SDL with SDL_Init(SDL_INIT_VIDEO) since
video is probably the most important sub system. Then just call
SDL_InitSubSystem(SDL_INIT_AUDIO) when you want to start the audio system,
for instance. There used to be problems on one of the word processor OS’s
with this, not sure if its still a problem. Sam?
This class of functions is covered at :
http://sdldoc.sourceforge.net/current/general.htmlOn Tue, 29 Aug 2000, Hans-Peter Gygax wrote:
Hi,
we are in the early development stages of our game “Legacy of Aeritia”.
Because we want our game engine to be modular, we would like to call
SDL_Init() more than once - once for video, once for audio.
Is this possible and “legal” (i.e. it won’t break in future versions or
on certain platforms) ?
Thanks
-- Jean-Pierre Gygax (www.legacy-ovwp.org)
Martin
Bother! said Pooh, as he entered the Badlands.