From owner-freebsd-multimedia Sun Dec 24 20:43:47 1995 Return-Path: owner-multimedia Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA01506 for multimedia-outgoing; Sun, 24 Dec 1995 20:43:47 -0800 (PST) Received: from cannon.ecf.toronto.edu (root@cannon.ecf.toronto.edu [128.100.8.5]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA01501 for ; Sun, 24 Dec 1995 20:43:45 -0800 (PST) Received: by cannon.ecf.toronto.edu id <1159>; Sun, 24 Dec 1995 23:43:25 -0500 Date: Sun, 24 Dec 1995 23:43:22 -0500 From: FICNAR FRANK G X-Sender: ficnar@spark27.ecf To: freebsd-multimedia Subject: "Interrupted system call" reading from /dev/dsp Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-multimedia@FreeBSD.ORG Precedence: bulk I'm trying to write a short program to read 15 seconds of audio (8kHz, 8-bit, mono) from the CD channel of my SB16-SCSI-II. I can make all the required ioctl calls without any problems but when I try to read then from /dev/dsp (I make all the config stuff through /dev/mixer) it halts for a few seconds and then errors out with an "Interrupted system call." This is similar to a problem I have with doing a "cat /dev/dsp > audio.file" where it halts for a few seconds and then exits with the same message. Is there something obvious I am doing wrong? I am opening the correct devices, the ioctl calls to setup the rate, resolution, and recording source are all working. I have even tried calling both a RESET and a SYNC as the very first steps in the program after opening both devices but this doesn't help. I am running FreeBSD 2.0.5 and whatever voxware came with that version (Sound Driver:2.90-2 comes back from /dev/sndstat). Thanks for your time. ==================================================================== Frank Ficnar ficnar@ecf.toronto.edu --------------------------------------------------------------------