- if(oss_sound_flag) {
-
- // Initialise SDL with audio and video
- if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) != 0) {
- oss_sound_flag = 0;
- printf ("Can't open sound, starting without it\n");
- atexit(SDL_Quit);
- } else {
- atexit(SDL_Quit);
- atexit(SDL_CloseAudio);
- oss_sound_flag = init_sound();
- }
-
+ if(sound_flag) {
+ // Initialize SDL with audio and video
+ if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) != 0) {
+ sound_flag = 0;
+ printf ("Can't open sound, starting without it\n");
+ atexit(SDL_Quit);
+ } else {
+ atexit(SDL_Quit);
+ atexit(SDL_CloseAudio);
+ sound_flag = init_sound();
+ }