logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

AuCreateBucket - create a bucket

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,   AuFormatLinearUnsigned8,   AuFormatLinearSigned8,   AuFormatLinearSigned16MSB,
                 AuFormatLinearUnsigned16MSB, AuFormatSignedLinear16LSB, 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,
                 AuAccessDestroyMask, 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 returns the bucket ID, or AuNone if
       there was an error.  The initial contents of the bucket are undefined.

Errors

AuBadValue, AuBadLength, AuBadAlloc.

Name

AuCreateBucket - create a bucket

See Also

AuDestroyBucket, AuSetBucketAttributes, AuListBuckets, AuFreeBucketAttributes.

       audiolib - NetworkAudioSystem C Language Interface

audiolib - bucket existence                           1.9.4                                    AuCreateBucket(3)

Synopsis

       #include <audio/audiolib.h>

       AuBucketIDAuCreateBucket(server, format, tracks, access, sample_rate, nsamples, description, status)
           AuServer *server;
           AuUint32format;
           AuUint32tracks;
           AuUint32access;
           AuUint32sample_rate;
           AuUint32num_samples;
           AuString *description;
           AuStatus *status; /* RETURN */

See Also