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

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

Contents


ALcloseport(3dm)					      ALcloseport(3dm)


NAME    [Toc]    [Back]

     ALcloseport - (obsolete) releases resources of an audio port

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audio.h>

     int ALcloseport(ALport port)

PARAMETER    [Toc]    [Back]

     port   expects the	ALport structure for the audio port you	want to
	    deallocate.	 This structure	is the returned	value of the
	    ALopenport(3dm) call.

DESCRIPTION    [Toc]    [Back]

     ALcloseport is obsolete and is provided for backward compatibility. The
     preferred method of closing an audio port is via alClosePort(3dm).

     ALcloseport(3dm) releases port's resources	back to	the system.  Any
     activity on the port is terminated	when you call ALcloseport(3dm).	 For
     output ports, any samples remaining in the	port will not be output.  For
     input ports, any samples remaining	in the port will be lost.  Since port
     will be deallocated, it should not	be used	in any subsequent audio
     library function calls.

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

     AL_BAD_PORT   port	is either invalid or null.

DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, ALcloseport(3dm) returns 0. Otherwise
     ALcloseport(3dm) returns -1 and sets an error number which	can be
     retrieved using oserror(3C).

SEE ALSO    [Toc]    [Back]

      
      
     ALopenport(3dm), oserror(3C)
alClosePort(3dm)					      alClosePort(3dm)


NAME    [Toc]    [Back]

     alClosePort - close an audio port

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audio.h>

     int alClosePort(ALport port)

PARAMETER    [Toc]    [Back]

     port   expects the	ALport structure for the audio port you	want to	close.
	    This structure is the returned value of the	alOpenPort(3dm)	call.

DESCRIPTION    [Toc]    [Back]

     alClosePort closes	the given audio	port and frees the associated
     resources.

     Any activity on the port is terminated when you call alClosePort.	For
     output ports, any samples remaining in the	port will not be output.  For
     input ports, any samples remaining	in the port will be lost.  Since port
     will be deallocated, it cannot be used in any subsequent audio library
     function calls.

DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, alClosePort returns 0.	Otherwise
     alClosePort(3dm) returns -1 and sets an error number which	can be
     retrieved using oserror(3C).

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

     AL_BAD_PORT   port	is either invalid or null.

SEE ALSO    [Toc]    [Back]

      
      
     alOpenPort(3dm), oserror(3C)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
ALopenport IRIX (obsolete) open an audio port
ALreadsamps IRIX (obsolete) read samples from an audio port
ALwritesamps IRIX (obsolete) write samples to an audio port
ALgetfd IRIX (obsolete) get the file descriptor for an audio port
ALgetfillpoint IRIX (obsolete) control select() or poll() behavior of an audio port
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
ALgetqueuesize IRIX (obsolete) get/set audio port buffer size information in an ALconfig structure
passthru IRIX pass audio sample data from an input port to an output port
ALgetframenumber IRIX (obsolete) Get the absolute sample frame number associated with a port
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service