*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> audio/alGetEventData (3d)              
Title
Content
Arch
Section
 

Contents


alGetEventData(3dm)					   alGetEventData(3dm)


NAME    [Toc]    [Back]

     alGetEventData - gets data	from certain events with non-scalar
     parameters.

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audio.h>

     void* alGetEventData(ALevent event)

PARAMETER    [Toc]    [Back]

     event   expects an	ALevent	structure initialized by alNextEvent(3dm) or
	     alCheckEvent(3dm).

DESCRIPTION    [Toc]    [Back]

     alGetEventData returns the	event data information as a void pointer. This
     call is used on certain non-scalar	event parameters. Refer	to
     alParams(3dm) for a complete list of parameters that return event
     information through alGetEventData(3dm).

     After reading the event data, the void pointer should be cast to an event
     information struct.  Again, refer to alParams(3dm)	for a complete list
     event information structs.

EXAMPLE    [Toc]    [Back]

     The following code	fragment shows how to retrieve data from events	with
     parameters	of type	AL_CONNECT.


	  ALeventQueue	   eventq;
	  ALevent	   event;
	  ALconnectionInfo *info;
	       .
	       .
	  /*
	   * Get event from event queue
	   */
	  alNextEvent(eventq,event);
	  switch(alGetEventParam(event)) {
	  case AL_CONNECT:
	      conn_info	= (ALconnectionInfo *)alGetEventData(event);
		.
		.
		.
	      break;
		.
		.
		.
	  }





									Page 1






alGetEventData(3dm)					   alGetEventData(3dm)


DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, alGetEventData(3dm) returns a void pointer.
     Otherwise it returns NULL,	and sets an error number. This error number
     can be retrieved with oserror(3C).

     alGetEventData can	fail for the following reason:

     AL_BAD_INVALID_EVENT   event is invalid or	null.

SEE ALSO    [Toc]    [Back]

      
      
     alNewEvent(3dm), alNextEvent(3dm),	alCheckEvent(3dm), alParams(3dm),
     alGetEventParam(3dm), alGetEventValue(3dm), alGetParams(3dm), oserror(3C)


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
numeric IRIX 0- return scalar values related to parameters of an associated model
floating IRIX 0- return scalar values associated with the argument derived from the model of floating point data.
I18N::Collate IRIX compare 8-bit scalar data according to the current locale *** WARNING: starting from the Perl version 5.003_06
fddi_config Tru64 Displays and modifies the Fiber Distributed Data Interface (FDDI) parameters
shape IRIX Returns the shape of an array or a scalar
csmg IRIX Performs a conditional scalar merge
staux Tru64 routines that provide scalar interfaces to auxiliaries
staux IRIX routines that provide scalar interfaces to auxiliaries
clascl IRIX multiplie the M by N complex matrix A by the real scalar CTO/CFROM
csrscl IRIX multiplie an n-element complex vector x by the real scalar 1/a
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service