Looping sounds are wav sounds with a special marker at the end of the sound, they are automatically looping with the hl player (speak or spk commands), you can add such markers with some sounds editors, there are (only few) threads where the subject has already been discussed, one is pretty ancient in a ambient sound plugin released by 'Simon Logic', the other one i have in mind should date from 2013 second half.