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

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

Contents


ALgetfd(3dm)							  ALgetfd(3dm)


NAME    [Toc]    [Back]

     ALgetfd - (obsolete) get the file descriptor for an audio port

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audio.h>

     int ALgetfd(ALport	port)

PARAMETER    [Toc]    [Back]

     port   expects the	ALport structure whose file descriptor you desire.
	    This structure is the returned value of an ALopenport(3dm) call.

DESCRIPTION    [Toc]    [Back]

     ALgetfd is	obsolete and is	provided for backward compatibility. The
     preferred function	is alGetFD(3dm).

     ALgetfd() returns a file descriptor that you can use to construct the
     arguments to a select(2)  or poll(2) call.	These calls are	used when you
     want to give up control of	the CPU	(letting other processes use the CPU)
     until the device fills/empties the	audio port buffer past the fillpoint.
     At	that time, select(2) and poll(2) return, and your code can continue
     processing	the audio ports.  If the device	has already filled/emptied the
     audio port	buffer past the	fillpoint when you make	the call, control
     returns to	your program immediately.

     When using	select(2), an input port's file	descriptor is used in a	read
     fdset and an output port's	file descriptor	is used	in a write fdset.

     When using	poll(2), an input port's file descriptor is used with the
     POLLIN event flag and an output port's file descriptor is used with a
     POLLOUT event flag.

     Several AL	functions implicitly change the	current	fillpoint value.
     Therefore,	ALsetfillpoint(3dm) must be called immediately before a
     select(2) or poll(2) call which uses an audio file	descriptor.

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

     AL_BAD_PORT   port	is either invalid or null.

DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, ALgetfd(3dm) returns a	valid file descriptor.
     Otherwise,	ALgetfd(3dm) returns -1	and sets an error number which can be
     retrieved with oserror(3C).

SEE ALSO    [Toc]    [Back]

      
      
     ALsetfillpoint(3dm), ALgetfillpoint(3dm), ALopenport(3dm),	select(2),
     poll(2), oserror(3C)
alGetFD(3dm)							  alGetFD(3dm)


NAME    [Toc]    [Back]

     alGetFD - get the file descriptor for an audio port

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audio.h>

     int alGetFD(ALport	port)

PARAMETER    [Toc]    [Back]

     port   expects the	ALport structure whose file descriptor you desire.
	    This structure is the returned value of an alOpenPort(3dm) call.

DESCRIPTION    [Toc]    [Back]

     alGetFD() returns a file descriptor that you can use to construct the
     arguments to a select(2)  or poll(2) call.

     These calls are used when you want	to block a process until the device
     fills or empties the audio	port past a fillpoint (see the
     alSetFillPoint(3dm) manual	page). At that time, select(2) and poll(2)
     return, and your code can continue	processing the audio ports.  If	the
     device has	already	filled or emptied the audio port buffer	past the
     fillpoint when you	make the call, control returns to your program
     immediately.

     When using	select(2), an input port's file	descriptor is used in a	read
     fdset and an output port's	file descriptor	is used	in a write fdset.

     When using	poll(2), an input port's file descriptor is used with the
     POLLIN event flag and an output port's file descriptor is used with a
     POLLOUT event flag.

     Several AL	functions implicitly change the	current	fillpoint value.
     Therefore,	alSetFillPoint(3dm) must be called immediately before a
     select(2) or poll(2) call which uses an audio file	descriptor.

DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, alGetFD returns a valid file descriptor.
     Otherwise,	alGetFD	returns	-1 and sets an error number which can be
     retrieved with oserror(3C).

     alGetFD can fail for the following	reason:

     AL_BAD_PORT   port	is either invalid or null.

SEE ALSO    [Toc]    [Back]

      
      
     alSetFillPoint(3dm), alGetFillPoint(3dm), alOpenPort(3dm),	select(2),
     poll(2), oserror(3C)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
alGetFD IRIX get the file descriptor for an audio port
ALopenport IRIX (obsolete) open an audio port
ALcloseport IRIX (obsolete) releases resources of an audio port
ALwritesamps IRIX (obsolete) write samples to an audio port
ALreadsamps IRIX (obsolete) read samples from an audio port
ALgetfillpoint IRIX (obsolete) control select() or poll() behavior of an audio port
ALgetqueuesize IRIX (obsolete) get/set audio port buffer size information in an ALconfig structure
ALgetfilled IRIX (obsolete) return the number of filled sample locations in an audio port
ALgetfillable IRIX (obsolete) report the number of unfilled sample locations in an audio port
ALqueryparams IRIX (obsolete) get descriptor/description pairs for audio device state variables
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service