mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 14:33:01 +00:00
Namco 163: fix compiler error
This commit is contained in:
parent
c045fb5c26
commit
b384367aa8
1 changed files with 9 additions and 7 deletions
|
@ -134,6 +134,7 @@ void DivPlatformN163::updateWave(int ch, int wave, int pos, int len) {
|
|||
len&=0xfc; // 4 nibble boundary
|
||||
if (wave<0) {
|
||||
// load from wave synth
|
||||
if (ch>=0) {
|
||||
for (int i=0; i<len; i++) {
|
||||
unsigned char addr=(pos+i); // address (nibble each)
|
||||
if (addr>=((0x78-(chanMax<<3))<<1)) { // avoid conflict with channel register area
|
||||
|
@ -143,6 +144,7 @@ void DivPlatformN163::updateWave(int ch, int wave, int pos, int len) {
|
|||
int data=chan[ch].ws.output[i];
|
||||
rWriteMask(addr>>1,(addr&1)?(data<<4):(data&0xf),mask);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// load from custom
|
||||
DivWavetable* wt=parent->getWave(wave);
|
||||
|
|
Loading…
Reference in a new issue