예제 #1
0
        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);
            }
        }
예제 #2
0
파일: DosBoxOPL.cs 프로젝트: scemino/nscumm
        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;
        }