private void FindAudioFile(string file)
        {
            string srcExt = System.IO.Path.GetExtension(file).ToUpper();

            if (srcExt == ".CUE")
            {
                cueFile = file;
            }
            else
            {
                string tmpcue = System.IO.Path.ChangeExtension(file, "cue");
                if (System.IO.File.Exists(tmpcue))
                {
                    cueFile = tmpcue;
                }
            }
            if (!string.IsNullOrEmpty(cueFile))
            {
                ConverterLib.CueReader reader = new ConverterLib.CueReader(cueFile);
                songs = reader.ReadAllSounds();
                string tmpaudio = System.IO.Path.GetDirectoryName(file) + "\\" + reader.AudioFile;
                if (System.IO.File.Exists(tmpaudio))
                {
                    audioFile = tmpaudio;
                    return;
                }
                else
                {
                    txtOutput.Text = "[!]CUE文件中指定了错误的音频文件";
                }
            }
            else
            {
                txtOutput.Text = "[!]找不到CUE文件";
            }

            if (Array.IndexOf(supportType, srcExt.Substring(1)) >= 0)
            {
                audioFile = file;
            }
            else
            {
                foreach (string sup in supportType)
                {
                    string tmpfile = System.IO.Path.ChangeExtension(file, sup);
                    if (System.IO.File.Exists(tmpfile))
                    {
                        audioFile = tmpfile;
                        break;
                    }
                }
            }
        }
        private void FindAudioFile(string file)
        {
            string srcExt = System.IO.Path.GetExtension(file).ToUpper();
            if (srcExt == ".CUE")
            {
                cueFile = file;
            }
            else
            {
                string tmpcue = System.IO.Path.ChangeExtension(file, "cue");
                if (System.IO.File.Exists(tmpcue))
                {
                    cueFile = tmpcue;
                }
            }
            if (!string.IsNullOrEmpty(cueFile))
            {
                ConverterLib.CueReader reader = new ConverterLib.CueReader(cueFile);
                songs = reader.ReadAllSounds();
                string tmpaudio = System.IO.Path.GetDirectoryName(file) + "\\" + reader.AudioFile;
                if (System.IO.File.Exists(tmpaudio))
                {
                    audioFile = tmpaudio;
                    return;
                }
                else
                {
                    txtOutput.Text = "[!]CUE文件中指定了错误的音频文件";
                }
            }
            else
            {
                txtOutput.Text = "[!]找不到CUE文件";
            }

            if (Array.IndexOf(supportType, srcExt.Substring(1)) >= 0)
            {
                audioFile = file;
            }
            else
            {
                foreach (string sup in supportType)
                {
                    string tmpfile = System.IO.Path.ChangeExtension(file, sup);
                    if (System.IO.File.Exists(tmpfile))
                    {
                        audioFile = tmpfile;
                        break;
                    }
                }
            }
        }