mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-13 13:50:59 +00:00
e59d7bc8b8
of the Java OPL3 emulator. SVN r3967 (trunk)
25 lines
No EOL
540 B
C++
25 lines
No EOL
540 B
C++
#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;
|
|
virtual FString GetVoiceString() { return FString(); }
|
|
};
|
|
|
|
OPLEmul *YM3812Create(bool stereo);
|
|
OPLEmul *DBOPLCreate(bool stereo);
|
|
OPLEmul *JavaOPLCreate(bool stereo);
|
|
|
|
#endif |