CG_S_AddLoopingSound doesn't increment i in the while loop, ever.
So this could have been a bigger source for the sound problems.
Ent also had issues in jamme where it was actually being infinitely looped.