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

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

Contents


afSeekFrame(3dm)					      afSeekFrame(3dm)


NAME    [Toc]    [Back]

     afSeekFrame, afTellFrame -	move logical file read pointer for a specified
     audio track to a desired sample frame location / retrieve current value
     of	file read or write pointer.

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     AFframecount afSeekFrame(const AFfilehandle file, int track,
			      AFframecount frameoffset)

     AFframecount afTellFrame(const AFfilehandle file, int track)

PARAMETER    [Toc]    [Back]

     file     is an AFfilehandle structure, previously returned	by
	      afOpenFile(3dm), afOpenFD(3dm), or afOpenNamedFD(3dm).

     track    is an integer which identifies an	audio track within a file
	      which is open for	read access.

	      Since all	currently supported file formats contain one audio
	      track per	file, the constant value AF_DEFAULT_TRACK should
	      always be	used here for now.

     frameoffset
	      is a sample frame	location of type AFframecount with a value
	      between 0	and the	total number of	sample frames in the track
	      minus one.  If frameoffset is set	to -1, afSeekFrame() will
	      return the current location in the file.

RETURN VALUE    [Toc]    [Back]

     On	successful completion, afSeekFrame() returns the new file pointer
     location measured in sample frames	from the beginning of the audio	track.
     afTellFrame() returns the current pointer location.  On an	error, a
     negative value is returned.  The return type AFframecount is large	enough
     to	hold the maximum possible frame	offset.

DESCRIPTION    [Toc]    [Back]

     afSeekFrame() repositions the logical audio sample	read pointer to	offset
     sample frames from	the beginning of the track. A call to
     afReadFrames(3dm) following a call	afSeekFrame() will return sample data
     beginning at the updated file pointer location.  afTellFrame() is used to
     query the current value, and functions identically	to the call
     afSeekFrame(file, AF_DEFAULT_TRACK, -1);

EXAMPLE    [Toc]    [Back]

     To	seek to	the 10000th <left, right> sample pair in a stereo AIFF-C file,
     call afSeekFrame()	with offset set	to 10000.







									Page 1






afSeekFrame(3dm)					      afSeekFrame(3dm)



SEE ALSO
     afOpenFile(3dm), afReadFrames(3dm), afSaveFilePosition(3dm)
afSeekFrame(3dm)					      afSeekFrame(3dm)


NAME    [Toc]    [Back]

     afSeekFrame, afTellFrame -	move logical file read pointer for a specified
     audio track to a desired sample frame location / retrieve current value
     of	file read or write pointer.

SYNOPSIS    [Toc]    [Back]

     #include <dmedia/audiofile.h>

     AFframecount afSeekFrame(const AFfilehandle file, int track,
			      AFframecount frameoffset)

     AFframecount afTellFrame(const AFfilehandle file, int track)

PARAMETER    [Toc]    [Back]

     file     is an AFfilehandle structure, previously returned	by
	      afOpenFile(3dm), afOpenFD(3dm), or afOpenNamedFD(3dm).

     track    is an integer which identifies an	audio track within a file
	      which is open for	read access.

	      Since all	currently supported file formats contain one audio
	      track per	file, the constant value AF_DEFAULT_TRACK should
	      always be	used here for now.

     frameoffset
	      is a sample frame	location of type AFframecount with a value
	      between 0	and the	total number of	sample frames in the track
	      minus one.  If frameoffset is set	to -1, afSeekFrame() will
	      return the current location in the file.

RETURN VALUE    [Toc]    [Back]

     On	successful completion, afSeekFrame() returns the new file pointer
     location measured in sample frames	from the beginning of the audio	track.
     afTellFrame() returns the current pointer location.  On an	error, a
     negative value is returned.  The return type AFframecount is large	enough
     to	hold the maximum possible frame	offset.

DESCRIPTION    [Toc]    [Back]

     afSeekFrame() repositions the logical audio sample	read pointer to	offset
     sample frames from	the beginning of the track. A call to
     afReadFrames(3dm) following a call	afSeekFrame() will return sample data
     beginning at the updated file pointer location.  afTellFrame() is used to
     query the current value, and functions identically	to the call
     afSeekFrame(file, AF_DEFAULT_TRACK, -1);

EXAMPLE    [Toc]    [Back]

     To	seek to	the 10000th <left, right> sample pair in a stereo AIFF-C file,
     call afSeekFrame()	with offset set	to 10000.







									Page 1






afSeekFrame(3dm)					      afSeekFrame(3dm)



SEE ALSO
     afOpenFile(3dm), afReadFrames(3dm), afSaveFilePosition(3dm)


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
afSaveFilePosition IRIX save and retrieve logical audio sample read pointer
AFreadmisc IRIX read from / write to / move logical read/write pointer for data in a miscellaneous chunk in an audio file
AFreadframes IRIX read sample frames from a specified audio track in an audio file
AFwriteframes IRIX write audio sample frames to a specified track in an audio file
AFgetframecnt IRIX get the total sample frame count / data bytes / data offset for a specified audio track from an AFfilehandle s
lseek IRIX move read/write file pointer
lseek HP-UX move read/write file pointer; seek
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
afGetFrameSize IRIX get the track / virtual frame size in bytes for a specified audio track from an AFfilehandle structure
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service