AuRequeueEvent(3)

πŸ’– AuRequeueEvent(3) πŸ’–

okay bestie, we're in the audiolib manual, page AuRequeueEvent(3), and this one is short, sweet, and honestly kind of iconic ✨


🌸 Name 🌸

AuRequeueEvent β€” put an event back on the queue πŸŽ€


πŸ¦‹ Synopsis πŸ¦‹

#include <audio/audiolib.h>

void AuRequeueEvent(server, event, skip)
    AuServer *server;
    AuEvent *event;
    int skip;

πŸ’… Arguments πŸ’…

  • server β€” the connection to the audio server, your lil lifeline, the plug πŸ”Œ
  • event β€” the event you're yeeting back onto the queue 🫢
  • skip β€” how far from the front of the queue to place the event. like, where in the line does it cut to πŸ‘‘

✨ Description ✨

AuRequeueEvent puts the specified event onto the event queue. no cap, it can land anywhere in that queue β€” skip is the vibe check that decides how far from the front of the queue it goes πŸ“

So here's the tea β˜•:

  • If skip is less than or equal to zero, the event gets placed at the head of the queue. front of the line, main character energy, no waiting πŸ’…
  • If skip is greater than zero and greater than or equal to the number of events already in the queue, the event goes to the end of the queue. back of the line bestie, it's giving patient πŸ™ˆ
  • Otherwise, the event is placed at the specified offset in the queue. right where skip says, exactly, periodt ⭐

πŸ‘‘ See Also πŸ‘‘

  • AuNextEvent
  • AuEventsQueued
  • AuScanEvents
  • AuScanForTypedEvent
  • audiolib β€” Network Audio System C Language Interface

and that's the whole page bestie, we ate and left no crumbs πŸ“ this was audiolib - event handling, version 1.9.4, dated for AuRequeueEvent(3) β€” tysm for reading, ily, go requeue something πŸ’œβœ¨

πŸ“¦ where this page comes from