Skip site navigation (1)Skip section navigation (2)
Date:      	Sun, 24 Dec 1995 23:43:22 -0500
From:      FICNAR FRANK G <ficnar@ecf.toronto.edu>
To:        freebsd-multimedia <freebsd-multimedia@FreeBSD.ORG>
Subject:   "Interrupted system call" reading from /dev/dsp
Message-ID:  <Pine.SOL.3.91.951224232920.13283A-100000@spark27.ecf>

next in thread | raw e-mail | index | archive | help


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
--------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.91.951224232920.13283A-100000>