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