SFML community forums

General => SFML projects => Topic started by: zorexx on October 29, 2011, 12:59:42 pm

Title: sfMod 1.1 - Play module files in SFML
Post 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.
Title: sfMod 1.0 - Play module files in SFML
Post by: bglaze on October 29, 2011, 01:09:45 pm
Nice man, looking forward to trying this out!
Title: sfMod 1.0 - Play module files in SFML
Post by: gsaurus on October 29, 2011, 01:35:05 pm
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?
Title: sfMod 1.0 - Play module files in SFML
Post by: zorexx on October 29, 2011, 01:41:38 pm
@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)
Title: sfMod 1.0 - Play module files in SFML
Post by: Naufr4g0 on October 29, 2011, 01:52:49 pm
Very useful! I have been looking for this library for so long...
Title: sfMod 1.0 - Play module files in SFML
Post by: gsaurus on October 29, 2011, 02:00:57 pm
Quote from: "zorexx"
static libraries do not link to their dependencies at all.

Ah, thanks, I wasn't sure about it :P
Title: sfMod 1.0 - Play module files in SFML
Post by: zorexx on October 29, 2011, 07:16:24 pm
@Naufr4g0: Glad you find it useful.  :)

@gsaurus: No problem.  :wink:
Title: sfMod 1.0 - Play module files in SFML
Post by: Haikarainen on October 30, 2011, 10:28:32 am
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.
Title: sfMod 1.0 - Play module files in SFML
Post by: zorexx on October 30, 2011, 11:55:19 am
If you're talking about jumping to a specific position in the order list, yes, you can, using the SeekOrder function:
Code: [Select]
SeekOrder(int order);
Title: Re: sfMod 1.1 - Play module files in SFML
Post by: zorexx on April 05, 2012, 07:27:14 am
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.