2009-01-15 06:48:15 +00:00
|
|
|
#ifndef _PLUGINDSP_H
|
|
|
|
#define _PLUGINDSP_H
|
|
|
|
|
|
|
|
#include "pluginspecs_dsp.h"
|
|
|
|
#include "Plugin.h"
|
|
|
|
|
|
|
|
namespace Common {
|
2009-02-20 22:04:52 +00:00
|
|
|
|
|
|
|
typedef void (__cdecl* TDSP_WriteMailBox)(bool _CPUMailbox, unsigned short);
|
|
|
|
typedef unsigned short (__cdecl* TDSP_ReadMailBox)(bool _CPUMailbox);
|
|
|
|
typedef unsigned short (__cdecl* TDSP_ReadControlRegister)();
|
|
|
|
typedef unsigned short (__cdecl* TDSP_WriteControlRegister)(unsigned short);
|
|
|
|
typedef void (__cdecl* TDSP_SendAIBuffer)(unsigned int address, int sample_rate);
|
|
|
|
typedef void (__cdecl* TDSP_Update)(int cycles);
|
|
|
|
typedef void (__cdecl* TDSP_StopSoundStream)();
|
|
|
|
|
|
|
|
class PluginDSP : public CPlugin
|
|
|
|
{
|
|
|
|
public:
|
2009-01-15 06:48:15 +00:00
|
|
|
PluginDSP(const char *_Filename);
|
2009-02-21 12:07:03 +00:00
|
|
|
virtual ~PluginDSP();
|
2009-01-15 06:48:15 +00:00
|
|
|
virtual bool IsValid() {return validDSP;};
|
|
|
|
|
2009-02-20 22:04:52 +00:00
|
|
|
TDSP_ReadMailBox DSP_ReadMailboxHigh;
|
|
|
|
TDSP_ReadMailBox DSP_ReadMailboxLow;
|
|
|
|
TDSP_WriteMailBox DSP_WriteMailboxHigh;
|
2009-01-15 06:48:15 +00:00
|
|
|
TDSP_WriteMailBox DSP_WriteMailboxLow;
|
|
|
|
TDSP_ReadControlRegister DSP_ReadControlRegister;
|
|
|
|
TDSP_WriteControlRegister DSP_WriteControlRegister;
|
2009-02-20 22:04:52 +00:00
|
|
|
TDSP_SendAIBuffer DSP_SendAIBuffer;
|
2009-01-15 06:48:15 +00:00
|
|
|
TDSP_Update DSP_Update;
|
2009-02-20 22:04:52 +00:00
|
|
|
TDSP_StopSoundStream DSP_StopSoundStream;
|
2009-01-15 06:48:15 +00:00
|
|
|
|
2009-02-20 22:04:52 +00:00
|
|
|
private:
|
2009-01-15 06:48:15 +00:00
|
|
|
bool validDSP;
|
|
|
|
|
2009-02-20 22:04:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
2009-01-15 06:48:15 +00:00
|
|
|
|
|
|
|
#endif
|