using System;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;

namespace QCRPG.TSL.BT;

public class EnhancedVoiceSettings : Form
{
	private int[] CodecModeIDList = new int[4] { 0, 1, 6, 7 };

	private int companyID = 2560;

	private long txRxCodingFormat;

	private int pcmSamplePayload = 17;

	private int ioCodedDataSize;

	private int ioPcmDataFormat = 3;

	private long ioCodingFormat;

	private IContainer components;

	private GroupBox groupBox1;

	private RadioButton txRxCodingTransparentDataRadioButton;

	private RadioButton txRxCodingALawRadioButton;

	private RadioButton txRxCodingULawRadioButton;

	private RadioButton txRxCodingCVSDRadioButton;

	private GroupBox groupBox2;

	private Label label1;

	private TextBox pcmSamplePayloadTextBox;

	private GroupBox groupBox3;

	private RadioButton codedDataSize16bitRadioButton;

	private RadioButton codedDataSize8bitRadioButton;

	private GroupBox groupBox4;

	private RadioButton inputDataUnsignedRadioButton;

	private RadioButton inputDataSignMagnitudeRadioButton;

	private RadioButton inputData2complRadioButton;

	private RadioButton inputData1complRadioButton;

	private Button okButton;

	private Button cancelButton;

	private RadioButton txRxCodingLinearPcmRadioButton;

	private RadioButton txRxCodingMSbcRadioButton;

	private TextBox txRxCodingVsTextBox;

	private ComboBox txRxCodingComboBox;

	private RadioButton txRxCodingVsRadioButton;

	private GroupBox groupBox6;

	private TextBox IOCodingVsTextBox;

	private ComboBox IOCodingComboBox;

	private RadioButton IOCodingVsRadioButton;

	private RadioButton IOCodingMSbcRadioButton;

	private RadioButton IOCodingLinearPcmRadioButton;

	private RadioButton IOCodingTransparentDataRadioButton;

	private RadioButton IOCodingALawRadioButton;

	private RadioButton IOCodingULawRadioButton;

	private RadioButton IOCodingCVSDRadioButton;

	public long TxRxCodingFormat
	{
		get
		{
			return txRxCodingFormat;
		}
		set
		{
			txRxCodingFormat = value;
		}
	}

	public int PcmSamplePayload
	{
		get
		{
			return pcmSamplePayload;
		}
		set
		{
			pcmSamplePayload = value;
		}
	}

	public int IOCodedDataSize
	{
		get
		{
			return ioCodedDataSize;
		}
		set
		{
			ioCodedDataSize = value;
		}
	}

	public int IOPcmDataFormat
	{
		get
		{
			return ioPcmDataFormat;
		}
		set
		{
			ioPcmDataFormat = value;
		}
	}

	public long IOCodingFormat
	{
		get
		{
			return ioCodingFormat;
		}
		set
		{
			ioCodingFormat = value;
		}
	}

	public EnhancedVoiceSettings()
	{
		InitializeComponent();
		txRxCodingComboBox.Items.AddRange(CodecModeIDList.Select((int x) => x.ToString("X")).ToArray());
		IOCodingComboBox.Items.AddRange(CodecModeIDList.Select((int x) => x.ToString("X")).ToArray());
	}

