alSetWidth man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



alGetWidth(3dm)						       alGetWidth(3dm)

NAME
     alSetWidth, alGetWidth - get/set the wordsize for integer audio data

SYNOPSIS
     #include <dmedia/audio.h>

     int alGetWidth(ALconfig config)

     int alSetWidth(ALconfig config, int samplesize)

PARAMETER
     config	  expects an ALconfig structure, the returned value of a call
		  to alNewConfig(3dm) or alGetConfig(3dm).

     samplesize	  expects a symbolic constant that identifies the size of an
		  integer audio sample.	 There are three symbolic constants
		  defined for this parameter.

		  AL_SAMPLE_8 indicates a one byte (signed char) sample width
		  in the range -128 to 127.

		  AL_SAMPLE_16 indicates a 16-bit (short) sample width in the
		  range -32768 to 32767.

		  AL_SAMPLE_24 indicates a 32-bit (int) sample width in the
		  range -8388608 to 8388607. Note that though a 32-bit integer
		  is used for ease of packing, the audio system will limit
		  values to 24 bits; hence the name AL_SAMPLE_24.

DESCRIPTION
     alGetWidth returns the current sample width setting in the ALconfig
     structure config.

     alSetWidth sets the sample width setting in the ALconfig structure
     config.  Any audio port that you then configure using config will have
     the audio sample size you specify with samplesize.

     Both alGetWidth and alSetWidth are only meaningful if you are using an
     integer sample format (the default). If you are using a floating point
     format (see alSetSampFmt(3dm)), the wordsize is implicit in the selected
     format; calls to alSetWidth will not affect the behavior of
     alReadFrames(3dm) or alWriteFrames(3dm) until you switch to an integer
     sample format.

DIAGNOSTICS
     Upon successful completion alGetWidth returns a int whose value is one of
     the symbolic constants described above for samplesize. Otherwise,
     alGetWidth returns -1 and and sets an error number. This error number can
     be retrieved with oserror(3C).

									Page 1

alGetWidth(3dm)						       alGetWidth(3dm)

     alGetWidth can fail for the following reason:

     AL_BAD_CONFIG    config is invalid or null.

     alSetWidth returns 0 if successful. Otherwise, it returns -1 and sets an
     error number which can be retrieved with oserror(3C).

     alSetWidth can fail for the following reasons:

     AL_BAD_CONFIG   config is invalid or null.

     AL_BAD_WIDTH    width is not one of the valid constants listed above.

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

									Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net