fixed a minor quirk where it was checking if the sound card supports 8bit audio when its trying to use 16bit audio instead - blame alsa for this ever being noticed.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2748 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2007-10-16 21:52:55 +00:00
parent af06d6e6f8
commit 5993f78949
1 changed files with 3 additions and 3 deletions

View File

@ -126,9 +126,9 @@ static int OSS_InitCard(soundcardinfo_t *sc, int cardnum)
ioctl(sc->audio_fd, SNDCTL_DSP_GETFMTS, &fmt);
if (!(fmt & AFMT_S16_LE) && sc->sn.samplebits > 8)
sc->sn.samplebits = 8;
else if (!(fmt & AFMT_U8))
{
sc->sn.samplebits = 8; // they asked for 16bit (the default) but their card does not support it
if (!(fmt & AFMT_U8) && sc->sn.samplebits == 8)
{ //thier card doesn't support 8bit which we're trying to use.
Con_Printf(CON_ERROR "OSS: No needed sample formats supported\n");
OSS_Shutdown(sc);
return 0;