Beispiel #1
0
        public static IWavConverter GetWavConverter(string src)
        {
            IWavConverter conv  = null;
            string        extUp = System.IO.Path.GetExtension(src).ToUpper();

            switch (extUp)
            {
            case ".APE":
                conv = new ApeWavConverter();
                break;

            case ".FLAC":
                conv = new FlacWavConverter();
                break;

            case ".TTA":
                conv = new TtaWavConverter();
                break;

            case ".WAV":
                conv = new WavWavConverter();
                break;
            }
            return(conv);
        }
 public static IWavConverter GetWavConverter(string src)
 {
     IWavConverter conv=null;
     string extUp = System.IO.Path.GetExtension(src).ToUpper();
     switch (extUp)
     {
         case ".APE":
             conv = new ApeWavConverter();
             break;
         case ".FLAC":
             conv = new FlacWavConverter();
             break;
         case ".TTA":
             conv = new TtaWavConverter();
             break;
         case ".WAV":
             conv = new WavWavConverter();
             break;
     }
     return conv;
 }