2016-03-01 15:47:10 +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;
|
|
|
|
virtual void WriteReg(int reg, int v) = 0;
|
|
|
|
virtual void Update(float *buffer, int length) = 0;
|
|
|
|
virtual void SetPanning(int c, float left, float right) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
OPLEmul *YM3812Create(bool stereo);
|
|
|
|
OPLEmul *DBOPLCreate(bool stereo);
|
|
|
|
OPLEmul *JavaOPLCreate(bool stereo);
|
|
|
|
OPLEmul *NukedOPL3Create(bool stereo);
|
|
|
|
|
|
|
|
#define OPL_SAMPLE_RATE 49716.0
|
|
|
|
#define CENTER_PANNING_POWER 0.70710678118 /* [RH] volume at center for EQP */
|
2017-04-15 23:36:53 +00:00
|
|
|
#define ADLIB_CLOCK_MUL 24.0
|
|
|
|
|
2016-03-01 15:47:10 +00:00
|
|
|
|
|
|
|
|
2012-11-06 05:21:00 +00:00
|
|
|
#endif
|