示例#1
0
 private static void playDummyCommands()
 {
     while (true)
     {
         var c = Console.ReadLine();
         LiveAudioPlayer.CommandRecieved(c);
     }
 }
示例#2
0
        static void Main(string[] args)
        {
            Console.WriteLine("LiveAudioPlayer service");

            LiveTrackBeamReciever.StartListening((liveBeam) =>
            {
                LiveAudioPlayer.LiveAudioStreamRecieved(liveBeam);
            });

            PlayerCommandsReciever.StartListening((command) =>
            {
                LiveAudioPlayer.CommandRecieved(command);
            });

            playDummyCommands();
        }