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

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

Contents


afGetRate(3dm)							afGetRate(3dm)


NAME    [Toc]    [Back]

     afGetRate,	afGetVirtualRate - get the track/virtual sample	rate for a
     specified audio track from	an AFfilehandle	structure

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     double afGetRate(AFfilehandle file, int track)

     double afGetVirtualRate(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	contain	exactly	1
	     audio track per file, the value AF_DEFAULT_TRACK should always be
	     used for this argument for	now.

RETURN VALUE    [Toc]    [Back]

     afGetRate() returns a positive double-precision floating point value
     which specifies the audio sample rate in Hz of the	data in	track.
     afGetVirtualRate()	returns	a positive double-precision floating point
     value which specifies the virtual audio sampling rate in Hz of the	data
     in	track as set by	a previous call	to afSetVirtualRate(3dm).  -1.0	is
     returned in case of error.

DESCRIPTION    [Toc]    [Back]

     afGetRate() and afGetVirtualRate()	return,	in Hz.,	the file and virtual
     sampling rates, respectively, of the data associated with the specified
     track in an audio file.  The sampling rate	is returned as a doubleprecision
 floating-point value.

     For example, a CD-quality audio track would return	a sample rate value of
     44100.0.

CAVEATS    [Toc]    [Back]

     afGetRate() may return any	conceivable sampling rate. Programs should
     check that	the sampling rate of a file opened for reading is a value it
     can deal with, or use the virtual rate setting to make it so.

SEE ALSO    [Toc]    [Back]

      
      
     afOpenFile(3dm), afInitRate(3dm), afSetVirtualRate(3dm)
afGetRate(3dm)							afGetRate(3dm)


NAME    [Toc]    [Back]

     afGetRate,	afGetVirtualRate - get the track/virtual sample	rate for a
     specified audio track from	an AFfilehandle	structure

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     double afGetRate(AFfilehandle file, int track)

     double afGetVirtualRate(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	contain	exactly	1
	     audio track per file, the value AF_DEFAULT_TRACK should always be
	     used for this argument for	now.

RETURN VALUE    [Toc]    [Back]

     afGetRate() returns a positive double-precision floating point value
     which specifies the audio sample rate in Hz of the	data in	track.
     afGetVirtualRate()	returns	a positive double-precision floating point
     value which specifies the virtual audio sampling rate in Hz of the	data
     in	track as set by	a previous call	to afSetVirtualRate(3dm).  -1.0	is
     returned in case of error.

DESCRIPTION    [Toc]    [Back]

     afGetRate() and afGetVirtualRate()	return,	in Hz.,	the file and virtual
     sampling rates, respectively, of the data associated with the specified
     track in an audio file.  The sampling rate	is returned as a doubleprecision
 floating-point value.

     For example, a CD-quality audio track would return	a sample rate value of
     44100.0.

CAVEATS    [Toc]    [Back]

     afGetRate() may return any	conceivable sampling rate. Programs should
     check that	the sampling rate of a file opened for reading is a value it
     can deal with, or use the virtual rate setting to make it so.

SEE ALSO    [Toc]    [Back]

      
      
     afOpenFile(3dm), afInitRate(3dm), afSetVirtualRate(3dm)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
AFgetsampfmt IRIX get the track / virtual sample format or byte order for a specified audio track from an AFfilehandle structure
afGetFrameSize IRIX get the track / virtual frame size in bytes for a specified audio track from an AFfilehandle structure
AFgetchannels IRIX get the number of interleaved track / virtual channels from an AFfilehandle structure for an audio track
afGetPCMMapping IRIX get the track / virtual PCM mapping values 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
AFgetcompression IRIX get the compression type and parameters for an audio track from an AFfilehandle structure
AFgetaeschanneldata IRIX get/set AES channel status information in an AFfilehandle structure for an audio track
AFgetframecnt IRIX get the total sample frame count / data bytes / data offset for a specified audio track from an AFfilehandle s
afGetFormatParams IRIX get the audio data format in an AFfilehandle for a specified audio track via dmParams
AFreadframes IRIX read sample frames from a specified audio track in an audio file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service