void SoundThread() { Profiler.SetThread(); OpenAL.Initialize(); while (true) { Thread.Sleep(SleepTime); if (State.Terminated) { break; } if (!DoSound()) { return; } } }