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

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

Contents


alIsSubtype(3dm)					      alIsSubtype(3dm)


NAME    [Toc]    [Back]

     alIsSubtype - indicate if one resource type is a subtype of another

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audio.h>

     int alIsSubtype(int type, int subtype)

PARAMETER    [Toc]    [Back]

     type      is a resource type for which you	want to	see if subtype is a
	       subtype.	type can also be a resource, in	which case alIsSubtype
	       uses the	type of	the given resource.

     subtype   is a resource type for which you	want to	see if type is a
	       supertype. subtype can also be a	resource, in which case
	       alIsSubtype uses	the type of the	given resource.

DESCRIPTION    [Toc]    [Back]

     All Audio Library software	and hardware resources have types. Some	types
     are subtypes of others. alIsSubtype returns 1 if subtype is a subtype of
     type; it returns 0	otherwise.

     Note that alIsSubtype considers any resource type to be a subtype of
     itself. This allows alIsSubtype to	be used	as a general mechanism for
     comparing resource	types.

EXAMPLE    [Toc]    [Back]

     The following code	fragment takes a device	dev and	decides	if it is an
     input or output device. All input device types are	subtypes of
     AL_INPUT_DEVICE_TYPE; all output device types are subtypes	of
     AL_OUTPUT_DEVICE_TYPE.

	  ALpv t;

	  /*
	   * Get the type of the device, and decide if it's input or
	   * output. Adapt accordingly.
	   */
	  if (alIsSubtype( AL_OUTPUT_DEVICE_TYPE, dev))	{
	      output = 1;
	  }

SEE ALSO    [Toc]    [Back]

      
      
     alIntro(3dm), alGetParams(3dm)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
XmRepTypeRegister Tru64 A representation type manager function that registers a representation type resource
XmRepTypeRegister IRIX A representation type manager function that registers a representation type resource
XmRepTypeRegister HP-UX A representation type manager function that registers a representation type resource
XmRepTypeInstallTearOffModelConverter Tru64 A representation type manager function that installs the resource converter for XmNtearOffModel.
XmRepTypeInstallTearOffModelConvert HP-UX A representation type manager function that installs the resource converter for XmNtearOffModel.
XmRepTypeInstallTearOffModelConverter IRIX A representation type manager function that installs the resource converter for XmNtearOffModel.
rad_get_max Tru64 Query resource complements of a Resource Affinity Domain (libnuma)
rad_get_physmem Tru64 Query resource complements of a Resource Affinity Domain (libnuma)
rad_get_state Tru64 Query resource complements of a Resource Affinity Domain (libnuma)
rad_get_num Tru64 Query resource complements of a Resource Affinity Domain (libnuma)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service