man3/AAudioDeviceDescriptor.3

#

    AAudioDeviceDescriptor(3)			    AAudioDeviceDescriptor(3)

    NAME
      AAudioDeviceDescriptor - audio device	attributes

    SYNTAX
      #include <AF/AFlib.h>

      AFDeviceDescriptor *AAudioDeviceDescriptor (AFAudioConn * aud,
    					  int dev_index)

    ARGUMENTS

      aud	    The	handle to an audio connection as returned by AFOpenAu-
    	    dioConn(3).

      dev_index The	number of the audio device of interest.	 This index must be
    	    in the range 0 to aud->ndevices-1, inclusive.

    DESCRIPTION

      The AFDeviceDescriptor is a data structure containing	the attributes of an
      audio	device and contains the	fields shown here:

      typedef struct {
    	int numberOfInputs;
    	int numberOfOutputs;
    	unsigned int inputsFromPhone;
    	unsigned int outputsToPhone;
    	unsigned int playSampleFreq;
    	AEncodeType playBufType;
    	unsigned int playNchannels;
    	unsigned int playNSamplesBuf;
    	unsigned int recSampleFreq;
    	unsigned int recNchannels;
    	AEncodeType recBufType;
    	unsigned int recNSamplesBuf;
      } AFDeviceDescriptor;

      The structure	fields are described as	follows:

      numberOfInputs Number	of input sources for this device.

      numberOfOutputs
    		 Number	of output destinations for this	device.

      inputsFromPhone
    		 Bitmask of device inputs that are connected to	a telephone
    		 line.

      outputsToPhone Bitmask of device outputss that are connected to a telephone
    		 line.

      playSampleFreq Playback sampling frequency, in samples per second.

      playBufType	 Playback data type.

      playNchannels	 Number	of playback channels.

      playNSamplesBuf
    		 Size (in samples) of server's playback	buffer.

      recSampleFreq	 Record	sampling frequency, in samples per second.

      recNchannels	 Number	of record channels.

      recBufType	 Record	data type.

      recNSamplesBuf Size (in samples) of server's record buffer.

    SEE ALSO
      AFOpenAudioConn(3), AF(1)

    BUGS
      If you encounter a reproducible bug, please submit a problem report to
      (af-bugs@crl.dec.com).

    COPYRIGHT
      Copyright 1990-1994, Digital Equipment Corporation.
      See AF(1) for	a full statement of rights and permissions.

    AUTHORS
      Digital Cambridge Research Lab