AuDispatchEvent(3)

✨ AuDispatchEvent(3) ✨

okay bestie, welcome to the Library Functions Manual entry for AuDispatchEvent(3) β€” she's short, she's sweet, she's the girl who hands your event to everybody who asked to hear about it πŸŽ€


πŸ’« NAME πŸ’«

AuDispatchEvent β€” send event to the event handlers. that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

#include <audio/audiolib.h>

AuBool AuDispatchEvent(server, event)
    AuServer *server;
    AuEvent *event;

πŸ¦‹ ARGUMENTS πŸ¦‹

  • server β€” the connection to the audio server. like, which server are we talking to, babe? this one. πŸ”Œ
  • event β€” the event to be dispatched. the lil guy getting passed around to everyone who's registered to receive her πŸ‘‘βœ¨

πŸ’– DESCRIPTION πŸ’–

AuDispatchEvent sends event to the registered event handlers and returns AuTrue if any of the event handlers returned AuTrue.

that's the whole vibe. she hands the event off, she peeps whether anybody actually claimed it, and she tells you AuTrue if at least one handler was like "yes bestie I got this" 🫢. no handler said yes? then no AuTrue for you, sorry babes 😭


🌈 SEE ALSO 🌈

  • AuRegisterEventHandler β€” go register your handler first, otherwise who's even listening?? πŸ™ˆ
  • audiolib β€” Network Audio System C Language Interface ⭐

and that's a wrap, my love 🧚 this page came from audioutil, version 1.9.4, dated 1.9.4 in the footer (yes she's wearing the same fit in both spots, iconic honestly), and it lives at AuDispatchEvent(3). go dispatch something, you got this πŸ’œπŸŽ€

πŸ“¦ where this page comes from