No longer exit on audio failure

This commit is contained in:
andreja6
2018-05-01 23:56:32 -07:00
parent 011d817321
commit 5232d5e97f

View File

@@ -32,7 +32,6 @@ void AudioPlayer::init()
/* Open the audio device and start playing sound! */ /* Open the audio device and start playing sound! */
if ( SDL_OpenAudio(&fmt, NULL) < 0 ) { if ( SDL_OpenAudio(&fmt, NULL) < 0 ) {
fprintf(stderr, "Unable to open audio: %s\n", SDL_GetError()); fprintf(stderr, "Unable to open audio: %s\n", SDL_GetError());
exit(1);
} }
SDL_PauseAudio(0); SDL_PauseAudio(0);
} }