SFML community forums
General => SFML projects => Topic started by: zorexx on October 29, 2011, 12:59:42 pm
-
What is sfMod?
sfMod is a static library for playing module files (tracker musics) in SFML.
sfMod uses libmodplug, and can play any format that is supported by libmodplug.
GitHub repository:
https://github.com/eXpl0it3r/sfMod (https://github.com/eXpl0it3r/sfMod)
Hand over to new maintainer:
After a long period of inactivity, I have decided to hand over this project to eXpl0it3r (https://en.sfml-dev.org/forums/index.php?action=profile;u=3414).
Please checkout the GitHub repository for the latest updates on this project.
-
Nice man, looking forward to trying this out!
-
I love mods, I will give it a try sometime, thank you :)
But why is it static by default? Isn't it better to link SFML dynamically since it's to be used by applications that also use SFML?
-
@bglaze: Will look forward to your feedbacks then. =)
@gsaurus: You're welcome. It's static to make things simpler.
Unlike dynamic libraries, static libraries do not link to their dependencies at all.
You'll have to link to them when you're using it in your project. This means that you have the freedom to choose whether to link SFML statically or dynamically. (The example links SFML dynamically)
-
Very useful! I have been looking for this library for so long...
-
static libraries do not link to their dependencies at all.
Ah, thanks, I wasn't sure about it :P
-
@Naufr4g0: Glad you find it useful. :)
@gsaurus: No problem. :wink:
-
Does it support handling patterns? Like changing the current looppattern to change the atmospheric ambient music in games to, for example, be more aggressive when in fights.
That would be awesome and the only reason I'd use it, tbh. I do love chipmod myself but in a game it could as well be mp3 for less stagger on slower computers.
-
If you're talking about jumping to a specific position in the order list, yes, you can, using the SeekOrder function:
SeekOrder(int order);
-
I'm finally done adapting sfMod to the latest SFML naming conventions.
I also added a new error handling system (the same one as sfTheora and sfMidi).
Dropped SFML 1.6 support as well, since SFML 2.0 will be released as a stable version soon.
See the changelog for the full list of changes.