2012-11-06 05:21:00 +00:00
|
|
|
#ifndef OPL_H
|
|
|
|
#define OPL_H
|
|
|
|
|
|
|
|
#include "zstring.h"
|
|
|
|
|
|
|
|
// Abstract base class for OPL emulators
|
|
|
|
|
|
|
|
class OPLEmul
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
OPLEmul() {}
|
|
|
|
virtual ~OPLEmul() {}
|
|
|
|
|
|
|
|
virtual void Reset() = 0;
|
2012-11-08 05:45:58 +00:00
|
|
|
virtual void WriteReg(int reg, int v) = 0;
|
2012-11-06 05:21:00 +00:00
|
|
|
virtual void Update(float *buffer, int length) = 0;
|
|
|
|
virtual void SetPanning(int c, int pan) = 0;
|
|
|
|
virtual FString GetVoiceString() { return FString(); }
|
|
|
|
};
|
|
|
|
|
2012-11-08 05:45:58 +00:00
|
|
|
OPLEmul *YM3812Create(bool stereo);
|
|
|
|
OPLEmul *DBOPLCreate(bool stereo);
|
|
|
|
|
2012-11-06 05:21:00 +00:00
|
|
|
#endif
|