Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ adestroysbu(3X) — HP-UX 9.03

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ACreateSBucket(3X)

AGetSBucketData(3X)

ALoadAFile(3X)

APlaySBucket(3X)

APutSBucketData(3X)

ARecordAData(3X)

ASaveSBucket(3X)

ADestroySBucket(3X)  —  Series 700 Only

NAME

ADestroySBucket − destroy specified sound bucket

SYNOPSIS

#include <audio/Alib.h>

void ADestroySBucket (

Audio * audio,

SBucket *sb,

long *status_return

);

DESCRIPTION

ADestroySBucket() destroys the specified sound bucket and frees the space allocated for the sound bucket and its audio data. 

audio specifies the Audio structure associated with this connection. 

sb specifies the sound bucket to be destroyed. 

status_return receives the returned status of the operation, unless it is set to NULL. 

Once it has been destroyed, a sound bucket cannot be used to play or record. 

ERRORS

If status_return is not set to NULL, one of the following is returned in status_return:

 0 AENoError

 2 AEBadAudio

20 AEBadSoundBucket

EXAMPLES

The following example destroys the sound bucket sb and frees its allocated space. 

Audio *audio;           /* audio connection */
SBucket *sb;            /* sound bucket */
long status;            /* error status */
.
.
.
/* destroy sound bucket */
ADestroySBucket(audio, sb, &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

ADestroySBucket() was developed by HP. 

SEE ALSO

ACreateSBucket(3X), AGetSBucketData(3X), ALoadAFile(3X), APlaySBucket(3X), APutSBucketData(3X), ARecordAData(3X), ASaveSBucket(3X). 

Using the Audio Application Program Interface.

Hewlett-Packard Company  —  HP-UX Release 9.03: April 1994

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026