123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef H_ADPLUG_SURROUNDOPL
- #define H_ADPLUG_SURROUNDOPL
- #include "opl.h"
- #define FREQ_OFFSET 128.0
- #define NEWBLOCK_LIMIT 32
- class CSurroundopl: public Copl
- {
- private:
- bool use16bit;
- short bufsize;
- short *lbuf, *rbuf;
- Copl *a, *b;
- unsigned char iFMReg[256];
- unsigned char iTweakedFMReg[256];
- unsigned char iCurrentTweakedBlock[9];
- unsigned char iCurrentFNum[9];
- public:
- CSurroundopl(Copl *a, Copl *b, bool use16bit);
- ~CSurroundopl();
- void update(short *buf, int samples);
- void write(int reg, int val);
- void init();
- };
- #endif
|