XDF_SEEK(3) | xdffileio library manual | XDF_SEEK(3) |
xdf_seek - move the sample pointer of a xDF file
#include <xdfio.h>
off_t xdf_seek(struct xdf* xdf, off_t offset, int whence);
xdf_seek() repositions the current sample pointer according to the couple (offset,whence) where whence can be:
The file referenced by xdf should have been opened with mode XDF_READ and xdf_prepare_arrays(3) should have been successfully called on it.
Upon successful completion, xdf_seek() returns the resulting offset location as measured in number of samples from the beginning of the recording. Otherwise, a value of -1 is returned and errno is set to indicate the error.
2010 | EPFL |