29 #ifndef AUDIO_SOFTSYNTH_OPL_DOSBOX_H 30 #define AUDIO_SOFTSYNTH_OPL_DOSBOX_H 32 #ifndef DISABLE_DOSBOX_OPL 34 #include "audio/fmopl.h" 42 bool enabled, overflow, masked;
48 void update(
double time);
51 void reset(
double time);
55 void start(
double time,
int scale);
62 bool write(uint32 addr, uint8 val);
84 void dualWrite(uint8 index, uint8 reg, uint8 val);
92 void write(
int a,
int v);
94 void writeReg(
int r,
int v);
96 bool isStereo()
const {
return _type != Config::kOpl2; }
99 void generateSamples(int16 *buffer,
int length);
105 #endif // !DISABLE_DOSBOX_OPL
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
OplType
Definition: fmopl.h:58
bool isStereo() const
Definition: dosbox.h:96