123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef H_ADPLUG_DBEMUOPL
- #define H_ADPLUG_DBEMUOPL
- #include "opl.h"
- #include "dbopl.h"
- class CDBemuopl : public Copl
- {
- public:
- CDBemuopl(int rate, bool bit16, bool usestereo);
- ~CDBemuopl();
- void update(short *buf, int samples);
-
- void write(int reg, int val);
- void init();
- protected:
- DBOPL::Chip chip;
- int32_t* buffer;
- int rate, maxlen;
- bool use16bit, stereo;
- static bool _inited;
- void update_opl3(short *buf, int samples);
- void update_opl2(short *buf, int samples);
- };
- #endif
|