예제 #1
0
static off_t mp3_seek (void *f, off_t offset, int whence)
{
	if (f == NULL) return (-1);
	if (FS_fseek((fshandle_t *)f, (long) offset, whence) < 0)
		return (off_t)-1;
	return (off_t) FS_ftell((fshandle_t *)f);
}
예제 #2
0
static long MID2STREAM_seek (long offset, int whence)
{
	if (FS_fseek(&midi_fh, offset, whence) != 0)
		return -1;
	return FS_ftell(&midi_fh);
}
예제 #3
0
static int ovc_fseek (void *f, ogg_int64_t off, int whence)
{
    if (f == NULL) return (-1);
    return FS_fseek((fshandle_t *)f, (long) off, whence);
}
예제 #4
0
static int MIK_Seek (MREADER *r, long ofs, int whence)
{
	return FS_fseek(((mik_priv_t *)r)->fh, ofs, whence);
}