Create/Access sound loop points/markers

How can I access a sound file and get/create loop starting points or markers in Blender?

I looked at the API but didn’t find such functionality. If there isn’t, are there any python libraries that can do this?

Edit: Actually I think the aud module might be enough to pull this off.