ACloseAudio(3X)
NAME
ACloseAudio − close connection to specific audio server
SYNOPSIS
void
ACloseAudio (
Audio ∗ audio,
long ∗ status_return);
DESCRIPTION
ACloseAudio() closes the connection to the server specified by audio and deallocates the Audio structure memory. After the connection has been closed, it cannot be resumed or used in any other way.
audio specifies the Audio structure associated with this connection.
status_return receives the returned status of the operation, unless it is set to NULL.
ERRORS
If status_return is not set to NULL, one of the following is returned in status_return.
0 AENoError
2 AEBadAudio
EXAMPLE
The following example closes the connection to audio and sets up status to receive status data.
Audio ∗ audio; /∗ audio connection ∗/
long status; /∗ error status ∗/
.
.
.
/∗ close audio connection ∗/
ACloseAudio(audio, &status);
DEPENDENCIES
This function belongs to the Audio Library of functions that manage connections to an audio server. The audio server must run on a system that has audio hardware. To find out whether or not your system has audio hardware, refer to the hardware manual that accompanies your system.
AUTHOR
ACloseAudio() was developed by HP.
SEE ALSO
Using the Audio Application Program Interface.
Hewlett-Packard Company — HP-UX Release 8.07: November 1991