I don't suppose that GetModuleLength or something similar could be added for the next release?
I've checked the ModPlug dll and the function is there, but I can't access it through the PB framework - or I can't find it.
Module Length
If I remember correctly, soundtracks files don't have such information. Maybe in the newer formats (s3m for example), but I'm not sure. That's because modules have "looping" and "jump" functions, so a pattern can be repeated endlessly, and a song never end, so a song length information is useless. I have friends that are kind of specialists, I'll ask them.
I'll ask when I'll see them. Here's the original mod. format : http://www.fileformat.info/format/mod/s ... 3/view.htm and the xm : http://www.fileformat.info/format/xm/corion.htm
You are right, i wrote a full module engine with PB and this took me a lot of time to find the better way to play wired tricks used by some sountrackers, it isn't perfect (still need allow full backward replay) but when you find how to handle them, then, calculating the song length is not that harddjes wrote:If I remember correctly, soundtracks files don't have such information. Maybe in the newer formats (s3m for example), but I'm not sure. That's because modules have "looping" and "jump" functions, so a pattern can be repeated endlessly, and a song never end, so a song length information is useless. I have friends that are kind of specialists, I'll ask them.
