The jlp class implements a simple command-line player for MPEG audio files. *
Esempio n. 1
0
File: jlp.cs Progetto: rejc2/utils
        static public jlp createInstance(System.String[] args)
        {
            jlp player = new jlp();

            if (!player.parseArgs(args))
            {
                player = null;
            }
            return(player);
        }
Esempio n. 2
0
File: jlp.cs Progetto: rejc2/utils
        public static void  Main(System.String[] args)
        {
            int retval = 0;

            try
            {
                jlp player = createInstance(args);
                if (player != null)
                {
                    player.play();
                }
            }
            catch (System.Exception ex)
            {
                System.Console.Error.WriteLine(ex);
                SupportClass.WriteStackTrace(ex, System.Console.Error);
                retval = 1;
            }
            System.Environment.Exit(retval);
        }
Esempio n. 3
0
 public static jlp createInstance(System.String[] args)
 {
     jlp player = new jlp();
     if (!player.parseArgs(args))
         player = null;
     return player;
 }