The Complete SPRLIB & ANNLIB
init_audio
- initialize the audio device (LOCAL)
SYNOPSIS
ARGUMENTS
None.
RETURNS
TRUE in case of an error, FALSE if succesful.
FUNCTION
Opens the audio device /dev/audio write-only, checks whether it is the
correct device (AMD) and initializes the device (sample rate = 8000, channels = 1,
precision = 8, encoding = AUDIO_ENCODING_ULAW, gain = 128, port = AUDIO_SPEAKER).
For an explanation of these constants, see the include-file sun/audioio.h.
The routine sets the fdaudio file descriptor (see SOUND-variables).
NOTE
The sound generation functions only work on Sun workstations running SunOS
and containing an AMD-AM79C30A sound controller chip.
This function is used by the sound_sample routine.
SEE ALSO
sound_sample, free_audio, send_audio
This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998