Tweaked audio parameters

This commit is contained in:
Rob Pearce 2008-12-31 03:52:19 +00:00
parent ea0bc6c962
commit af5fcbe11f
1 changed files with 8 additions and 1 deletions

9
rc.c
View File

@ -8859,7 +8859,8 @@ int initsound(void) {
char filename[BUFLEN];
/* init */
if (Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024) < 0) {
//if (Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024) < 0) {
if (Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 2048) < 0) {
printf("Error initialising sound: %s.\n",Mix_GetError());
return B_TRUE;
}
@ -11555,10 +11556,16 @@ void dotitlescreen(void) {
//SDL_FillRect(screen, NULL, SDL_MapRGB(screen->format, 0, 0, 0));
// free temp surfaces
SDL_FreeSurface(cointext );
SDL_FreeSurface(ver );
SDL_FreeSurface(text );
SDL_FreeSurface(text2 );
SDL_FreeSurface(easy );
SDL_FreeSurface(norm );
SDL_FreeSurface(help );
SDL_FreeSurface(helpon );
SDL_FreeSurface(helpoff );
SDL_FreeSurface(titlebg );
SDL_FreeSurface(p1ready);
SDL_FreeSurface(p2ready);
}