pygame.mixer.music.play() doesn't recognize Fast Tracker (.xm music format) repeat position

Viewed 1202

The problem is:

I try to play Fast Tracker module in infinite loop, but doing so just replay music from start, instead of following repeat position.

Example: (here's the source for module https://api.modarchive.org/downloads.php?moduleid=153915#zeta_force_level_2.xm)

import pygame

pygame.mixer.init()
pygame.mixer.music.load('/path/to/zeta_force_level_2.xm')
pygame.mixer.music.play(-1)

What I'm trying to achieve: Play module music in loop, each time looping on repeat position, not on start of track. Use of pygame isn't necessary: I use it because I didn't found anything suitable for playing tracker music

Thanks in advance.

1 Answers
Related