1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #ifndef H_ADPLUG_SURROUNDOPL
- #define H_ADPLUG_SURROUNDOPL
- #include "opl.h"
- #define FREQ_OFFSET 384.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
|