123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #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;
- };
- #endif
|