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

  man pages->IRIX man pages -> audiofile/AFgetchannels (3d)              
Title
Content
Arch
Section
 

Contents


afGetChannels(3dm)					    afGetChannels(3dm)


NAME    [Toc]    [Back]

     afGetChannels, afGetVirtualChannels - get the number of interleaved track
     / virtual channels	from an	AFfilehandle structure for an audio track

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     int afGetChannels(AFfilehandle file, int track)

     int afGetVirtualChannels(AFfilehandle file, int track)

PARAMETER    [Toc]    [Back]

     file    is	an AFfilehandle	structure, previously created by a call	to
	     afOpenFile(3dm).

     track   is	an integer which identifies the	audio track in the file.
	     Since all currently supported file	formats	allow at most one
	     audio track per file, the constant	value AF_DEFAULT_TRACK should
	     always be used for	this argument.

RETURN VALUE    [Toc]    [Back]

     afGetChannels() and afGetVirtualChannels()	return a nonnegative integer
     value if successful, or -1	on failure.

DESCRIPTION    [Toc]    [Back]

     afGetChannels() returns the number	of interleaved channels	in the
     specified audio track in the file represented by the AFfilehandle
     argument.

     For example, the audio track in a stereo AIFF-C file contains 2
     interleaved channels.  The	audio track in a mono AIFF-C file contains 1
     channel.

     afGetVirtualChannels() returns the	number of virtual interleaved channels
     in	the specified audio track represented by the AFfilehandle argument, as
     set by the	most recent call to afSetVirtualChannels(3dm).	The default
     value is the number of channels in	the track's underlying file.  See
     afIntro(3dm) for an explanation of	virtual	format.

CAVEATS    [Toc]    [Back]

     afGetChannels() may return	any number of channels,	even for AIFF/AIFF-C
     files.  Be	sure to	check the number of channels of	any file opened	for
     reading and make sure your	program	can handle that	number.	 See
     afSetVirtualChannels(3dm) for a technique for dealing with	files with
     unexpected	numbers	of channels in a simple	and clean way.

SEE ALSO    [Toc]    [Back]

      
      
     afOpenFile(3dm), afReadFrames(3dm), afInitChannels(3dm),
     afSetVirtualChannels(3dm)
afGetChannels(3dm)					    afGetChannels(3dm)


NAME    [Toc]    [Back]

     afGetChannels, afGetVirtualChannels - get the number of interleaved track
     / virtual channels	from an	AFfilehandle structure for an audio track

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     int afGetChannels(AFfilehandle file, int track)

     int afGetVirtualChannels(AFfilehandle file, int track)

PARAMETER    [Toc]    [Back]

     file    is	an AFfilehandle	structure, previously created by a call	to
	     afOpenFile(3dm).

     track   is	an integer which identifies the	audio track in the file.
	     Since all currently supported file	formats	allow at most one
	     audio track per file, the constant	value AF_DEFAULT_TRACK should
	     always be used for	this argument.

RETURN VALUE    [Toc]    [Back]

     afGetChannels() and afGetVirtualChannels()	return a nonnegative integer
     value if successful, or -1	on failure.

DESCRIPTION    [Toc]    [Back]

     afGetChannels() returns the number	of interleaved channels	in the
     specified audio track in the file represented by the AFfilehandle
     argument.

     For example, the audio track in a stereo AIFF-C file contains 2
     interleaved channels.  The	audio track in a mono AIFF-C file contains 1
     channel.

     afGetVirtualChannels() returns the	number of virtual interleaved channels
     in	the specified audio track represented by the AFfilehandle argument, as
     set by the	most recent call to afSetVirtualChannels(3dm).	The default
     value is the number of channels in	the track's underlying file.  See
     afIntro(3dm) for an explanation of	virtual	format.

CAVEATS    [Toc]    [Back]

     afGetChannels() may return	any number of channels,	even for AIFF/AIFF-C
     files.  Be	sure to	check the number of channels of	any file opened	for
     reading and make sure your	program	can handle that	number.	 See
     afSetVirtualChannels(3dm) for a technique for dealing with	files with
     unexpected	numbers	of channels in a simple	and clean way.

SEE ALSO    [Toc]    [Back]

      
      
     afOpenFile(3dm), afReadFrames(3dm), afInitChannels(3dm),
     afSetVirtualChannels(3dm)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
afGetFrameSize IRIX get the track / virtual frame size in bytes for a specified audio track from an AFfilehandle structure
afGetPCMMapping IRIX get the track / virtual PCM mapping values for a specified audio track from an AFfilehandle structure
AFgetrate IRIX get the track/virtual sample rate for a specified audio track from an AFfilehandle structure
AFgetsampfmt IRIX get the track / virtual sample format or byte order for a specified audio track from an AFfilehandle structure
afSetVirtualFormatParams IRIX set/get the virtual audio data format in an AFfilehandle for a specified audio track via dmParams
AFgetaeschanneldata IRIX get/set AES channel status information in an AFfilehandle structure for an audio track
AFgetcompression IRIX get the compression type and parameters for an audio track from an AFfilehandle structure
afGetFormatParams IRIX get the audio data format in an AFfilehandle for a specified audio track via dmParams
AFsetloopstart IRIX set the start/end markers, play mode, and track in an AFfilehandle structure for a specified loop.
AFgetloopstart IRIX get the start/end markers, play mode, and track from an AFfilehandle structure for a specified loop.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service