Displaying 2 results from an estimated 2 matches for "ssounddata".
Did you mean:
psounddata
2004 Feb 11
1
Problem using 'ov_open()'...
...Below is both 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::~OG...
2004 Feb 18
1
Precache an entire OGG?
...s 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->Buffer = (char*)malloc(pData->Length)) == NULL)
{
free(pData);
return NULL;
}
pOVInfo = ov_info(&sOVFile, -1);
pData->Frequency = pOVInfo->rate;
if(pOVInfo->chan...