alGetEventSrcResource - Return audio resource that generated event
ALvalue alGetEventSrcResource(ALevent event) [Toc] [Back]
event expects an ALevent structure, after being updated by either
alNextEvent(3dm) or alCheckEvent(3dm).
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.
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:
AL_BAD_INVALID_EVENT event is invalid or null.
alNewEvent(3dm), alNextEvent(3dm), alCheckEvent(3dm), alParams(3dm),
alGetEventData(3dm), alGetParams(3dm), alGetEventResource(3dm),
PPPPaaaaggggeeee 1111 [ Back ]