Added SDL_INIT for cd-rom.

This commit is contained in:
Dabb 2000-07-13 13:27:19 +00:00
parent 32fe653e47
commit 5a1ef7ca3d

View file

@ -160,6 +160,10 @@ int CDAudio_Init()
if (COM_CheckParm("-nocdaudio"))
return -1;
if ( SDL_Init(SDL_INIT_CDROM) < 0 ) {
Con_Printf("Couldn't initialize SDL CD-AUDIO: %s\n",SDL_GetError());
return -1;
}
cd_id = SDL_CDOpen(0);
if(!cd_id)
{