How to loop sound

macOS Monterey 12.5
PsychoPy v2024.1.1

In a simple trial routine, I have a cue image that appears two seconds after trial onset. At the same time, I want to play a sound in a loop. In Builder, it is very easy and fuzz-free to set up this routine for the sound to play once, but I run into problems when I try to loop the sound. In a code snippet, I have inserted #my_sound.play(loops=1000) and this works. However, then the sound plays at the beginning of the trial, not two seconds in. I seem not to understand how to properly code up the bit that will give me both without causing errors or breaking my sound. Thank you in advance for a solution.