AuElementNotifyEvent(3)
โจ AuElementNotifyEvent(3) โจ
okay bestie, welcome to the Library Functions Manual corner of the group chat ๐ This page is all about AuElementNotifyEvent, the element notify event structure. It's giving "the audio server is texting your app" energy, and we're gonna read every single field together. No skipping, periodt ๐ซถ
๐ธ Name ๐ธ
AuElementNotifyEvent โ element notify event structure. That's the whole name tea. โจ
๐ง Structures ๐ง
Here's the C shape of it, exactly as the page lays it out:
#include <audio/audiolib.h>
typedef union _AuEvent
{
. . .
AuElementNotifyEvent auelementnotify;
. . .
}AuEvent;
typedef struct _AuElementNotifyEvent
{
int type;
AuUint32 serial;
AuBool send_event;
AuServer *server;
AuTime time;
AuFlowID flow;
unsigned char element_num;
unsigned char kind;
unsigned char prev_state;
unsigned char cur_state;
unsigned char reason;
AuUint32 num_bytes;
}AuElementNotifyEvent;
๐ Members ๐
typeโ the event type. ElementNotify events are typeAuEventTypeElementNotify. That's the event's whole genre. โจserialโ the serial ID of the event, expanded from the 16 bit value sent by the server. It's the event's lil ID number ๐send_eventโAuTrueif the event came from aSendEventprotocol request. So if it's a send event, it says true. ๐serverโ the connection to the audio server that the event was read from. The server link, the source, the plug. ๐timeโ the server time in milliseconds when the event was generated. Timestamped, no cap. โฐflowโ the ID of the flow that caused the event. The flow is the main character here. ๐element_numโ the index of the element that caused the event, orAuElementAllto indicate the flow. So either one specific element or the whole flow vibe. ๐ซkindโ the kind of notify event. This will be one of these constants:AuElementNotifyKindLowWater,AuElementNotifyKindHighWater, orAuElementNotifyKindState. Pick your fighter. ๐prev_stateโ the previous state of the element indexed byelement_num. This will be one of these constants:AuStateStop,AuStateStart, orAuStatePause. The before pic. ๐ธcur_stateโ the current state of the element indexed byelement_num. This will be one of these constants:AuStateStop,AuStateStart, orAuStatePause. The after pic. โจreasonโ the reason for the notify event. This will be one of these constants:AuReasonUser,AuReasonUnderrun,AuReasonOverrun,AuReasonEOF,AuReasonWatermark, orAuReasonHardware. The why, the tea. โnum_bytesโ the number of bytes to send or receive. Only valid if the element indexed byelement_numis anImportClientorExportClient. Byte count only when it's one of those two, bestie. ๐งฎ
๐ฆ Description ๐ฆ
ElementNotify events are sent to client applications to notify them of a watermark condition or state change. That's the whole point, bestie ๐
If kind is AuElementNotifyKindLowWater, the ImportClient element indexed by element_num in flow is ready to receive num_bytes of audio data from the client application. Low water = ready to receive, periodt. ๐
If kind is AuElementNotifyKindHighWater, the ExportClient element indexed by element_num in flow is ready to send num_bytes of audio data to the client application. High water = ready to send, slay. โจ
If kind is AuElementNotifyKindState, the element indexed by element_num (or flow if element_num is AuElementAll) has made a state transition from prev_state to cur_state triggering the event. State change, main character energy. ๐
Reguardless of kind โ yes, that's the spelling on the page, iconic ๐ญ โ prev_state and cur_state contain the old and new states, and reason contains the reason for the event. Every time, no exceptions. ๐
๐ See Also ๐
AuAnyEventAuErrorEventAuGrabNotifyEventAuMakeSendNotifyActionAuMonitorNotifyEvent
Also: audiolib โ Network Audio System C Language Interface. That's the whole family, go read them. ๐
And that's the page, bestie! The footer vibe is audiolib - events, version 1.9.5, AuElementNotifyEvent(3). 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