	private void EnhancedVoiceSettings_Load(object sender, EventArgs e)
	{
		long num = (txRxCodingFormat >> 32) & 0xFF;
		txRxCodingULawRadioButton.Checked = num == 0;
		txRxCodingALawRadioButton.Checked = num == 1;
		txRxCodingCVSDRadioButton.Checked = num == 2;
		txRxCodingTransparentDataRadioButton.Checked = num == 3;
		txRxCodingLinearPcmRadioButton.Checked = num == 4;
		txRxCodingMSbcRadioButton.Checked = num == 5;
		txRxCodingVsRadioButton.Checked = num == 6;
		if (txRxCodingVsRadioButton.Checked)
		{
			_ = (txRxCodingFormat & 0xFFFF0000u) >> 16;
			_ = companyID;
			int num2 = (int)((txRxCodingFormat & 0xFF00) >> 8);
			txRxCodingComboBox.SelectedItem = num2;
			txRxCodingVsTextBox.Text = txRxCodingFormat.ToString("X");
		}
		updateTxRxCodingFormatTextBox(null, null);
		pcmSamplePayloadTextBox.Text = pcmSamplePayload.ToString();
		if (ioCodedDataSize == 256)
		{
			codedDataSize8bitRadioButton.Checked = false;
			codedDataSize16bitRadioButton.Checked = true;
		}
		else
		{
			codedDataSize8bitRadioButton.Checked = true;
			codedDataSize16bitRadioButton.Checked = false;
		}
		inputData1complRadioButton.Checked = ioPcmDataFormat == 1;
		inputData2complRadioButton.Checked = ioPcmDataFormat == 2;
		inputDataSignMagnitudeRadioButton.Checked = ioPcmDataFormat == 3;
		inputDataUnsignedRadioButton.Checked = ioPcmDataFormat == 4;
		num = (IOCodingFormat >> 32) & 0xFF;
		IOCodingULawRadioButton.Checked = num == 0;
		IOCodingALawRadioButton.Checked = num == 1;
		IOCodingCVSDRadioButton.Checked = num == 2;
		IOCodingTransparentDataRadioButton.Checked = num == 3;
		IOCodingLinearPcmRadioButton.Checked = num == 4;
		IOCodingMSbcRadioButton.Checked = num == 5;
		IOCodingVsRadioButton.Checked = num == 6;
		if (IOCodingVsRadioButton.Checked)
		{
			_ = (IOCodingFormat & 0xFFFF0000u) >> 16;
			_ = companyID;
			int num3 = (int)((IOCodingFormat & 0xFF00) >> 8);
			IOCodingComboBox.SelectedItem = num3;
			IOCodingVsTextBox.Text = IOCodingFormat.ToString("X");
		}
		updateIOCodingFormatTextBox(null, null);
	}

	public void updateTxRxCodingFormatTextBox(object sender, EventArgs e)
	{
		if (txRxCodingULawRadioButton.Checked)
		{
			txRxCodingFormat = 0L;
			txRxCodingComboBox.Enabled = false;
			txRxCodingVsTextBox.Enabled = false;
		}
		else if (txRxCodingALawRadioButton.Checked)
		{
			txRxCodingFormat = 4294967296L;
			txRxCodingComboBox.Enabled = false;
			txRxCodingVsTextBox.Enabled = false;
		}
		else if (txRxCodingCVSDRadioButton.Checked)
		{
			txRxCodingFormat = 8589934592L;
			txRxCodingComboBox.Enabled = false;
			txRxCodingVsTextBox.Enabled = false;
		}
		else if (txRxCodingTransparentDataRadioButton.Checked)
		{
			txRxCodingFormat = 12884901888L;
			txRxCodingComboBox.Enabled = false;
			txRxCodingVsTextBox.Enabled = false;
		}
		else if (txRxCodingLinearPcmRadioButton.Checked)
		{
			txRxCodingFormat = 17179869184L;
			txRxCodingComboBox.Enabled = false;
			txRxCodingVsTextBox.Enabled = false;
		}
		else if (txRxCodingMSbcRadioButton.Checked)
		{
			txRxCodingFormat = 21474836480L;
			txRxCodingComboBox.Enabled = false;
			txRxCodingVsTextBox.Enabled = false;
		}
		else if (txRxCodingVsRadioButton.Checked)
		{
			txRxCodingComboBox.Enabled = true;
			txRxCodingVsTextBox.Enabled = true;
			txRxCodingFormat = 255L;
			txRxCodingFormat = (txRxCodingFormat << 16) + companyID;
			if (txRxCodingComboBox.SelectedIndex < 0)
			{
				txRxCodingComboBox.SelectedIndex = 0;
			}
			txRxCodingFormat = (txRxCodingFormat << 8) + CodecModeIDList[txRxCodingComboBox.SelectedIndex];
			txRxCodingFormat <<= 8;
			txRxCodingVsTextBox.Text = txRxCodingFormat.ToString("X10");
		}
	}

