SDL_Init or SDL_InitSubSystem

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…

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

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

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

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

It should work. You might have to call the internal SDL function
DX5_SoundFocus() with the window handle before initializing audio.

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

Dnia 2003.01.20 20:45 Sam Lantinga napisa?(a):

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

It should work. You might have to call the internal SDL function
DX5_SoundFocus() with the window handle before initializing audio.

Thanks…

Rafal----------------------------------------------------------------------
Portal INTERIA.PL zaprasza… >>> http://link.interia.pl/f16ab