Date: Wed, 14 Mar 2001 00:18:09 -0500 (EST) From: Jim Durham <durham@w2xo.pgh.pa.us> To: freebsd-multimedia@freebsd.org Subject: Ioctl's for dsp device with Luigi's driver Message-ID: <Pine.BSF.4.21.0103140004340.27904-100000@shazam.int>
next in thread | raw e-mail | index | archive | help
Hi, I have a little application that just records to disk from a soundcard at whatever bit rate, number of channels and resolution bits that you tell it. This has been working fine for years on FreeBSD. I have been using Luigi's sound stuff recently. I *think* that the program ran ok on FreeBSD 3.X with Luigi's code. I tried it recently on 4.2-RELEASE and came up with ioctl errors. Here's an example chunk of code that causes the error.. parm = atoi(argv[1]); if (ioctl(dspfd, SOUND_PCM_WRITE_BITS, &parm)) { perror("ioctlwrbits"); exit(1); } In this case "parm" is 44100, or whatever bit rate you're using to record. I read soundcard.h and it looks like this set of ioctls is not valid for Luigi's code. I had thought it was "backward compatable". No? -Jim Durham To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103140004340.27904-100000>