Esempio n. 1
0
        static void Main(string[] args)
        {
            BeepPlayer player = new BeepPlayer();
            player.FromFile("test.abc");
            player.Play();

            while (player.Playing) {
                player.Update();

                // be nice to the CPU
                System.Threading.Thread.Sleep(1);
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            BeepPlayer player = new BeepPlayer();

            player.FromFile("test.abc");
            player.Play();

            while (player.Playing)
            {
                player.Update();

                // be nice to the CPU
                System.Threading.Thread.Sleep(1);
            }
        }