X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=cd_sdl.c;h=9e6cb034c32099cffb5acb9b9b09d6b218af8e4f;hb=a16877b21a3d5ddec652ce9ed030e7f32c3fc0e7;hp=fd75fec0ec7e74597fa0a86fc361a28126b527bc;hpb=95f66338c8144989970daa0fa4b38c87e9af94a0;p=xonotic%2Fdarkplaces.git diff --git a/cd_sdl.c b/cd_sdl.c index fd75fec0..9e6cb034 100644 --- a/cd_sdl.c +++ b/cd_sdl.c @@ -106,7 +106,7 @@ int CDAudio_SysResume (void) { SDL_CDResume( cd ); endtime = realtime + (cd->track[ cdPlayTrack - 1 ].length - pauseoffset) / CD_FPS; - return SDL_CDPlayTracks( cd, cdPlayTrack - 1, pauseoffset, cdPlayTrack, 0 ); + return SDL_CDPlayTracks( cd, cdPlayTrack - 1, (int)pauseoffset, cdPlayTrack, 0 ); } int CDAudio_SysUpdate (void) @@ -130,7 +130,7 @@ int CDAudio_SysUpdate (void) void CDAudio_SysInit (void) { if( SDL_InitSubSystem( SDL_INIT_CDROM ) == -1 ) - Con_SafePrint( "Failed to init the CDROM SDL subsystem!\n" ); + Con_Print( "Failed to init the CDROM SDL subsystem!\n" ); Cmd_AddCommand( "cddrive", CDAudio_SDL_CDDrive_f ); } @@ -153,12 +153,12 @@ int CDAudio_SysStartup (void) if( numdrives == -1 ) // was the CDROM system initialized correctly? return -1; - Con_DPrintf( "Found %i cdrom drives.\n", numdrives ); + Con_Printf( "Found %i cdrom drives.\n", numdrives ); for( i = 0 ; i < numdrives ; i++, cd = NULL ) { cd = SDL_CDOpen( i ); if( !cd ) { - Con_DPrintf( "CD drive %i is invalid.\n", i ); + Con_Printf( "CD drive %i is invalid.\n", i ); continue; } @@ -166,9 +166,9 @@ int CDAudio_SysStartup (void) if( IsAudioCD() ) break; else - Con_DPrintf( "The CD in drive %i is not an audio cd.\n", i ); + Con_Printf( "The CD in drive %i is not an audio cd.\n", i ); else - Con_DPrintf( "No CD in drive %i.\n", i ); + Con_Printf( "No CD in drive %i.\n", i ); SDL_CDClose( cd ); }