	public void updateIOCodingFormatTextBox(object sender, EventArgs e)
	{
		if (IOCodingULawRadioButton.Checked)
		{
			IOCodingFormat = 0L;
			IOCodingComboBox.Enabled = false;
			IOCodingVsTextBox.Enabled = false;
		}
		else if (IOCodingALawRadioButton.Checked)
		{
			IOCodingFormat = 4294967296L;
			IOCodingComboBox.Enabled = false;
			IOCodingVsTextBox.Enabled = false;
		}
		else if (IOCodingCVSDRadioButton.Checked)
		{
			IOCodingFormat = 8589934592L;
			IOCodingComboBox.Enabled = false;
			IOCodingVsTextBox.Enabled = false;
		}
		else if (IOCodingTransparentDataRadioButton.Checked)
		{
			IOCodingFormat = 12884901888L;
			IOCodingComboBox.Enabled = false;
			IOCodingVsTextBox.Enabled = false;
		}
		else if (IOCodingLinearPcmRadioButton.Checked)
		{
			IOCodingFormat = 17179869184L;
			IOCodingComboBox.Enabled = false;
			IOCodingVsTextBox.Enabled = false;
		}
		else if (IOCodingMSbcRadioButton.Checked)
		{
			IOCodingFormat = 21474836480L;
			IOCodingComboBox.Enabled = false;
			IOCodingVsTextBox.Enabled = false;
		}
		else if (IOCodingVsRadioButton.Checked)
		{
			IOCodingComboBox.Enabled = true;
			IOCodingVsTextBox.Enabled = true;
			IOCodingFormat = 255L;
			IOCodingFormat = (IOCodingFormat << 16) + companyID;
			if (IOCodingComboBox.SelectedIndex < 0)
			{
				IOCodingComboBox.SelectedIndex = 0;
			}
			IOCodingFormat = (IOCodingFormat << 8) + CodecModeIDList[IOCodingComboBox.SelectedIndex];
			IOCodingFormat <<= 8;
			IOCodingVsTextBox.Text = IOCodingFormat.ToString("X10");
		}
	}

