SP_#? -> CON_#?

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2686 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2007-09-23 15:28:06 +00:00
parent b97f2c5d69
commit faac72835c
34 changed files with 320 additions and 320 deletions

View file

@ -84,7 +84,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (sc->audio_fd < 0)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Could not open %s\n", snddev);
Con_Printf(CON_ERROR "OSS: Could not open %s\n", snddev);
OSS_Shutdown(sc);
return 0;
}
@ -94,7 +94,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (rc < 0)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Could not reset %s\n", snddev);
Con_Printf(CON_ERROR "OSS: Could not reset %s\n", snddev);
OSS_Shutdown(sc);
return 0;
}
@ -102,14 +102,14 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (ioctl(sc->audio_fd, SNDCTL_DSP_GETCAPS, &caps)==-1)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Sound driver too old\n");
Con_Printf(CON_ERROR "OSS: Sound driver too old\n");
OSS_Shutdown(sc);
return 0;
}
if (!(caps & DSP_CAP_TRIGGER) || !(caps & DSP_CAP_MMAP))
{
Con_Printf(SP_ERROR "OSS: Sorry but your soundcard can't do this\n");
Con_Printf(CON_ERROR "OSS: Sorry but your soundcard can't do this\n");
OSS_Shutdown(sc);
return 0;
}
@ -117,7 +117,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (ioctl(sc->audio_fd, SNDCTL_DSP_GETOSPACE, &info)==-1)
{
perror("GETOSPACE");
Con_Printf(SP_ERROR "OSS: Um, can't do GETOSPACE?\n");
Con_Printf(CON_ERROR "OSS: Um, can't do GETOSPACE?\n");
OSS_Shutdown(sc);
return 0;
}
@ -129,7 +129,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
sc->sn.samplebits = 8;
else if (!(fmt & AFMT_U8))
{
Con_Printf(SP_ERROR "OSS: No needed sample formats supported\n");
Con_Printf(CON_ERROR "OSS: No needed sample formats supported\n");
OSS_Shutdown(sc);
return 0;
}
@ -142,7 +142,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (i == (sizeof(tryrates)/4))
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Failed to obtain a suitable rate\n");
Con_Printf(CON_ERROR "OSS: Failed to obtain a suitable rate\n");
OSS_Shutdown(sc);
return 0;
}
@ -151,7 +151,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (sc->sn.samples > (info.fragstotal * info.fragsize * 4))
{
Con_Printf(SP_NOTICE "OSS: Enabling bigfoot's mmap hack! Hope you know what you're doing!\n");
Con_Printf(CON_NOTICE "OSS: Enabling bigfoot's mmap hack! Hope you know what you're doing!\n");
sc->sn.samples = info.fragstotal * info.fragsize * 4;
}
sc->sn.samples = info.fragstotal * info.fragsize;
@ -162,7 +162,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (!sc->sn.buffer)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Could not mmap %s\n", snddev);
Con_Printf(CON_ERROR "OSS: Could not mmap %s\n", snddev);
OSS_Shutdown(sc);
return 0;
}
@ -176,7 +176,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (rc < 0)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Could not set %s to stereo=%d\n", snddev, sc->sn.numchannels);
Con_Printf(CON_ERROR "OSS: Could not set %s to stereo=%d\n", snddev, sc->sn.numchannels);
OSS_Shutdown(sc);
return 0;
}
@ -189,7 +189,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (rc < 0)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Could not set %s speed to %d\n", snddev, sc->sn.speed);
Con_Printf(CON_ERROR "OSS: Could not set %s speed to %d\n", snddev, sc->sn.speed);
OSS_Shutdown(sc);
return 0;
}
@ -201,7 +201,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (rc < 0)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Could not support 16-bit data. Try 8-bit.\n");
Con_Printf(CON_ERROR "OSS: Could not support 16-bit data. Try 8-bit.\n");
OSS_Shutdown(sc);
return 0;
}
@ -213,7 +213,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (rc < 0)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Could not support 8-bit data.\n");
Con_Printf(CON_ERROR "OSS: Could not support 8-bit data.\n");
OSS_Shutdown(sc);
return 0;
}
@ -221,7 +221,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
else
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: %d-bit sound not supported.\n", sc->sn.samplebits);
Con_Printf(CON_ERROR "OSS: %d-bit sound not supported.\n", sc->sn.samplebits);
OSS_Shutdown(sc);
return 0;
}
@ -233,7 +233,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (rc < 0)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Could not toggle.\n");
Con_Printf(CON_ERROR "OSS: Could not toggle.\n");
OSS_Shutdown(sc);
return 0;
}
@ -242,7 +242,7 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
if (rc < 0)
{
perror(snddev);
Con_Printf(SP_ERROR "OSS: Could not toggle.\n");
Con_Printf(CON_ERROR "OSS: Could not toggle.\n");
OSS_Shutdown(sc);
return 0;
}