123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef H_ADPLUG_OPL
- #define H_ADPLUG_OPL
- class Copl {
- public:
- typedef enum {
- TYPE_OPL2, TYPE_OPL3, TYPE_DUAL_OPL2
- } ChipType;
- Copl()
- : currChip(0), currType(TYPE_OPL2) {
- }
- virtual ~Copl() {
- }
- virtual void write(int reg, int val) {}
- virtual void setchip(int n) {
- if (n < 2)
- currChip = n;
- }
- virtual int getchip() {
- return currChip;
- }
- virtual void init(void) {}
-
- ChipType gettype() {
- return currType;
- }
-
- virtual void update(short *buf, int samples) {}
- protected:
- int currChip;
- ChipType currType;
- };
- #endif
|