diff --git a/src/engine/platform/ym2610.cpp b/src/engine/platform/ym2610.cpp index 5b2b19cc8..8d7626632 100644 --- a/src/engine/platform/ym2610.cpp +++ b/src/engine/platform/ym2610.cpp @@ -324,7 +324,7 @@ double DivPlatformYM2610::NOTE_OPNB(int ch, int note) { } double DivPlatformYM2610::NOTE_ADPCMB(int note) { - if (chan[13].sample>=0&&chan[13].samplesong.sampleLen) { + if (chan[13].sample>=0 && chan[13].samplesong.sampleLen) { double off=(double)(parent->getSample(chan[13].sample)->centerRate)/8363.0; return off*parent->calcBaseFreq((double)chipClock/144,65535,note,false); } @@ -703,7 +703,7 @@ int DivPlatformYM2610::dispatch(DivCommand c) { immWrite(0x1b,chan[c.chan].outVol); } chan[c.chan].sample=ins->amiga.initSample; - if (chan[c.chan].sample>=0&&chan[c.chan].samplesong.sampleLen) { + if (chan[c.chan].sample>=0 && chan[c.chan].samplesong.sampleLen) { DivSample* s=parent->getSample(chan[c.chan].sample); immWrite(0x12,(s->offB>>8)&0xff); immWrite(0x13,s->offB>>16); diff --git a/src/engine/platform/ym2610b.cpp b/src/engine/platform/ym2610b.cpp index 02d120331..1d954ebe6 100644 --- a/src/engine/platform/ym2610b.cpp +++ b/src/engine/platform/ym2610b.cpp @@ -388,7 +388,7 @@ double DivPlatformYM2610B::NOTE_OPNB(int ch, int note) { } double DivPlatformYM2610B::NOTE_ADPCMB(int note) { - if (chan[15].sample>=0&&chan[15].samplesong.sampleLen) { + if (chan[15].sample>=0 && chan[15].samplesong.sampleLen) { double off=(double)(parent->getSample(chan[15].sample)->centerRate)/8363.0; return off*parent->calcBaseFreq((double)chipClock/144,65535,note,false); } @@ -766,7 +766,7 @@ int DivPlatformYM2610B::dispatch(DivCommand c) { immWrite(0x1b,chan[c.chan].outVol); } chan[c.chan].sample=ins->amiga.initSample; - if (chan[c.chan].sample>=0&&chan[c.chan].samplesong.sampleLen) { + if (chan[c.chan].sample>=0 && chan[c.chan].samplesong.sampleLen) { DivSample* s=parent->getSample(chan[c.chan].sample); immWrite(0x12,(s->offB>>8)&0xff); immWrite(0x13,s->offB>>16);