summaryrefslogtreecommitdiff
path: root/docs/afSeekFrame
diff options
context:
space:
mode:
authorGraydon, Tracy <tracy.graydon@intel.com>2012-11-28 18:07:32 -0800
committerGraydon, Tracy <tracy.graydon@intel.com>2012-11-28 18:07:32 -0800
commitf9151a123d7943fb7e944a38b1aa835c03b0188e (patch)
treee7dfd84705f5db614d08449cb3e70c4dad74ff97 /docs/afSeekFrame
downloadaudiofile-f9151a123d7943fb7e944a38b1aa835c03b0188e.tar.gz
audiofile-f9151a123d7943fb7e944a38b1aa835c03b0188e.tar.bz2
audiofile-f9151a123d7943fb7e944a38b1aa835c03b0188e.zip
Diffstat (limited to 'docs/afSeekFrame')
-rw-r--r--docs/afSeekFrame39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/afSeekFrame b/docs/afSeekFrame
new file mode 100644
index 0000000..eb7315f
--- /dev/null
+++ b/docs/afSeekFrame
@@ -0,0 +1,39 @@
+afSeekFrame moves the logical file pointer for a specified audio track
+to a desired sample frame location.
+
+afTellFrame retrieves current value of a file read or write pointer.
+
+SYNOPSIS
+
+#include <audiofile.h>
+
+AFframecount afSeekFrame (const AFfilehandle file, int track,
+ AFframecount frameoffset);
+
+AFframecount afTellFrame (const AFfilehandle file, int track);
+
+PARAMETERS
+
+file is an AFfilehandle structure which has been created by
+afOpenFile.
+
+track is an integer which refers to an audio track within a file. The
+constant AF_DEFAULT_TRACK should always be used for this parameter
+since no currently supported file formats support more than one track
+per file.
+
+frameoffset is an offset measured in sample frames. This value must be
+greater than or equal to zero and strictly less than the number of
+sample frames contained within the specified audio track. If
+frameoffset is -1, afSeekFrame() will return the current frame.
+
+RETURN VALUE
+
+On successful completion, the value returned from afSeekFrame and
+afTellFrame is the current file pointer location as measured in sample
+frames from the start of the audio track.
+
+ERROR VALUES
+
+The following errors could be generated by afSeekFrame or afTellFrame:
+AF_BAD_LSEEK