Example #1
0
        void SoundThread()
        {
            Profiler.SetThread();

            OpenAL.Initialize();

            while (true)
            {
                Thread.Sleep(SleepTime);
                if (State.Terminated)
                {
                    break;
                }
                if (!DoSound())
                {
                    return;
                }
            }
        }