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

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

Contents


ALgetqueuesize(3dm)					   ALgetqueuesize(3dm)


NAME    [Toc]    [Back]

     ALgetqueuesize, ALsetqueuesize - (obsolete) get/set audio port buffer
     size information in an ALconfig structure

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audio.h>

     long ALgetqueuesize(ALconfig config)
     int ALsetqueuesize(ALconfig config, const long size)

PARAMETER    [Toc]    [Back]

     config   expects an ALconfig structure.  This structure is	the returned
	      value of an ALnewconfig(3dm) or ALgetconfig(3dm) call.

     size     expects the number of sample locations to	use for	the internal
	      buffer of	an audio port created by a subsequent ALopenport(3dm)
	      call.

DESCRIPTION    [Toc]    [Back]

     ALgetqueuesize and	ALsetqueuesize are obsolete and	provided for backward
     compatibility. The	preferred functions are	alGetQueueSize(3dm) and
     alSetQueueSize(3dm), both of which	use units of sample frames.

     ALgetqueuesize(3dm) returns the number of sample locations	that the
     ALconfig structure	specifies.

     ALsetqueuesize(3dm) changes the number of sample locations	that config
     specifies.	 Later,	when you call ALopenport(3dm) with this	config
     structure,	an audio port is created with an internal buffer of size
     sample locations.


     ALgetqueuesize(3dm) can fail for the following reason:

     AL_BAD_CONFIG   config is invalid or null.


     ALsetqueuesize(3dm) can fail for the following reasons:

     AL_BAD_CONFIG   config is invalid or null.

     AL_BAD_QSIZE    size is invalid (either negative or larger	than the
		     maximum allowable queue size).

NOTE    [Toc]    [Back]

     On	IRIS systems with high-quality audio (e.g. Indigo, Indigo2, and	Indy),
     the maximum queue size for	a stereo port is currently 131069, the minimum
     queue size	for a stereo port is 510; the maximum queue size for a mono
     port is currently 262139, and the minimum queue size for a	mono port is
     1019. These values	are somewhat nonintuitive. In the future, there	should
     be	a way to obtain	these values from ALgetminmax(3dm) or a	similar
ALgetqueuesize(3dm)					   ALgetqueuesize(3dm)



     function. Note that ALsetqueuesize(3dm) can succeed if called with	values
     outside this range, but ALopenport(3dm) will fail due to a	bad queue
     size.

DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, ALgetqueuesize(3dm) returns a non-negative
     number. Otherwise,	-1 is returned.

     ALsetqueuesize(3dm) returns 0 when	successful. Otherwise, it returns -1.

     Both functions set	an error number	which can be retrieved with
     oserror(3C) in the	case of	failure.

SEE ALSO    [Toc]    [Back]

      
      
     ALnewconfig(3dm), ALgetconfig(3dm), ALsetconfig(3dm), ALopenport(3dm),
     oserror(3C)






































									Page 2






alGetQueueSize(3dm)					   alGetQueueSize(3dm)


NAME    [Toc]    [Back]

     alGetQueueSize, alSetQueueSize - get/set audio port buffer	size

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audio.h>

     int alGetQueueSize(ALconfig config)
     int alSetQueueSize(ALconfig config, const int size)

PARAMETER    [Toc]    [Back]

     config   expects an ALconfig structure.  This structure is	the returned
	      value of an alNewConfig(3dm) or alGetConfig(3dm) call.

     size     expects the number of sample frames to use for the internal
	      buffer of	an audio port created by a subsequent alOpenPort(3dm)
	      call.

DESCRIPTION    [Toc]    [Back]

     alGetQueueSize returns the	number of sample frames	that the ALconfig
     structure specifies.

     alSetQueueSize changes the	number of sample frames	that config specifies.
     Later, when you call alOpenPort with this config structure, an audio port
     is	created	with an	internal buffer	of size	audio sample frames.  queue
     size).

DIAGNOSTICS    [Toc]    [Back]

     alGetQueueSize normally returns a non-negative number.  If	an error
     occurs, it	returns	-1, and	sets an	error code which can be	retrieved via
     oserror(3C).

     alGetQueueSize can	set the	following error	code:

     AL_BAD_CONFIG   config is invalid or null.


     alSetQueueSize returns 0 when successful.	If an error occurs, it returns
     -1, and sets an error code	which can be retrieved via oserror(3C).

     alSetQueueSize can	set the	following error	codes:

     AL_BAD_CONFIG   config is invalid or null.

     AL_BAD_QSIZE    size is invalid (either negative or larger	than the
		     maximum allowable

SEE ALSO    [Toc]    [Back]

      
      
     alNewConfig(3dm), alGetConfig(3dm), alSetConfig(3dm), alOpenPort(3dm),
     oserror(3C)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
ALgetconfig IRIX (obsolete) get/set the ALconfig structure of an audio ALport structure
ALfreeconfig IRIX (obsolete) deallocates an audio ALconfig structure
ALgetchannels IRIX (obsolete) get/set the channel setting in an audio ALconfig structure
ALgetwidth IRIX (obsolete) get/set the sample width setting in an audio ALconfig structure
ALgetsampfmt IRIX (obsolete) get/set the sample format setting in an audio ALconfig structure
alGetQueueSize IRIX get/set audio port buffer size
alFreeConfig IRIX deallocates an audio ALconfig structure
alGetDevice IRIX get/set the device setting in an audio ALconfig structure
alNewConfig IRIX create and initialize an audio ALconfig structure
ALnewconfig IRIX create and initialize an audio ALconfig structure
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service