	private void okButton_Click(object sender, EventArgs e)
	{
		if (!int.TryParse(pcmSamplePayloadTextBox.Text, out pcmSamplePayload))
		{
			pcmSamplePayload = 3;
		}
		if (codedDataSize8bitRadioButton.Checked)
		{
			ioCodedDataSize = 32;
		}
		else
		{
			ioCodedDataSize = 256;
		}
		if (inputData1complRadioButton.Checked)
		{
			ioPcmDataFormat = 1;
		}
		else if (inputData2complRadioButton.Checked)
		{
			ioPcmDataFormat = 2;
		}
		else if (inputDataSignMagnitudeRadioButton.Checked)
		{
			ioPcmDataFormat = 3;
		}
		else if (inputDataUnsignedRadioButton.Checked)
		{
			ioPcmDataFormat = 4;
		}
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.txRxCodingVsTextBox = new System.Windows.Forms.TextBox();
		this.txRxCodingComboBox = new System.Windows.Forms.ComboBox();
		this.txRxCodingVsRadioButton = new System.Windows.Forms.RadioButton();
		this.txRxCodingMSbcRadioButton = new System.Windows.Forms.RadioButton();
		this.txRxCodingLinearPcmRadioButton = new System.Windows.Forms.RadioButton();
		this.txRxCodingTransparentDataRadioButton = new System.Windows.Forms.RadioButton();
		this.txRxCodingALawRadioButton = new System.Windows.Forms.RadioButton();
		this.txRxCodingULawRadioButton = new System.Windows.Forms.RadioButton();
		this.txRxCodingCVSDRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.label1 = new System.Windows.Forms.Label();
		this.pcmSamplePayloadTextBox = new System.Windows.Forms.TextBox();
		this.groupBox3 = new System.Windows.Forms.GroupBox();
		this.codedDataSize16bitRadioButton = new System.Windows.Forms.RadioButton();
		this.codedDataSize8bitRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox4 = new System.Windows.Forms.GroupBox();
		this.inputDataUnsignedRadioButton = new System.Windows.Forms.RadioButton();
		this.inputDataSignMagnitudeRadioButton = new System.Windows.Forms.RadioButton();
		this.inputData2complRadioButton = new System.Windows.Forms.RadioButton();
		this.inputData1complRadioButton = new System.Windows.Forms.RadioButton();
		this.okButton = new System.Windows.Forms.Button();
		this.cancelButton = new System.Windows.Forms.Button();
		this.groupBox6 = new System.Windows.Forms.GroupBox();
		this.IOCodingVsTextBox = new System.Windows.Forms.TextBox();
		this.IOCodingComboBox = new System.Windows.Forms.ComboBox();
		this.IOCodingVsRadioButton = new System.Windows.Forms.RadioButton();
		this.IOCodingMSbcRadioButton = new System.Windows.Forms.RadioButton();
		this.IOCodingLinearPcmRadioButton = new System.Windows.Forms.RadioButton();
		this.IOCodingTransparentDataRadioButton = new System.Windows.Forms.RadioButton();
		this.IOCodingALawRadioButton = new System.Windows.Forms.RadioButton();
		this.IOCodingULawRadioButton = new System.Windows.Forms.RadioButton();
		this.IOCodingCVSDRadioButton = new System.Windows.Forms.RadioButton();
		this.groupBox1.SuspendLayout();
		this.groupBox2.SuspendLayout();
		this.groupBox3.SuspendLayout();
		this.groupBox4.SuspendLayout();
		this.groupBox6.SuspendLayout();
		base.SuspendLayout();
		this.groupBox1.Controls.Add(this.txRxCodingVsTextBox);
		this.groupBox1.Controls.Add(this.txRxCodingComboBox);
		this.groupBox1.Controls.Add(this.txRxCodingVsRadioButton);
		this.groupBox1.Controls.Add(this.txRxCodingMSbcRadioButton);
		this.groupBox1.Controls.Add(this.txRxCodingLinearPcmRadioButton);
		this.groupBox1.Controls.Add(this.txRxCodingTransparentDataRadioButton);
		this.groupBox1.Controls.Add(this.txRxCodingALawRadioButton);
		this.groupBox1.Controls.Add(this.txRxCodingULawRadioButton);
		this.groupBox1.Controls.Add(this.txRxCodingCVSDRadioButton);
		this.groupBox1.Location = new System.Drawing.Point(13, 13);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Size = new System.Drawing.Size(335, 109);
		this.groupBox1.TabIndex = 0;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "Transmit / Receive Coding Format";
		this.txRxCodingVsTextBox.Location = new System.Drawing.Point(245, 76);
		this.txRxCodingVsTextBox.Name = "txRxCodingVsTextBox";
		this.txRxCodingVsTextBox.Size = new System.Drawing.Size(82, 20);
		this.txRxCodingVsTextBox.TabIndex = 7;
		this.txRxCodingComboBox.FormattingEnabled = true;
		this.txRxCodingComboBox.Location = new System.Drawing.Point(187, 75);
		this.txRxCodingComboBox.Name = "txRxCodingComboBox";
		this.txRxCodingComboBox.Size = new System.Drawing.Size(49, 21);
		this.txRxCodingComboBox.TabIndex = 6;
		this.txRxCodingComboBox.DropDownClosed += new System.EventHandler(updateTxRxCodingFormatTextBox);
		this.txRxCodingVsRadioButton.Location = new System.Drawing.Point(6, 76);
		this.txRxCodingVsRadioButton.Name = "txRxCodingVsRadioButton";
		this.txRxCodingVsRadioButton.Size = new System.Drawing.Size(191, 17);
		this.txRxCodingVsRadioButton.TabIndex = 0;
		this.txRxCodingVsRadioButton.TabStop = true;
		this.txRxCodingVsRadioButton.Text = "Vendor Specific: Codec Mode ID";
		this.txRxCodingVsRadioButton.UseVisualStyleBackColor = true;
		this.txRxCodingVsRadioButton.CheckedChanged += new System.EventHandler(updateTxRxCodingFormatTextBox);
		this.txRxCodingMSbcRadioButton.AutoSize = true;
		this.txRxCodingMSbcRadioButton.Location = new System.Drawing.Point(259, 45);
		this.txRxCodingMSbcRadioButton.Name = "txRxCodingMSbcRadioButton";
		this.txRxCodingMSbcRadioButton.Size = new System.Drawing.Size(54, 17);
		this.txRxCodingMSbcRadioButton.TabIndex = 5;
		this.txRxCodingMSbcRadioButton.TabStop = true;
		this.txRxCodingMSbcRadioButton.Text = "mSBC";
		this.txRxCodingMSbcRadioButton.UseVisualStyleBackColor = true;
		this.txRxCodingMSbcRadioButton.CheckedChanged += new System.EventHandler(updateTxRxCodingFormatTextBox);
		this.txRxCodingLinearPcmRadioButton.AutoSize = true;
		this.txRxCodingLinearPcmRadioButton.Location = new System.Drawing.Point(133, 45);
		this.txRxCodingLinearPcmRadioButton.Name = "txRxCodingLinearPcmRadioButton";
		this.txRxCodingLinearPcmRadioButton.Size = new System.Drawing.Size(80, 17);
		this.txRxCodingLinearPcmRadioButton.TabIndex = 4;
		this.txRxCodingLinearPcmRadioButton.TabStop = true;
		this.txRxCodingLinearPcmRadioButton.Text = "Linear PCM";
		this.txRxCodingLinearPcmRadioButton.UseVisualStyleBackColor = true;
		this.txRxCodingLinearPcmRadioButton.CheckedChanged += new System.EventHandler(updateTxRxCodingFormatTextBox);
		this.txRxCodingTransparentDataRadioButton.AutoSize = true;
		this.txRxCodingTransparentDataRadioButton.Location = new System.Drawing.Point(7, 45);
		this.txRxCodingTransparentDataRadioButton.Name = "txRxCodingTransparentDataRadioButton";
		this.txRxCodingTransparentDataRadioButton.Size = new System.Drawing.Size(82, 17);
		this.txRxCodingTransparentDataRadioButton.TabIndex = 3;
		this.txRxCodingTransparentDataRadioButton.Text = "Transparent";
		this.txRxCodingTransparentDataRadioButton.UseVisualStyleBackColor = true;
		this.txRxCodingTransparentDataRadioButton.CheckedChanged += new System.EventHandler(updateTxRxCodingFormatTextBox);
		this.txRxCodingALawRadioButton.AutoSize = true;
		this.txRxCodingALawRadioButton.Location = new System.Drawing.Point(135, 19);
		this.txRxCodingALawRadioButton.Name = "txRxCodingALawRadioButton";
		this.txRxCodingALawRadioButton.Size = new System.Drawing.Size(51, 17);
		this.txRxCodingALawRadioButton.TabIndex = 2;
		this.txRxCodingALawRadioButton.Text = "A-law";
		this.txRxCodingALawRadioButton.UseVisualStyleBackColor = true;
		this.txRxCodingALawRadioButton.CheckedChanged += new System.EventHandler(updateTxRxCodingFormatTextBox);
		this.txRxCodingULawRadioButton.AutoSize = true;
		this.txRxCodingULawRadioButton.Checked = true;
		this.txRxCodingULawRadioButton.Location = new System.Drawing.Point(7, 19);
		this.txRxCodingULawRadioButton.Name = "txRxCodingULawRadioButton";
		this.txRxCodingULawRadioButton.Size = new System.Drawing.Size(50, 17);
		this.txRxCodingULawRadioButton.TabIndex = 1;
		this.txRxCodingULawRadioButton.TabStop = true;
		this.txRxCodingULawRadioButton.Text = "u-law";
		this.txRxCodingULawRadioButton.UseVisualStyleBackColor = true;
		this.txRxCodingULawRadioButton.CheckedChanged += new System.EventHandler(updateTxRxCodingFormatTextBox);
		this.txRxCodingCVSDRadioButton.AutoSize = true;
		this.txRxCodingCVSDRadioButton.Location = new System.Drawing.Point(259, 19);
		this.txRxCodingCVSDRadioButton.Name = "txRxCodingCVSDRadioButton";
		this.txRxCodingCVSDRadioButton.Size = new System.Drawing.Size(54, 17);
		this.txRxCodingCVSDRadioButton.TabIndex = 0;
		this.txRxCodingCVSDRadioButton.Text = "CVSD";
		this.txRxCodingCVSDRadioButton.UseVisualStyleBackColor = true;
		this.txRxCodingCVSDRadioButton.CheckedChanged += new System.EventHandler(updateTxRxCodingFormatTextBox);
		this.groupBox2.Controls.Add(this.label1);
		this.groupBox2.Controls.Add(this.pcmSamplePayloadTextBox);
		this.groupBox2.Location = new System.Drawing.Point(13, 128);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Size = new System.Drawing.Size(213, 58);
		this.groupBox2.TabIndex = 1;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "PCM Sample Payload MSB Position";
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(67, 28);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(74, 13);
		this.label1.TabIndex = 1;
		this.label1.Text = "# Bit Positions";
		this.pcmSamplePayloadTextBox.Location = new System.Drawing.Point(7, 25);
		this.pcmSamplePayloadTextBox.Name = "pcmSamplePayloadTextBox";
		this.pcmSamplePayloadTextBox.Size = new System.Drawing.Size(54, 20);
		this.pcmSamplePayloadTextBox.TabIndex = 0;
		this.pcmSamplePayloadTextBox.Text = "3";
		this.groupBox3.Controls.Add(this.codedDataSize16bitRadioButton);
		this.groupBox3.Controls.Add(this.codedDataSize8bitRadioButton);
		this.groupBox3.Location = new System.Drawing.Point(232, 128);
		this.groupBox3.Name = "groupBox3";
		this.groupBox3.Size = new System.Drawing.Size(116, 58);
		this.groupBox3.TabIndex = 2;
		this.groupBox3.TabStop = false;
		this.groupBox3.Text = "Coded Data Size";
		this.codedDataSize16bitRadioButton.AutoSize = true;
		this.codedDataSize16bitRadioButton.Location = new System.Drawing.Point(57, 24);
		this.codedDataSize16bitRadioButton.Name = "codedDataSize16bitRadioButton";
		this.codedDataSize16bitRadioButton.Size = new System.Drawing.Size(51, 17);
		this.codedDataSize16bitRadioButton.TabIndex = 1;
		this.codedDataSize16bitRadioButton.Text = "16 bit";
		this.codedDataSize16bitRadioButton.UseVisualStyleBackColor = true;
		this.codedDataSize8bitRadioButton.AutoSize = true;
		this.codedDataSize8bitRadioButton.Checked = true;
		this.codedDataSize8bitRadioButton.Location = new System.Drawing.Point(6, 24);
		this.codedDataSize8bitRadioButton.Name = "codedDataSize8bitRadioButton";
		this.codedDataSize8bitRadioButton.Size = new System.Drawing.Size(45, 17);
		this.codedDataSize8bitRadioButton.TabIndex = 0;
		this.codedDataSize8bitRadioButton.TabStop = true;
		this.codedDataSize8bitRadioButton.Text = "8 bit";
		this.codedDataSize8bitRadioButton.UseVisualStyleBackColor = true;
		this.groupBox4.Controls.Add(this.inputDataUnsignedRadioButton);
		this.groupBox4.Controls.Add(this.inputDataSignMagnitudeRadioButton);
		this.groupBox4.Controls.Add(this.inputData2complRadioButton);
		this.groupBox4.Controls.Add(this.inputData1complRadioButton);
		this.groupBox4.Location = new System.Drawing.Point(13, 192);
		this.groupBox4.Name = "groupBox4";
		this.groupBox4.Size = new System.Drawing.Size(335, 46);
		this.groupBox4.TabIndex = 3;
		this.groupBox4.TabStop = false;
		this.groupBox4.Text = "PCM Data Format";
		this.inputDataUnsignedRadioButton.AutoSize = true;
		this.inputDataUnsignedRadioButton.Location = new System.Drawing.Point(259, 19);
		this.inputDataUnsignedRadioButton.Name = "inputDataUnsignedRadioButton";
		this.inputDataUnsignedRadioButton.Size = new System.Drawing.Size(70, 17);
		this.inputDataUnsignedRadioButton.TabIndex = 4;
		this.inputDataUnsignedRadioButton.Text = "Unsigned";
		this.inputDataUnsignedRadioButton.UseVisualStyleBackColor = true;
		this.inputDataSignMagnitudeRadioButton.AutoSize = true;
		this.inputDataSignMagnitudeRadioButton.Location = new System.Drawing.Point(154, 19);
		this.inputDataSignMagnitudeRadioButton.Name = "inputDataSignMagnitudeRadioButton";
		this.inputDataSignMagnitudeRadioButton.Size = new System.Drawing.Size(99, 17);
		this.inputDataSignMagnitudeRadioButton.TabIndex = 4;
		this.inputDataSignMagnitudeRadioButton.Text = "Sign-Magnitude";
		this.inputDataSignMagnitudeRadioButton.UseVisualStyleBackColor = true;
		this.inputData2complRadioButton.AutoSize = true;
		this.inputData2complRadioButton.Checked = true;
		this.inputData2complRadioButton.Location = new System.Drawing.Point(79, 19);
		this.inputData2complRadioButton.Name = "inputData2complRadioButton";
		this.inputData2complRadioButton.Size = new System.Drawing.Size(69, 17);
		this.inputData2complRadioButton.TabIndex = 4;
		this.inputData2complRadioButton.TabStop = true;
		this.inputData2complRadioButton.Text = "2's compl";
		this.inputData2complRadioButton.UseVisualStyleBackColor = true;
		this.inputData1complRadioButton.AutoSize = true;
		this.inputData1complRadioButton.Location = new System.Drawing.Point(6, 19);
		this.inputData1complRadioButton.Name = "inputData1complRadioButton";
		this.inputData1complRadioButton.Size = new System.Drawing.Size(69, 17);
		this.inputData1complRadioButton.TabIndex = 4;
		this.inputData1complRadioButton.Text = "1's compl";
		this.inputData1complRadioButton.UseVisualStyleBackColor = true;
		this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
		this.okButton.Location = new System.Drawing.Point(75, 359);
		this.okButton.Name = "okButton";
		this.okButton.Size = new System.Drawing.Size(75, 23);
		this.okButton.TabIndex = 7;
		this.okButton.Text = "OK";
		this.okButton.UseVisualStyleBackColor = true;
		this.okButton.Click += new System.EventHandler(okButton_Click);
		this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
		this.cancelButton.Location = new System.Drawing.Point(198, 359);
		this.cancelButton.Name = "cancelButton";
		this.cancelButton.Size = new System.Drawing.Size(75, 23);
		this.cancelButton.TabIndex = 8;
		this.cancelButton.Text = "Cancel";
		this.cancelButton.UseVisualStyleBackColor = true;
		this.groupBox6.Controls.Add(this.IOCodingVsTextBox);
		this.groupBox6.Controls.Add(this.IOCodingComboBox);
		this.groupBox6.Controls.Add(this.IOCodingVsRadioButton);
		this.groupBox6.Controls.Add(this.IOCodingMSbcRadioButton);
		this.groupBox6.Controls.Add(this.IOCodingLinearPcmRadioButton);
		this.groupBox6.Controls.Add(this.IOCodingTransparentDataRadioButton);
		this.groupBox6.Controls.Add(this.IOCodingALawRadioButton);
		this.groupBox6.Controls.Add(this.IOCodingULawRadioButton);
		this.groupBox6.Controls.Add(this.IOCodingCVSDRadioButton);
		this.groupBox6.Location = new System.Drawing.Point(13, 244);
		this.groupBox6.Name = "groupBox6";
		this.groupBox6.Size = new System.Drawing.Size(335, 109);
		this.groupBox6.TabIndex = 8;
		this.groupBox6.TabStop = false;
		this.groupBox6.Text = "Input / Output Coding Format";
		this.IOCodingVsTextBox.Location = new System.Drawing.Point(245, 76);
		this.IOCodingVsTextBox.Name = "IOCodingVsTextBox";
		this.IOCodingVsTextBox.Size = new System.Drawing.Size(82, 20);
		this.IOCodingVsTextBox.TabIndex = 7;
		this.IOCodingComboBox.FormattingEnabled = true;
		this.IOCodingComboBox.Location = new System.Drawing.Point(187, 75);
		this.IOCodingComboBox.Name = "IOCodingComboBox";
		this.IOCodingComboBox.Size = new System.Drawing.Size(49, 21);
		this.IOCodingComboBox.TabIndex = 6;
		this.IOCodingComboBox.DropDownClosed += new System.EventHandler(updateIOCodingFormatTextBox);
		this.IOCodingVsRadioButton.Location = new System.Drawing.Point(6, 76);
		this.IOCodingVsRadioButton.Name = "IOCodingVsRadioButton";
		this.IOCodingVsRadioButton.Size = new System.Drawing.Size(191, 17);
		this.IOCodingVsRadioButton.TabIndex = 0;
		this.IOCodingVsRadioButton.TabStop = true;
		this.IOCodingVsRadioButton.Text = "Vendor Specific: Codec Mode ID";
		this.IOCodingVsRadioButton.UseVisualStyleBackColor = true;
		this.IOCodingVsRadioButton.CheckedChanged += new System.EventHandler(updateIOCodingFormatTextBox);
		this.IOCodingMSbcRadioButton.AutoSize = true;
		this.IOCodingMSbcRadioButton.Location = new System.Drawing.Point(259, 45);
		this.IOCodingMSbcRadioButton.Name = "IOCodingMSbcRadioButton";
		this.IOCodingMSbcRadioButton.Size = new System.Drawing.Size(54, 17);
		this.IOCodingMSbcRadioButton.TabIndex = 5;
		this.IOCodingMSbcRadioButton.TabStop = true;
		this.IOCodingMSbcRadioButton.Text = "mSBC";
		this.IOCodingMSbcRadioButton.UseVisualStyleBackColor = true;
		this.IOCodingMSbcRadioButton.CheckedChanged += new System.EventHandler(updateIOCodingFormatTextBox);
		this.IOCodingLinearPcmRadioButton.AutoSize = true;
		this.IOCodingLinearPcmRadioButton.Location = new System.Drawing.Point(133, 45);
		this.IOCodingLinearPcmRadioButton.Name = "IOCodingLinearPcmRadioButton";
		this.IOCodingLinearPcmRadioButton.Size = new System.Drawing.Size(80, 17);
		this.IOCodingLinearPcmRadioButton.TabIndex = 4;
		this.IOCodingLinearPcmRadioButton.TabStop = true;
		this.IOCodingLinearPcmRadioButton.Text = "Linear PCM";
		this.IOCodingLinearPcmRadioButton.UseVisualStyleBackColor = true;
		this.IOCodingLinearPcmRadioButton.CheckedChanged += new System.EventHandler(updateIOCodingFormatTextBox);
		this.IOCodingTransparentDataRadioButton.AutoSize = true;
		this.IOCodingTransparentDataRadioButton.Location = new System.Drawing.Point(7, 45);
		this.IOCodingTransparentDataRadioButton.Name = "IOCodingTransparentDataRadioButton";
		this.IOCodingTransparentDataRadioButton.Size = new System.Drawing.Size(82, 17);
		this.IOCodingTransparentDataRadioButton.TabIndex = 3;
		this.IOCodingTransparentDataRadioButton.Text = "Transparent";
		this.IOCodingTransparentDataRadioButton.UseVisualStyleBackColor = true;
		this.IOCodingTransparentDataRadioButton.CheckedChanged += new System.EventHandler(updateIOCodingFormatTextBox);
		this.IOCodingALawRadioButton.AutoSize = true;
		this.IOCodingALawRadioButton.Location = new System.Drawing.Point(135, 19);
		this.IOCodingALawRadioButton.Name = "IOCodingALawRadioButton";
		this.IOCodingALawRadioButton.Size = new System.Drawing.Size(51, 17);
		this.IOCodingALawRadioButton.TabIndex = 2;
		this.IOCodingALawRadioButton.Text = "A-law";
		this.IOCodingALawRadioButton.UseVisualStyleBackColor = true;
		this.IOCodingALawRadioButton.CheckedChanged += new System.EventHandler(updateIOCodingFormatTextBox);
		this.IOCodingULawRadioButton.AutoSize = true;
		this.IOCodingULawRadioButton.Checked = true;
		this.IOCodingULawRadioButton.Location = new System.Drawing.Point(7, 19);
		this.IOCodingULawRadioButton.Name = "IOCodingULawRadioButton";
		this.IOCodingULawRadioButton.Size = new System.Drawing.Size(50, 17);
		this.IOCodingULawRadioButton.TabIndex = 1;
		this.IOCodingULawRadioButton.TabStop = true;
		this.IOCodingULawRadioButton.Text = "u-law";
		this.IOCodingULawRadioButton.UseVisualStyleBackColor = true;
		this.IOCodingULawRadioButton.CheckedChanged += new System.EventHandler(updateIOCodingFormatTextBox);
		this.IOCodingCVSDRadioButton.AutoSize = true;
		this.IOCodingCVSDRadioButton.Location = new System.Drawing.Point(259, 19);
		this.IOCodingCVSDRadioButton.Name = "IOCodingCVSDRadioButton";
		this.IOCodingCVSDRadioButton.Size = new System.Drawing.Size(54, 17);
		this.IOCodingCVSDRadioButton.TabIndex = 0;
		this.IOCodingCVSDRadioButton.Text = "CVSD";
		this.IOCodingCVSDRadioButton.UseVisualStyleBackColor = true;
		this.IOCodingCVSDRadioButton.CheckedChanged += new System.EventHandler(updateIOCodingFormatTextBox);
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(360, 394);
		base.Controls.Add(this.groupBox6);
		base.Controls.Add(this.cancelButton);
		base.Controls.Add(this.okButton);
		base.Controls.Add(this.groupBox4);
		base.Controls.Add(this.groupBox3);
		base.Controls.Add(this.groupBox2);
		base.Controls.Add(this.groupBox1);
		base.Name = "EnhancedVoiceSettings";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "Enhanced Voice Settings";
		base.Load += new System.EventHandler(EnhancedVoiceSettings_Load);
		this.groupBox1.ResumeLayout(false);
		this.groupBox1.PerformLayout();
		this.groupBox2.ResumeLayout(false);
		this.groupBox2.PerformLayout();
		this.groupBox3.ResumeLayout(false);
		this.groupBox3.PerformLayout();
		this.groupBox4.ResumeLayout(false);
		this.groupBox4.PerformLayout();
		this.groupBox6.ResumeLayout(false);
		this.groupBox6.PerformLayout();
		base.ResumeLayout(false);
	}
}
