RE: [GD-Windows] MP3 Playback under Windows
Brought to you by:
vexxed72
From: Brian H. <pu...@py...> - 2001-09-25 00:30:18
|
> I think you are able to tell ov_open where you want to start > in the file (after all you have to pass in an already opened > file pointer) and it should know how big the stream is so in > theory it should work though I haven't tested it myself. What I meant is that FILE assumes a regular streamed file a la fopen/fread style of operation. Most games eventually ship with a single large archive file (sometimes compressed) such as the various PAK, PK2, PK3 and WAD files that id has used. Unless you decompress the data into the file system at installation, you're not going to be able to use a regular FILE oriented interface to stream data. Now, the _right_ thing that Ogg Vorbis should have done is to use a callback system instead of manipulating a FILE pointer directly. That way you could stream data out of any source -- network, filesystem or archive file -- transparently to the decoding layer. Brian |