public void Init(int rate) { Free(); _reg = new Reg(); for (int i = 0; i < _chip.Length; i++) { _chip[i] = new OplChip(); } _emulator = new Chip(); InitTables(); _emulator.Setup(rate); if (_type == OplType.DualOpl2) { // Setup opl3 mode in the hander _emulator.WriteReg(0x105, 1); } }
public void Init(int rate) { Free(); _reg = new Reg(); for (int i = 0; i < _chip.Length; i++) { _chip[i] = new OplChip(); } _emulator = new Chip(); InitTables(); _emulator.Setup(rate); if (_type == OplType.DualOpl2) { // Setup opl3 mode in the hander _emulator.WriteReg(0x105, 1); } _rate = rate; }