12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef H_ADPLUG_EMUOPL
- #define H_ADPLUG_EMUOPL
- #include "opl.h"
- extern "C" {
- #include "fmopl.h"
- }
- class CEmuopl: public Copl {
- public:
- CEmuopl(int rate, bool bit16, bool usestereo);
- virtual ~CEmuopl();
- void update(short *buf, int samples);
- void write(int reg, int val);
- void init();
- void settype(ChipType type);
- private:
- bool use16bit, stereo;
- FM_OPL *opl[2];
- short *mixbuf0, *mixbuf1;
- int mixbufSamples, rate;
- };
- #endif
|