private void LoadFile(string name) { Text = openFileDialog1.FileName; using (SoundFile file = new SoundFile(name)) { int size = int.Parse(toolStripComboBox1.Text); int count = int.Parse(toolStripComboBox2.Text); CreateControls(file.Channels, size, count); toolStripStatusLabel1.Text = string.Format( "{0} Hz, {1} channel(s), {2} frames, {3}", file.Samplerate, file.Channels, file.Frames, TimeSpan.FromSeconds(1.0 * file.Frames / file.Samplerate)); AddMixed(file.Channels, file.ReadDouble(file.Frames), size); } }