rem: TFB_InitSound (TFB_SOUNDDRIVER_SDL, 0, frequency);
add: TFB_InitSound (TFB_SOUNDDRIVER_SDL, soundflags);
context: main (int argc, char *argv[]){	int gfxdriver = TFB_GFXDRIVER_SDL_PURE;	int gfxflags = 0;	int width = 640, height = 480, bpp = 16;	int frequency = 44100;	int vol;	char contentdir[1000];	int option_index = 0, c;	static struct option long_options[] = 	{		{"res", 1, NULL, 'r'},		{"bpp", 1, NULL, 'd'},		{"fullscreen", 0, NULL, 'f'},		{"opengl", 0, NULL, 'o'},		{"bilinear", 0, NULL, 'b'},		{"frequency", 1, NULL, 'q'},		{"fps", 0, NULL, 'p'},		{"tv", 0, NULL, 't'},		{"contentdir", 1, NULL, 'c'},		{"help", 0, NULL, 'h'},		{"musicvol", 1, NULL, 'M'},		{"sfxvol", 1, NULL, 'S'},		{"speechvol", 1, NULL, 'T'},        {"3domusic", 0, NULL, 'e'},        {"pcmusic", 0, NULL, 'm'},		{0, 0, 0, 0}	};#ifndef WIN32	strcpy (contentdir, "content");#else	strcpy (contentdir, "../../content");#endif	while ((c = getopt_long(argc, argv, "r:d:fobq:ptc:?hM:S:T:em", long_options, &option_index)) != -1)	{		switch (c) {			case 'r':				sscanf(optarg, "%dx%d", &width, &height);			break;			case 'd':				sscanf(optarg, "%d", &bpp);			break;			case 'f':				gfxflags |= TFB_GFXFLAGS_FULLSCREEN;			break;			case 'o':				gfxdriver = TFB_GFXDRIVER_SDL_OPENGL;			break;			case 'b':				gfxflags |= TFB_GFXFLAGS_BILINEAR_FILTERING;			break;			case 'q':				sscanf(optarg, "%d", &frequency);			break;			case 'p':				gfxflags |= TFB_GFXFLAGS_SHOWFPS;			break;			case 't':				gfxflags |= TFB_GFXFLAGS_TVEFFECT;			break;			case 'c':				sscanf(optarg, "%s", contentdir);			break;			case 'M':				sscanf(optarg, "%d", &vol);				if (vol < 0)					vol = 0;				if (vol > 100)					vol = 100;				musicVolumeScale = vol / 100.0f;			break;			case 'S':				sscanf(optarg, "%d", &vol);				if (vol < 0)					vol = 0;				if (vol > 100)					vol = 100;				sfxVolumeScale = vol / 100.0f;			break;			case 'T':				sscanf(optarg, "%d", &vol);				if (vol < 0)					vol = 0;				if (vol > 100)					vol = 100;				speechVolumeScale = vol / 100.0f;			break;            case 'e':                optWhichMusic = MUSIC_3DO;            break;            case 'm':                optWhichMusic = MUSIC_PC;            break;			default:				printf ("\nOption %s not found!\n", long_options[option_index].name);			case '?':			case 'h':				printf("\nThe Ur-Quan Masters\n");				printf("Options:\n");				printf("  -r, --res=WIDTHxHEIGHT\n");				printf("  -d, --bpp=BITSPERPIXEL\n");				printf("  -f, --fullscreen\n");				printf("  -o, --opengl\n");				printf("  -b, --bilinear\n");				printf("  -q, --frequency=FREQUENCY\n");				printf("  -p, --fps\n");				printf("  -t, --tv\n");				printf("  -c, --contentdir=CONTENTDIR\n");				printf("  -M, --musicvol=VOLUME (0-100)\n");				printf("  -S, --sfxvol=VOLUME (0-100)\n");				printf("  -T, --speechvol=VOLUME (0-100)\n");                printf("  -e, --3domusic\n");                printf("  -m, --pcmusic\n");				return 0;			break;		}	}		CDToContentDir (contentdir);    	InitThreadSystem ();	InitTimeSystem ();	InitTaskSystem ();	_MemorySem = CreateSemaphore (1);	GraphicsSem = CreateSemaphore (1);	mem_init ();	TFB_InitGraphics (gfxdriver, gfxflags, width, height, bpp);	TFB_InitSound (TFB_SOUNDDRIVER_SDL, 0, frequency);	TFB_InitInput (TFB_INPUTDRIVER_SDL, 0);	AssignTask (Starcon2Main, 1024, "Starcon2Main");	for (;;)	{		TFB_ProcessEvents ();		TFB_FlushGraphics ();	}	exit(0);}