void CCMIAdapter::resetController() { PAGED_CODE(); DBGPRINT(("CCMIAdapter[%p]::resetController()", this)); writeUInt32(REG_INTHLDCLR, 0); #if OUT_CHANNEL == 1 writeUInt32(REG_FUNCTRL0, ADC_CH0 | (RST_CH0 | RST_CH1)); writeUInt32(REG_FUNCTRL0, ADC_CH0 & ~(RST_CH0 | RST_CH1)); #else writeUInt32(REG_FUNCTRL0, ADC_CH1 | (RST_CH0 | RST_CH1)); writeUInt32(REG_FUNCTRL0, ADC_CH1 & ~(RST_CH0 | RST_CH1)); #endif KeStallExecutionProcessor(100L); writeUInt32(REG_FUNCTRL0, 0); writeUInt32(REG_FUNCTRL1, 0); writeUInt32(REG_CHFORMAT, 0); writeUInt32(REG_MISCCTRL, EN_DBLDAC); #if OUT_CHANNEL == 1 setUInt32Bit(REG_MISCCTRL, XCHG_DAC); #endif setUInt32Bit(REG_FUNCTRL1, BREQ); writeMixer(0, 0); return; }
void CCMIAdapter::resetMixer() { PAGED_CODE(); DBGPRINT(("CCMIAdapter[%p]::resetMixer()", this)); writeMixer(0, 0); setUInt8Bit(REG_MIXER1, EN_SPDI2DAC); }
bool Save::write(){ if (imfat){ file = fopen("midicontrol.cfg", "w"); writeGeneral(); writeDebug(); writeMidiIn(); writeKaoss(); writeMixer(); writeSliders(); fclose(file); return true; } else { return false; } }
STDMETHODIMP_(void) CCMIAdapter::clearMixerBit(UInt8 index, UInt8 flag) { writeMixer(index, readMixer(index) & ~flag); }
STDMETHODIMP_(void) CCMIAdapter::setMixerBit(UInt8 index, UInt8 flag) { writeMixer(index, readMixer(index) | flag); }