コード例 #1
0
ファイル: snd_mpg123.c プロジェクト: ACIIL/Quakespasm-Rift
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
ファイル: mid2strm.c プロジェクト: svn2github/uhexen2
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
ファイル: snd_vorbis.c プロジェクト: yibble/Quakespasm-Rift
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
ファイル: snd_mikmod.c プロジェクト: Darktori/vkQuake
static int MIK_Seek (MREADER *r, long ofs, int whence)
{
	return FS_fseek(((mik_priv_t *)r)->fh, ofs, whence);
}