Faried Nawaz wrote:
> Next: the OSS plugin builds but doesn't seem to work properly.  At
> some point, it tries to set /dev/dsp to stereo, and fails:
> 
>         tmp = 0;
>         if (shm->channels == 2)
>                 tmp = 1;
>         rc = ioctl (audio_fd, SNDCTL_DSP_STEREO, &tmp);
>         if (rc < 0) {
>                 perror (snd_dev);
>                 Con_Printf ("Could not set %s to stereo=%d", snd_dev, shm->chann
> els);
>                 close (audio_fd);
>                 return 0;
>         }
> 
> I have a Creative 128 card which identifies itself as
> 
> pcm0: <AudioPCI ES1373-8> port 0x6800-0x683f irq 10 at device 10.0 on pci0
> 
> What can I do here to make quakeforge use the sound card?

I've seen something like this before.

The cause was the sourd card being opened twice, and the second
open failing, without the programmer checking the open return
code in the second case.

The fix was to use the already open fd, instead of reopening
the card.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to