AuSoundPlayFromBucket(3)
π AuSoundPlayFromBucket π
okay bestie, welcome to the soundlib corner of the Library Functions Manual β this is the page for AuSoundPlayFromBucket(3) and it's literally your little backstage pass to making a bucket of audio go brrr through a device. π let's get into it.
πΈ Name πΈ
AuSoundPlayFromBucket β create a flow to play from a bucket. that's it. that's the whole job. iconic. β¨
π¦ Synopsis π¦
#include <audio/audiolib.h>
#include <audio/soundlib.h>
AuEventHandlerRec *AuSoundPlayFromBucket(server, source, destination,
volume, callback, callback_data, loop_count, flow, volume_mult_elem,
monitor_element, status)
AuServer *server;
AuBucketID source;
AuDeviceID destination;
AuFixedPoint volume;
void (*callback) (AuServer *, AuEventHandlerRec *, AuEvent *,
AuPointer);
AuPointer callback_data;
int loop_count;
AuFlowID *flow; /* RETURN */
int *volume_mult_elem; /* RETURN */
int *monitor_element; /* RETURN */
AuStatus *status; /* RETURN */
likeβ¦ that's a lot of arguments bestie but do not panic, we're gonna go through every single one. π«Ά
π Arguments π
serverβ the connection to the audio server. your little phone line to the mothership fr. πsourceβ the bucket you wanna play. the actual audio tea. πdestinationβ the device where the audio data gets output. speakers, headphones, whatever's serving looks. π§volumeβ the volume. turn it up. πcallbackβ the procedure to be called for extra event processing. it's the "and also do this while you're at it" girlie. β¨callback_dataβ any additional arguments you wanna hand off to that callback. her little plus-one. πloop_countβ how many times the bucket should be played. yes, you can make it go again. and again. πflowβ if it's non-NULL, it returns the flow ID. (/* RETURN */)volume_mult_elemβ if it's non-NULL, it returns the index of the volume multipler element. (/* RETURN */)monitor_elementβ if it's non-NULL, anExportMonitorelement gets included in the flow and its index gets returned. (/* RETURN */) πstatusβ if it's non-NULL, the output buffer gets flushed and the status from the server comes back to you. (/* RETURN */) π
π Description π
AuSoundPlayFromBucket creates a flow to play bucket on device and hands you back a pointer to the event handler it created β or NULL if something went wrong. π«
lowkey important: thatNULLreturn is the vibe check failing. if you getNULL, something errored, no cap.
π Errors π
AuBadBucket, AuBadDevice.
that's the list. if you're seeing these, the bucket or the device is not giving what it's supposed to give. π
β See Also β
AuSoundPlayAuSoundPlayFromDataAuSoundPlayFromFileAuSoundPlaySynchronousFromFileaudiolibβ Network Audio System C Language Interface
and that's the page bestie!! this whole thing lives in soundlib, version 1.9.5, and yeah, it's the AuSoundPlayFromBucket(3) page, she's been here a minute and she's still slaying. mwah. π
πππ¦
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms