source: trunk/third/audiofile/docs/afSeekFrame @ 17099

Revision 17099, 1.2 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17098, which included commits to RCS files with non-trunk default branches.
Line 
1afSeekFrame moves the logical file pointer for a specified audio track
2to a desired sample frame location.
3
4afTellFrame retrieves current value of a file read or write pointer.
5
6SYNOPSIS
7
8#include <audiofile.h>
9
10AFframecount afSeekFrame (const AFfilehandle file, int track,
11        AFframecount frameoffset);
12
13AFframecount afTellFrame (const AFfilehandle file, int track);
14
15PARAMETERS
16
17file is an AFfilehandle structure which has been created by
18afOpenFile.
19
20track is an integer which refers to an audio track within a file.  The
21constant AF_DEFAULT_TRACK should always be used for this parameter
22since no currently supported file formats support more than one track
23per file.
24
25frameoffset is an offset measured in sample frames.  This value must be
26greater than or equal to zero and strictly less than the number of
27sample frames contained within the specified audio track.  If
28frameoffset is -1, afSeekFrame() will return the current frame.
29
30RETURN VALUE
31
32On successful completion, the value returned from afSeekFrame and
33afTellFrame is the current file pointer location as measured in sample
34frames from the start of the audio track.
35
36ERROR VALUES
37
38The following errors could be generated by afSeekFrame or afTellFrame:
39AF_BAD_LSEEK
Note: See TracBrowser for help on using the repository browser.