*BSD News Article 58075


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!news.kei.com!nntp.coast.net!torn!utnut!cannon.ecf!ficnar
From: ficnar@ecf.toronto.edu (FICNAR  FRANK G)
Subject: Reading from /dev/dsp ... "Interrupted system call"
X-Nntp-Posting-Host: spark27.ecf
Message-ID: <DK4Atx.7Dz@ecf.toronto.edu>
Sender: news@ecf.toronto.edu (News Administrator)
Organization: University of Toronto, Engineering Computing Facility
Date: Mon, 25 Dec 1995 01:01:09 GMT
Lines: 65

Hello,

	I am trying to write a small program to record 15 seconds of
audio from the CD using FreeBSD and the voxware drivers installed
with it.  I am following the documentation of the drivers as close
as I possibly can but I am encountering difficulty when finally
reading from /dev/dsp.  I can setup the recording rate, resolution,
and source without any problems whatsoever.  After a few seconds,
about 5 seconds, an error is returned after the read (which has been
blocked up to that point) which says ...

	"Interrupted system call"

I get this same message if I do "cat /dev/dsp > audio.file" after
the same length of time.  I posted a similar problem almost a year
ago but the solution somebody sent me, which involved some ioctl
call, was way over my head at the time (I didn't know what an ioctl
call was ... now I do, of course.)  I thought it had something to
do with calling a SOUND_PCM_RESET or SOUND_PCM_SYNC before doing 
anything else and that is what I tried out now before setting any
other parameters but, sadly, it hasn't solved the problem.

	Does anybody know how to solve this problem?  I am running
FreeBSD 2.0.5 and am using whatever version of the voxware driver
came with it.  The output of "cat /dev/sndstat" matches the hardware
on my system.  It is as follows;

Sound Driver:2.90-2 (Sun Feb 5 14:38:12 EST 1995 freebsd-hackers@freefall.cdrom.com)
Config options: ffffffff

Installed drivers: 
Type 1: OPL-2/OPL-3 FM
Type 2: SoundBlaster
Type 6: SoundBlaster16
Type 7: SB16 MIDI


Card config: 
SoundBlaster at 0x220 irq 5 drq 1
SoundBlaster16 at 0x0 irq 65535 drq 6
SB16 MIDI at 0x330 irq 65535 drq 4294967295
OPL-2/OPL-3 FM at 0x388 irq 65535 drq 4294967295

PCM devices:
0: SoundBlaster 16 4.5

Synth devices:
0: Yamaha OPL-3

Midi devices:
0: SoundBlaster 16 Midi

MIDI Timers:
0: System Timer

1 mixer(s) installed

	Thank you for your time.  Happy Holidays.

Frank Ficnar

-- 
====================================================================
 Frank Ficnar                                ficnar@ecf.toronto.edu
--------------------------------------------------------------------