Пример #1
0
        static void Main(string[] args)
        {
            while (true)
            {
                try
                {
                    var options  = OptionsFromArgs();
                    var recorder = new Recorder(
                        options
                        );

                    var mp3stream = new Mp3Stream(
                        options.Url
                        );

                    recorder.ProcessFrames(
                        mp3stream.GetFrames()
                        );
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                    Console.WriteLine("Restarting...");
                }
            }
        }