Displaying 1 result from an estimated 1 matches for "sdl_seek_func".
2004 Apr 17
1
Reading OGG embedded in a pack file
...s stream is positioned to start of OGG data
// Not a complete function, just enought to show what I am trying to do
void readFromPackfile( FILE * pStream )
{
OggVorbis_File vf;
ov_callbacks callbacks;
vorbis_info *info;
callbacks.read_func = sdl_read_func;
callbacks.seek_func = sdl_seek_func; // Will setting this to NULL let me read from the middle of a stream?
callbacks.tell_func = sdl_tell_func;
callbacks.close_func = sdl_close_func;
if ( ov_open_callbacks( pStream, &vf, NULL, 0, callbacks)==0 )
{
// Valid OGG data, so do some code here to read it in.....