Technical data

audio(7I) Ioctl Requests SunOS 5.5
An ioctl() will fail if:
EINVAL The parameter changes requested in the AUDIO_SETINFO ioctl are
invalid or are not supported by the device.
EBUSY The parameter changes requested in the AUDIO_SETINFO ioctl could
not be made because another process has the device open and is using a
different format.
FILES The physcial audio device names are system dependent and are rarely used by program-
mers. The programmer should use the generic device names listed below.
/dev/audio symbolic link to the system’s primary audio device
/dev/audioctl symbolic link to the control device for /dev/audio
/dev/sound/0 first audio device in the system
/dev/sound/0ctl audio control device for /dev/sound/0
SEE ALSO open(2), close(2), read(2), write(2), ioctl(2), fcntl(2), poll(2), audioamd(7D), audiocs(7D),
dbri(7D), sbpro(7D), streamio(7I)
BUGS Due to a feature of the STREAMS implementation,programs that are terminated or exit
without closing the audio device may hang for a short period while audio output drains.
In general, programs that produce audio output should catch theSIGINT signal and flush
the output stream before exiting.
On LX machines runningSolaris 2.3, catting a demo audio file to the audio device
/dev/audio does not work. Use the audioplay command on LX machines instead of cat.
FUTURE
DIRECTIONS
Future workstation audio resources will be managed by an audio foundation library. For
the time being,we encourage you to write your programs in a modular fashion, isolating
the audio device-specific functions, so that theymay be easily ported to such an environ-
ment.
The AUDIO_GETDEV ioctl is provided for the future implementation of an audio device
capability database. In general, applications may use the play.avail_ports and
record.avail_ports fields of the audio_info structure to determine the audio device capabil-
ities.
7I-32 modified 21 Mar 1995