Exemplo n.º 1
0
        public void screenDrawParams()
        {
            MDChipParams.OKIM6258 ost = oldParam;
            MDChipParams.OKIM6258 nst = newParam;

            DrawBuff.PanToOKIM6258(frameBuffer, ref ost.pan, nst.pan, ref ost.pantp, 0);

            if (ost.masterFreq != nst.masterFreq)
            {
                DrawBuff.drawFont4(frameBuffer, 12 * 4, 8, 0, string.Format("{0:d5}", nst.masterFreq));
                ost.masterFreq = nst.masterFreq;
            }

            if (ost.divider != nst.divider)
            {
                DrawBuff.drawFont4(frameBuffer, 19 * 4, 8, 0, string.Format("{0:d5}", nst.divider));
                ost.divider = nst.divider;
            }

            if (ost.pbFreq != nst.pbFreq)
            {
                DrawBuff.drawFont4(frameBuffer, 26 * 4, 8, 0, string.Format("{0:d5}", nst.pbFreq));
                ost.pbFreq = nst.pbFreq;
            }

            DrawBuff.Volume(frameBuffer, 256, 8 + 0 * 8, 1, ref ost.volumeL, nst.volumeL / 2, 0);
            DrawBuff.Volume(frameBuffer, 256, 8 + 0 * 8, 2, ref ost.volumeR, nst.volumeR / 2, 0);

            DrawBuff.ChOKIM6258(frameBuffer, ref ost.mask, nst.mask, 0);
        }
Exemplo n.º 2
0
        public frmOKIM6258(frmMain frm, int chipID, int zoom, MDChipParams.OKIM6258 newParam)
        {
            parent      = frm;
            this.chipID = chipID;
            this.zoom   = zoom;

            InitializeComponent();

            this.newParam = newParam;
            frameBuffer.Add(pbScreen, Properties.Resources.planeMSM6258, null, zoom);
            DrawBuff.screenInitOKIM6258(frameBuffer);
            update();
        }