Add vanilla-compatible range limiting for playloopsound (Fixes #244, Fixes #1342)