alGetEventSrcResource(3dm) alGetEventSrcResource(3dm)
NAME
alGetEventSrcResource - Return audio resource that generated event
SYNOPSIS
#include <dmedia/audio.h>
ALvalue alGetEventSrcResource(ALevent event)
PARAMETER
event expects an ALevent structure, after being updated by either
alNextEvent(3dm) or alCheckEvent(3dm).
DESCRIPTION
alGetEventSrcResource returns the value of the resource that generated
the event. It is important to note that the return value of
alGetEventSrcResource(3dm) is not necessarily the same value of the
resource that posted the event. Please refer to alGetEventResource(3dm)
for more information.
DIAGNOSTICS
Upon successful completion alGetEventSrcResource(3dm) returns a non zero
resource. Otherwise, it returns zero, and sets an error number. This
error number can be retrieved with oserror(3C).
alGetEventSrcResource can fail for the following reason:
ALBADINVALIDEVENT event is invalid or null.
SEE ALSO
alNewEvent(3dm), alNextEvent(3dm), alCheckEvent(3dm), alParams(3dm),
alGetEventData(3dm), alGetParams(3dm), alGetEventResource(3dm),
oserror(3C)
Page 1