Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
AuCreateBucket(3)	   Library Functions Manual	     AuCreateBucket(3)

Name
       AuCreateBucket -	create a bucket

Synopsis
       #include	<audio/audiolib.h>

       AuBucketID  AuCreateBucket(server, format, tracks, access, sample_rate,
       nsamples, description, status)
	   AuServer *server;
	   AuUint32 format;
	   AuUint32 tracks;
	   AuUint32 access;
	   AuUint32 sample_rate;
	   AuUint32 num_samples;
	   AuString *description;
	   AuStatus *status; /*	RETURN */

Arguments
       server	 Specifies the connection to the audio server.

       format	 Specifies the data format of the audio	data.  Currently,  the
		 following  formats  are  defined: AuFormatULAW8, AuFormatLin-
		 earUnsigned8,	   AuFormatLinearSigned8,      AuFormatLinear-
		 Signed16MSB,  AuFormatLinearUnsigned16MSB, AuFormatSignedLin-
		 ear16LSB, and AuFormatLinearUnsigned16LSB.

       tracks	 Specifies the number of tracks	of the audio data.

       access	 Specifies the types of	operations permitted on	 this  bucket.
		 This  must be a bitwise inclusive OR of zero or more of these
		 constants: AuAccessImportMask,	AuAccessExportMask,  AuAccess-
		 DestroyMask, and AuAccessListMask.

       sample_rate
		 Specifies the sample rate of the audio	data.

       num_samples
		 Specifies the number of samples the bucket will contain.

       description
		 Specifies  a  textual description of the bucket.  This	may be
		 NULL.

       status	 If non-NULL, flush the	output buffer and  return  the	status
		 from the server.

Description
       AuCreateBucket  creates a bucket	with the specified attributes, and re-
       turns the bucket	ID, or AuNone if there was an error.  The initial con-
       tents of	the bucket are undefined.

Errors
       AuBadValue, AuBadLength,	AuBadAlloc.

See Also
       AuDestroyBucket,	AuSetBucketAttributes, AuListBuckets,  AuFreeBucketAt-
       tributes.

       audiolib	- Network Audio	System C Language Interface

audiolib - bucket existence	     1.9.4		     AuCreateBucket(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=AuCreateBucket&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help