search for: closeogg

Displaying 2 results from an estimated 2 matches for "closeogg".

Did you mean: closelog
2004 Feb 09
3
Problem with 'ov_open'...
...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 archive...
2004 Feb 11
1
Problem using 'ov_open()'...
...#include <vorbis\vorbisfile.h> #include <stdio.h> typedef struct tagSOUNDDATA { char *Buffer; int Channels, Length, Frequency; } sSOUNDDATA, *pSOUNDDATA; class OGGDATA { public: OGGDATA(); ~OGGDATA(); bool OpenOGG(char*); pSOUNDDATA DecodeOGGLow(); void CloseOGG(pSOUNDDATA); private: FILE *pFile; OggVorbis_File *pOVFile; }; OGGDATA::OGGDATA() { pFile = NULL; pOVFile = NULL; } OGGDATA::~OGGDATA() { if(pOVFile != NULL) ov_clear(pOVFile); if(pFile != NULL) fclose(pFile); } bool OGGDATA::OpenOGG(char *Filename) { in...