Displaying 1 result from an estimated 1 matches for "readfrompackfile".
2004 Apr 17
1
Reading OGG embedded in a pack file
...t an arbitary point in a stream. The original code (which works) that opens a stream, then reads in the OGG data starts like this:
// Read from an already open stream.
// Assumes 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;
call...