prepare for multiple chip support
This commit is contained in:
parent
6aab9f01cf
commit
121a9b2cb8
9 changed files with 35 additions and 29 deletions
|
|
@ -76,7 +76,7 @@ void DivPlatformDummy::reset() {
|
|||
int DivPlatformDummy::init(DivEngine* p, int channels, int sugRate, bool pal) {
|
||||
parent=p;
|
||||
skipRegisterWrites=false;
|
||||
for (int i=0; i<17; i++) {
|
||||
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
||||
isMuted[i]=false;
|
||||
}
|
||||
rate=65536;
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ class DivPlatformDummy: public DivDispatch {
|
|||
signed char amp;
|
||||
Channel(): freq(0), baseFreq(0), pitch(0), pos(0), active(false), freqChanged(false), vol(0), amp(64) {}
|
||||
};
|
||||
Channel chan[17];
|
||||
bool isMuted[17];
|
||||
Channel chan[128];
|
||||
bool isMuted[128];
|
||||
unsigned char chans;
|
||||
public:
|
||||
void acquire(short* bufL, short* bufR, size_t start, size_t len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue