Conversation
Adds functionality so the player can actually find tracker module files(.mod, .xm, .s3m and .it) for Music and Sound.
Updates the Create() to match the new header with is_SE checking functionality Also added the parameter to the LIBXMP context
|
For context: In the chat fdelapena sent two tracker files that have loop points: It was noticed that looping isn't supported at all in our code. The proposed solution is doing loops for BGM and no loops for SE. |
|
@RPGoogles while your code works and you found the issue with the loop handlng are you okay with me proposing a different fix? In general we need a bit more control here by using the low level There are some interactions in the code you can't be aware of which will cause issues: We need a way to track the loop count (to determine whether a track played once otherwise you will e.g. softlock when going to an Inn and the Inn Music Plays). When xmp does the looping internally this won't work. There is already a |
This should be an all in one fix for the Music Looping bug when using Tracker Module formats as well as allowing Tracker Module Formats to work as Sound Effects by adding an is_sound_effect parameter that when true, sets the loop limit within libxmp to 1( loop 1 once then finish ) and when false(so a Music Track) sets the loop limit to 0 ( endless looping determined by the module file( jump commands for example ) until the Game's developer changes the BGM or ends the BGM ).