search for: psounddata

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

2004 Feb 11
1
Problem using 'ov_open()'...
...the structure that 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() {...
2004 Feb 18
1
Precache an entire OGG?
...s up in a loop 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)...