25 #include "audio/chip.h" 51 kFlagDualOpl2 = (1 << 1),
64 typedef int8 DriverId;
67 const char *description;
95 static DriverId detect(
OplType type);
100 static OPL *create(DriverId driver,
OplType type);
117 static bool _hasInstance;
120 virtual ~
OPL() { _hasInstance =
false; }
127 virtual bool init() = 0;
132 virtual void reset() = 0;
140 virtual void write(
int a,
int v) = 0;
151 virtual void writeReg(
int r,
int v) = 0;
154 void start(
TimerCallback *callback) { start(callback, kDefaultCallbackFrequency); }
160 kDefaultCallbackFrequency = 250
187 int _connectionFeedbackValues[3];
void start(TimerCallback *callback, int timerFrequency)
static const EmulatorDescription * getAvailable()
Definition: fmopl.h:77
OplType
Definition: fmopl.h:58
Definition: algorithm.h:29