snes9x/win32/CFMODEx.h

40 lines
699 B
C
Raw Normal View History

2010-09-25 15:46:12 +00:00
#ifndef CFMODEX_H
#define CFMODEX_H
#include "../../FMODEx/api/inc/fmod.hpp"
#include "IS9xSoundOutput.h"
class CFMODEx: public IS9xSoundOutput
{
bool initDone;
FMOD::System *fmodSystem;
FMOD::Sound *fmodStream;
int sampleCount;
int bufferSize;
bool InitFMODEx();
void DeInitFMODEx();
bool InitStream();
void DeInitStream();
static FMOD_RESULT F_CALLBACK FMODExStreamCallback(
FMOD_SOUND * sound,
void * data,
unsigned int datalen
);
public:
CFMODEx(void);
~CFMODEx(void);
// Inherited from IS9xSoundOutput
bool InitSoundOutput(void) { return InitFMODEx(); }
void DeInitSoundOutput(void) { DeInitFMODEx(); }
bool SetupSound();
void ProcessSound();
};
#endif