[vorbis-dev] Problem with 'ov_open'...

Ryan Ashley Lord_Dakron at hotmail.com
Mon Feb 9 11:49:09 PST 2004



Hey, I've coded an OGG player for Win32 (it uses AL for playback so it's portable to Linux/Mac), but every time the program gets to the 'ov_open()' function, the app completely freezes, and I have to use the task-manager to kill it.  I am supplying it with a valid file handle that was just opened (FILE*) and the vorbis file is also a pointer that is not in use (set to null).  Any ideas why this is happenening?  Here is my actual source.

FILE *SoundFile;
OggVorbis_File *OVFile;

if(SoundFile != NULL)
  CloseOGG();

if((SoundFile = fopen(Filename, "rb")) == NULL)
  return false;

if((ov_open(SoundFile, OVFile, NULL, 0)) < 0)
  return false;

I've put debug messages that my log-class logs, and it logs everything just fine up to the ov_open() check, then nothing.

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list