Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cptn ndongo

Pages: [1]
1
SFML wiki / Re: Code sample on how to add Mp3 support using mpg123
« on: August 25, 2015, 06:45:34 pm »
Ok, I deleted the non-source version and everything is fine. For some reason, when I deleted it before, this also removed the link from the source page. Anyway, it works now. Thanks for helping!

2
SFML wiki / Re: Code sample on how to add Mp3 support using mpg123
« on: August 25, 2015, 06:14:16 pm »
Thank you! The page is now up at: https://github.com/SFML/SFML/wiki/Mp3-Soundfile-Reader

NOTE: The page is now also listed as the 3rd item in the navigation box to the right. It is also listed correctly with a source tag below. However, the first entry should probably be removed.

3
SFML wiki / Re: Code sample on how to add Mp3 support using mpg123
« on: August 25, 2015, 05:32:45 pm »
Yes, that's the example I meant.
So how do I add stuff to the wiki? Do I have to commit the example to the sfml github repo? Or should I simply copy an existing wiki page and edit my stuff in?

EDIT: I created a wiki page here: https://github.com/SFML/SFML/wiki/Mp3-Soundfile-Reader

How do I add it to the main page at: https://github.com/SFML/SFML/wiki/Sources ?

EDIT 2: I'm sorry, I did it wrong. I clicked Create New Page on the wiki and now my wiki page is not tagged as source and is listed as a normal page in the main overview to the right at wiki. How can I create a wiki page as a source so I can link to it on the sources page?

4
SFML wiki / Code sample on how to add Mp3 support using mpg123
« on: August 25, 2015, 04:23:11 pm »
Hello!

I wrote a small program which reads from Mp3 files and plays them. View it on github here: https://github.com/hansiC/sfml-soundfileReader-example

I based it mostly on an example I found in the wiki or on the sfml homepage some time ago. The original example directly subclassed sf::Music and implemented the mp3 support in that class. The downside to this approach is that you lose support for the natively supported formats,  wav, ogg and flac.

The prefered way is to subclass sf::SoundFileReader and register it using the static template function sf::SoundFileFactory::registerReader().

So this is what my code example demonstrates. I thought it might be a good addition to the wiki or the code examples on the homepage. Feel free to use any code from my repository.

Pages: [1]