The Complete SPRLIB & ANNLIB

send_audio

- send data to the audio device (LOCAL)

SYNOPSIS

int send_audio (buffer, len)

ARGUMENTS

char *buffer A buffer containing the data to be sent to the audio device.
int len The length of buffer.

RETURNS

TRUE in case of an error, FALSE if succesful.

FUNCTION

Checks if the audio device is opened (fdaudio is not equal to -1) and, if so, uses the write C-function to send the data to the device.

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, init_audio, free_audio

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998