def looping_sound(name):
    sound = load_sound(name)
    looper = pyglet.media.SourceGroup(sound.audio_format, None)
    looper.loop = True
    looper.queue(sound)
    player = pyglet.media.Player()
    player.queue(looper)
    return player

## Define entity classes ##
Load a sound from the `sfx` directory and configure it too loop
dataset/ETHPy150Open caseman/grease/examples/blasteroids3.py/looping_sound