]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_sdl.c
Remove Con_Warnf and Errorf. Use macros to change color and identify the message
[xonotic/darkplaces.git] / snd_sdl.c
index 98169a0672d9423e7fff5ffd856dc8566e5ef15a..68c84cdbe116fbd1195573b36f5f34c14caeeb57 100644 (file)
--- a/snd_sdl.c
+++ b/snd_sdl.c
@@ -138,7 +138,7 @@ qboolean SndSys_Init (snd_format_t* fmt)
 
        if ((audio_device = SDL_OpenAudioDevice(NULL, 0, &wantspec, &obtainspec, SDL_AUDIO_ALLOW_FREQUENCY_CHANGE | SDL_AUDIO_ALLOW_CHANNELS_CHANGE)) == 0)
        {
-               Con_Errorf( "Failed to open the audio device! (%s)\n", SDL_GetError() );
+               Con_Printf(CON_ERROR "Failed to open the audio device! (%s)\n", SDL_GetError() );
                return false;
        }