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, AuFormatLinearUn-
signed8, AuFormatLinearSigned8, AuFormatLinearSigned16MSB, AuFormatLinearUnsigned16MSB, AuFormatSignedLinear16LSB, and AuFormat-
LinearUnsigned16LSB.
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 con-
stants: 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.
See Also
AuDestroyBucket, AuSetBucketAttributes, AuListBuckets, AuFreeBucketAttributes.
audiolib - Network Audio System C Language Interface
audiolib - bucket existence 1.9.3 AuCreateBucket(3)
Check Out this Related Man Page
AuWriteElement(3) Library Functions Manual AuWriteElement(3)Name
AuWriteElement - write data to an ImportClient element in a flow
Synopsis
#include <audio/audiolib.h>
void AuWriteElement(server, flow, element, num_bytes, data, end_of_data, status)
AuServer *server;
AuFlowID flow;
int element;
AuUint32 num_bytes;
AuPointer data;
AuBool end_of_data;
AuStatus *status; /* RETURN */
Arguments
server Specifies the connection to the audio server.
flow Specifies the ID of the flow.
element Specifies the index of the ImportClient element to write the data to.
num_bytes Specifies the number of bytes of audio data to write.
data Specifies the buffer to get the audio data from.
end_of_data
Specifies if this is the last write for this import.
status If non-NULL, flush the output buffer and return the status from the server.
Description
AuWriteElement transfers audio data from the client application to the server, writing num_bytes from data to the ImportClient specified by
element in the audio flow flow. If end_of_data is AuTrue, the ImportClient's eof flag will be set when the write is completed.
Note
If the flow is "trivial" (consisting only of an ImportClient and an ExportBucket), the num_samples fields in the ImportClient and Export-
Bucket are ignored and a write past the end of the bucket will result in an AuBadLength error.
Errors
AuBadFlow, AuBadElement, AuBadValue, AuBadLength.
See Also
AuReadElement.
audiolib - Network Audio System C Language Interface
audiolib - write to element 1.9.3 AuWriteElement(3)
Hi,
My knowledge bucket of UNIX is almost empty. I have developed an application in EXCEL which can create XML files (Metadata) from Binaries.
These binaries are stored in UNIX server on regular intervals. Currently I am transferring all binaries(GBs of files) to WINDOWS using WINSCP and... (2 Replies)
Hi,
I want to extract data b/w two words with the help of sed..
Eg: In "Anna said that she would fetch the bucket", I want to display data b/w "Anna" and "would"
O/P: said that she
I have tried with below code, but unable to get desired o/p
echo "Anna said that she would fetch the... (5 Replies)
Hi, I would like to remove audio tracks from several video clips contained in a single directory using the command
files=(*.mpg); ffmpeg -i "${files}" -vcodec copy -an na/output.mpg
I want each processed file outputted to the sub-directory na retaining the original file name, how do I do that?... (4 Replies)
Hi All,
Hope you all doing good.
I'm facing some issue while syncing data using lsyncd. I'm working on a project to migrate data from a source S3 bucket to target S3 bucket. Both buckets has been configured via AWS storage gateway and shared to Linux servers as nfs shares.
The data size on... (5 Replies)