示例#1
0
        private void updateinfo()
        {
            txtInfo.Text = "";
            step         = VbX.CInt(txtScale.Text);
            if (step == 0)
            {
                step = 1;
            }


            txtInfo.Text += "Input  Frequency   :" + Frequency.ToString() + nl;
            txtInfo.Text += "Filelength         :" + FileLength.ToString() + nl;

            Bitdepth = VbX.CInt(VbX.Left(cboBitDepth.Text, 1));


            if (cboBitDepth.Text == "CPC+ DMA")
            {
                Bitdepth = 16;
            }
            Single dividor = 8 / Bitdepth;

            if (dividor <= 0)
            {
                dividor = 1;
            }
            //if (cboBitDepth.Text == "CPC+ DMA") { dividor = 0.5F; }
            txtInfo.Text += "Output Frequency   :" + (Frequency / step).ToString() + nl;
            txtInfo.Text += "Output Size (bytes):" + ((FileLength / step) / dividor).ToString() + nl;
            DestFile      = txtSrc.Text.ToLower().Replace(".wav", Bitdepth.ToString() + "-" + step.ToString() + ".raw");
        }