AuScanForTypedEvent(3)
π AuScanForTypedEvent(3) β bestie edition
okay so this is a page from the Library Functions Manual, and today's main character is AuScanForTypedEvent β she's a libaudiolib girlie and she's here to find you the event. the one. the specific type. periodt. π
β¨ NAME β¨
AuScanForTypedEvent β return the first event of a specific type π―
πΈ SYNOPSIS πΈ
#include <audio/audiolib.h>
AuBool AuScanForTypedEvent(server, mode, dequeue, type, event)
AuServer *server;
int mode;
AuBool dequeue;
int type;
AuEvent *event; /* RETURN */
like. she takes five things and gives you back an AuBool. we love a functional queen π
π ARGUMENTS π
serverβ the connection to the audio server, bestie. that's your line to the whole operation. π«Άmodeβ how far you're willing to look for a match. it's gotta be one of these constants, no substitutions:AuEventsQueuedAlready,AuEventsQueuedAfterReading, orAuEventsQueuedAfterFlush. β¨dequeueβ if a matching event gets found, do we yank it out of the queue or not. yes or no, that's the whole vibe. πtypeβ the type of event you're matching. it should be one of these constants:AuEventTypeElementNotify,AuEventTypeGrabNotify, orAuEventTypeMonitorNotify. pick your fighter. π₯eventβ returns the matching event if found. that's the prize, the trophy, the return value moment. π
π DESCRIPTION π
okay so AuScanForTypedEvent scans the event queue looking for the first event that matches type. that's the whole job. that's her purpose. she's locked in. π
the mode is what decides how hard she's willing to look, and honestly the way that she escalates?? iconic. let's break it down:
- if
modeisAuEventsQueuedAlready,AuScanForTypedEventonly checks for events already in the queue. low effort, lowkey. she's just peeking. π - if
modeisAuEventsQueuedAfterReading, and a matching event isn't found already in the queue,AuScanForTypedEventattempts to read more events out of the application's connection. she goes and looks for it. main character energy fr fr. π - if
modeisAuEventsQueuedAfterFlushand a matching event isn't already in the queue or isn't waiting to be read,AuScanForTypedEventflushes the output queue and attempts to read more events out of the application's connection. that's the full send. she flushes the output queue. she reads more. she does not give up. β
and then: if dequeue is AuTrue, and a matching event is found, it is removed from the queue. gone. dequeued. she took it. π
π¦ SEE ALSO π¦
AuEventsQueuedAuScanEventsAuNextEventaudiolibβ Network Audio System C Language Interface
and that's the whole page, bestie. π this is all from audiolib, section event handling, version 1.9.4 β go forth and find your event. slay. πβ¨π«Ά
π¦ where this page comes from
- debian bookworm: libaudio-dev 1.9.4-7
- debian trixie: libaudio-dev 1.9.4-9
- ubuntu jammy: libaudio-dev 1.9.4-7build1
- ubuntu noble: libaudio-dev 1.9.4-8
- ubuntu questing: libaudio-dev 1.9.4-9
- ubuntu resolute: libaudio-dev 1.9.4-9.2
- ubuntu stonking: libaudio-dev 1.9.4-9.2
- 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