Пример #1
0
        private void Convert2Aac()
        {
            if (string.IsNullOrEmpty(textBoxAacPath1.Text) ||
                string.IsNullOrEmpty(textBoxAacPath2.Text))
            {
                MessageBox.Show("文件路径无效");
                return;
            }

            var ret = AudioConverterWrapper.TransAudioToAac(textBoxAacPath1.Text, textBoxAacPath2.Text);

            MessageBox.Show($"TransAudioToAac result: {ret}");
        }
Пример #2
0
        private void Convert2Wav()
        {
            if (string.IsNullOrEmpty(textBoxWavPath1.Text) ||
                string.IsNullOrEmpty(textBoxWavPath2.Text))
            {
                MessageBox.Show("文件路径无效");
                return;
            }

            try
            {
                var ret = AudioConverterWrapper.TransAacToWav(textBoxWavPath1.Text, textBoxWavPath2.Text);
                MessageBox.Show($"TransAacToWav result: {ret}");
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }
        }