alGetQueueSize(3dm)                                        alGetQueueSize(3dm)


NAME
     alGetQueueSize, alSetQueueSize - get/set audio port buffer size

SYNOPSIS
     #include <dmedia/audio.h>

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

PARAMETER
     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
     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
     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
     alNewConfig(3dm), alGetConfig(3dm), alSetConfig(3dm), alOpenPort(3dm),
     oserror(3C)


                                                                        Page 1