The jlp class implements a simple command-line player for MPEG audio files. *
Beispiel #1
0
        static public jlp createInstance(System.String[] args)
        {
            jlp player = new jlp();

            if (!player.parseArgs(args))
            {
                player = null;
            }
            return(player);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public static jlp createInstance(System.String[] args)
 {
     jlp player = new jlp();
     if (!player.parseArgs(args))
         player = null;
     return player;
 }