コード例 #1
0
ファイル: sound_stream.c プロジェクト: Oppen/Wolf3DRedux
/**
 * \brief OGG seek Callback. Moves the file pointer to a specified location.
 * \param[in] datasource Music track data structure.
 * \param[in] offset Number of bytes from whence.
 * \param[in] whence Initial position.
 * \return If successful, fseek returns 0. Otherwise, it returns a nonzero value.
 * \note
 */
PRIVATE int ovc_seek( void *datasource, ogg_int64_t offset, int whence )
{
	musicTrack_t	*track = (musicTrack_t *)datasource;

	return FS_FileSeek( track->hFile, offset, whence );
}
コード例 #2
0
ファイル: oggfile.c プロジェクト: Anters/Wolf3D-iOS
PRIVATE int ovc_seek( void *dataSource, ogg_int64_t offset, int whence )
{	
	return FS_FileSeek( fh, offset, whence );
}