audio->Init(9615*2,2);
static void Init	(	)	{	if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|						SDL_INIT_AUDIO) < 0)		{		cerr << "Unable to initialize SDL: " << SDL_GetError() << endl;		exit(-1);		}	atexit(SDL_Quit);	audio->Init(9615*2,2);	SDL_SysWMinfo info;		// Get system info.	SDL_VERSION(&info.version);					// Ignore clicks until splash done.#ifdef XWIN        SDL_GetWMInfo(&info);        display = info.info.x11.display;        xfd = ConnectionNumber(display);#endif		int w, h, sc;	w = 320;	h = 200;	sc = 2;	int sw, sh, scale;	config->value("config/video/width", sw, w);	config->value("config/video/height", sh, h);	config->value("config/video/scale", scale, sc);	gwin = new Game_window(sw, sh, scale);#ifdef WIN32	//enable unknown (to SDL) window messages, including MM_MCINOTIFY	//(for MIDI repeats)	SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);#endif //WIN32	string yn;					// Skip intro. scene? Always if not BG	config->value("config/gameplay/skip_intro", yn, "no");	if ((yn == "yes") || (Game::get_game_type() != BLACK_GATE))		gwin->get_usecode()->set_global_flag(			Usecode_machine::did_first_scene, 1);					// Have Trinsic password?	config->value("config/gameplay/have_trinsic_password", yn, "no");	if (yn == "yes")		gwin->get_usecode()->set_global_flag(			Usecode_machine::have_trinsic_password, 1);					// Skip splash screen?	config->value("config/gameplay/skip_splash", yn, "no");	if(yn == "no") {		gwin->set_mode(Game_window::splash);		Game::get_game()->play_intro();	}	Game::get_game()->show_menu();	gwin->set_mode(Game_window::normal);	SDL_SetEventFilter(Filter_intro_events);	browser = new ShapeBrowser();	gwin->setup_game();		// This will start the scene.	}