Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

AuSoundCreateBucketFromData - create a bucket and initialize its contents.

Arguments

server    Specifies the connection to the audio server.

       sound     Specifies the audio data description.

       data      Specifies the audio data for the bucket.

       access    Specifies the access restrictions the bucket should have.

       attributes
                 If non-NULL, returns the attributes of the created bucket.

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

Description

AuSoundCreateBucketFromData  creates  a  bucket, initializing the contents with the audio data from data,
       and returns the bucket ID or AuNone if there was error.

Errors

AuBadValue, AuBadLength, AuBadAlloc.

Name

AuSoundCreateBucketFromData - create a bucket and initialize its contents.

See Also

AuSoundCreateBucketFromFile.

       audiolib - NetworkAudioSystem C Language Interface

soundlib                                              1.9.4                       AuSoundCreateBucketFromData(3)

Synopsis

       #include <audio/audiolib.h>
       #include <audio/soundlib.h>

       AuBucketIDAuSoundCreateBucketFromData(server, sound, data, access, attributes, status)
           AuServer *server;
           Soundsound;
           AuPointerdata;
           AuUint32access;
           AuBucketAttributes **attributes; /* RETURN */
           AuStatus *status; /* RETURN */

See Also