🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.sun
Article #6536

Reading from /dev/audio

#6536
From: Malcolm Ross Kinsella Ryan
Date: Fri, 01 Dec 1995 00:00
11 lines
1005 bytes
I am trying to read audio input from /dev/audio on a Sun SparcClassic. The
audio(7) man page says I can simply open the device with open() and read it
with read(), and that read() should block until the buffer is full.

However, when I try to do this, read does not block. Instead it simply 
copies as many bytes as have already been sampled into the buffer and then
returns.

Why is it acting in this way? Is this what it is supposed to be doing?

Malcolm
Technical Details
Message-ID: <49m3nf$ps2@mirv.unsw.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6653,1228325a2e9a9f8a,start
X-Google-Attributes: gidf6653,public
X-Google-Thread: 10d053,1228325a2e9a9f8a,start
X-Google-Attributes: gid10d053,public
From: Malcolm Ross Kinsella Ryan <malcolmr>
Subject: Reading from /dev/audio
Date: 1995/12/01
Message-ID: <49m3nf$ps2@mirv.unsw.edu.au>
X-Deja-AN: 120576616
distribution: world
organization: School of CompSci & Eng, Uni Of NSW, Oz
reply-to: malcolmr@cse.unsw.edu.au
newsgroups: aus.computers.sun,comp.sys.sun.misc