search for: openogg

Displaying 1 result from an estimated 1 matches for "openogg".

Did you mean: opening
2004 Feb 11
1
Problem using 'ov_open()'...
...u can figure this out. #include <vorbis\codec.h> #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(pF...