예제 #1
0
        private void cmbWmvAudioCodecs_SelectedIndexChanged(object sender, EventArgs e)
        {
            _imageToVideo.CurrentWMVAudioCodecName = cmbWmvAudioCodecs.SelectedItem.ToString();

            cmbWmvAudioFormats.Items.Clear();

            // Get list of available WMV audio formats
            for (int i = 0; i < _imageToVideo.WMVAudioFormatCount; i++)
            {
                cmbWmvAudioFormats.Items.Add(_imageToVideo.GetWMVAudioFormatDescription(i));
            }
            // Select current WMV audio format
            cmbWmvAudioFormats.SelectedIndex = _imageToVideo.CurrentWMVAudioFormat;
        }