Port LoopTracker and Sounds class from Unity version