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

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

Contents


alDiscardFrames(3dm)					  alDiscardFrames(3dm)


NAME    [Toc]    [Back]

     alDiscardFrames - discard audio from an audio port

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audio.h>

     int alDiscardFrames(ALport	port, int framecount)

PARAMETER    [Toc]    [Back]

     port	  is the audio port from which you want	to discard samples.
		  This is the returned value of	an alOpenPort(3dm) call.

     framecount	  expects the number of	sample frames that you wish to
		  discard.

DESCRIPTION    [Toc]    [Back]

     alDiscardFrames removes samples from an input or output audio port	and
     throws them away. Its behavior differs slightly between input and output
     ports.

     For an input port,	alDiscardFrames	discards an arbitrary number of	sample
     frames. If	the given framecount exceeds the number	of audio sample	frames
     in	the port, alDiscardFrames will block until the given number of frames
     have been discarded. It is	thus functionally equivalent to	calling
     alReadFrames(3dm) and discarding the data,	except that alDiscardFrames is
     simpler and more efficient.

     For an output port, alDiscardFrames discards at most as many sample
     frames as are in the port,	and returns immediately.

     In	either case, the samples are discarded from the	end of the audio queue
     closest to	the application: on input, the next samples to be read are
     discarded;	on output, the most recent samples written are discarded.

DIAGNOSTICS    [Toc]    [Back]

     Upon successful completion, alDiscardFrames returns the number of frames
     discarded.	Otherwise, it returns -1 and sets an error number which	can be
     retrieved with oserror(3C).

     alDiscardFrames can fail for the following	reasons:

     AL_BAD_PORT	    port is invalid.

     AL_BAD_FILLPOINT	    framecount is less than zero.

SEE ALSO    [Toc]    [Back]

      
      
     alOpenPort(3dm), alReadFrames(3dm), oserror(3C)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
alReadBuffers IRIX read flexibly interleaved or non-interleaved audio data from an audio port
alWriteBuffers IRIX write flexibly interleaved or non-interleaved audio data to an audio port
passthru IRIX pass audio sample data from an input port to an output port
alOpenPort IRIX open an audio port
alGetResource IRIX get the resource associated with an audio port
alClosePort IRIX close an audio port
ALopenport IRIX (obsolete) open an audio port
alGetFD IRIX get the file descriptor for an audio port
alGetQueueSize IRIX get/set audio port buffer size
ALcloseport IRIX (obsolete) releases resources of an audio port
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service