search for: oggdata

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

2004 Feb 11
1
Problem using 'ov_open()'...
...gets passed around, and my entire OGG class. Maybe one of you 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 != N...
2004 Feb 18
1
Precache an entire OGG?
...oop or freezes 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((...