1AuScanForTypedEvent(3)     Library Functions Manual     AuScanForTypedEvent(3)
2
3
4

Name

6       AuScanForTypedEvent - return the first event of a specific type
7

Synopsis

9       #include <audio/audiolib.h>
10
11       AuBool AuScanForTypedEvent(server, mode, dequeue, type, event)
12           AuServer *server;
13           int mode;
14           AuBool dequeue;
15           int type;
16           AuEvent *event; /* RETURN */
17

Arguments

19       server    Specifies the connection to the audio server.
20
21       mode      Specifies how far to look for a match.  This should be one of
22                 these constants: AuEventsQueuedAlready,  AuEventsQueuedAfter‐
23                 Reading, or AuEventsQueuedAfterFlush.
24
25       dequeue   Specifies  if a matching event is found, should it be removed
26                 from the queue.
27
28       type      Specifies the type of event to match.  The type should be one
29                 of  these  constants:  AuEventTypeElementNotify, AuEventType‐
30                 GrabNotify, or AuEventTypeMonitorNotify.
31
32       event     Returns the matching event if found.
33

Description

35       AuScanForTypedEvent scans the event queue looking for the  first  event
36       that  matches type.  If mode is AuEventsQueuedAlready, AuScanForTypedE‐
37       vent only  checks  for  events  already  in  the  queue.   If  mode  is
38       AuEventsQueuedAfterReading, and a matching event isn't found already in
39       the queue, AuScanForTypedEvent attempts to read more events out of  the
40       application's  connection.   If  mode is AuEventsQueuedAfterFlush and a
41       matching event isn't already in the queue or isn't waiting to be  read,
42       AuScanForTypedEvent  flushes the output queue and attempts to read more
43       events out of the application's connection.  If dequeue is AuTrue,  and
44       a matching event is found, it is removed from the queue.
45

See Also

47       AuEventsQueued, AuScanEvents, AuNextEvent.
48
49       audiolib - Network Audio System C Language Interface
50
51
52
53audiolib - event handling            1.9.2              AuScanForTypedEvent(3)
Impressum