search for: decodeogglow

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

2004 Feb 11
1
Problem using 'ov_open()'...
...e <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(pFile); } bool OGGDATA::OpenOGG(cha...
2004 Feb 18
1
Precache an entire OGG?
...eezes the application. Here is y source for the decode/precache function. Why is it just freezing? I've let it run for about three minutes, thinking it was doing some heavy decoding, but I was wrong. Once this is fixed I'll release this player. Thanks for the help! pSOUNDDATA OGGDATA::DecodeOGGLow() { int StreamID; unsigned int Size, Read; unsigned int Location, numStreams; pSOUNDDATA pData; if(pFile == NULL) return NULL; if((pData = (pSOUNDDATA)malloc(sizeof(sSOUNDDATA))) == NULL) return NULL; pData->Length = ov_pcm_total(&sOVFile, -1); if((pData->Buff...