SFML and MP3 vs OGG
The SFML library may play ogg files but not mp3. No big deal - to convert mp3s to ogg format you have two possibilities:
- Use ffmpeg, run following command from a terminal after adapting the filenames. Please note the fat formatted section, without it the music will not be converted correctly:
ffmpeg -i test.mp3 -acodec libvorbis test.ogg - You can use the program Audacity which will allow you to load and save the file just like a classical Windows program with a GUI.
I prefer ffmpeg because it is faster to run it from the command line. However if you forget or just do not know the commands and correct options it will be easier to use Audacity.
6 Notes/ Hide
- the-software-engineer posted this