#include "dummy.h" #include #include void DivPlatformDummy::acquire(short* bufL, short* bufR, size_t start, size_t len) { for (size_t i=start; i>13; chan[j].pos+=chan[j].freq; } } } } void DivPlatformDummy::muteChannel(int ch, bool mute) { isMuted[ch]=mute; } void DivPlatformDummy::tick() { for (unsigned char i=0; i15) chan[c.chan].vol=15; break; case DIV_CMD_GET_VOLUME: return chan[c.chan].vol; break; case DIV_CMD_PITCH: chan[c.chan].pitch=c.value; chan[c.chan].freqChanged=true; break; case DIV_CMD_LEGATO: chan[c.chan].baseFreq=65.6f*pow(2.0f,((float)c.value/12.0f)); chan[c.chan].freqChanged=true; break; case DIV_CMD_GET_VOLMAX: return 15; break; default: break; } return 1; } void DivPlatformDummy::reset() { for (int i=0; i