Technical data

audiocs(7D) Devices SunOS 5.5
22050 Hz linear 16 1 or 2
32000 Hz linear 16 1 or 2
37800 Hz linear 16 1 or 2
44100 Hz linear 16 1 or 2
48000 Hz linear 16 1 or 2
Audio Ports
The record.avail_ports and play.avail_ports fields of the audio_info structure report the
available input and output ports. The audiocs device supports three input ports, selected
by setting the record.port field to eitherAUDIO_MICROPHONE,
AUDIO_INTERNAL_CD_IN,orAUDIO_LINE_IN. If you select the
AUDIO_INTERNAL_CD_IN this will select input from the internal CD drive installed on
an SPARCstation 5 platform. This will allow you to gather data off of the CD without
using a line out of the headphone jack to the linein of the audio input. The play.port
field may be set to any combination of AUDIO_SPEAKER, AUDIO_HEADPHONE, and
AUDIO_LINE_OUT by OR’ing the desired port names together.
Sample Granularity Since the audiocs device manipulates buffers of audio data, at any given time the
reported input and output sample counts will vary from the actual sample count by no
more than the size of the buffers it is transferring. Programs should, in general, not rely
on absolute accuracy of the play.samples and record.samples fields of the audio_info
structure.
Audio Status Change
Notification
As described in audio(7I), it is possible to request asynchronous notification of changes in
the state of an audio device.
ERRORS audiocs errors are defined in the audio(7I), man pages.
FILES The physical device names are very system dependent and are rarely used by program-
mers. For example:
/devices/iommu@f,e0000000/sbus@f,e0001000/SUNW,CS4231@2,c00000:sound,audio
The programmer should instead use the generic device names listed below:
/dev/audio symbolic link to the system’s primary audio device, not neces-
sarily a audiocs based audio device
/dev/audioctl control device for the above audio device
/dev/sound/0 represents the first audio device on the system and is not neces-
sarily based on audiocs
/dev/sound/0 first audio device in the system
/dev/sound/0ctl audio control for above device
/usr/demo/SOUND audio demonstration programs and other files
SEE ALSO ioctl(2), audio(7I), streamio(7I)
Crystal Semiconductor, Inc., data sheet for the CS4231 16-Bit, 48 kHz, Multimedia Audio
Codec Publication number DS111PP2.
7D-36 modified 31 Jan 1994