Jump to content

  • Log In with Google      Sign In   
  • Create Account

sfml uncompatibility with .mp3, .wav suggest audio format


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 BaneTrapper   Members   -  Reputation: 1246

Like
0Likes
Like

Posted 12 November 2012 - 07:09 PM

Hello.
So far in my game development days i used .mid or .mp3 audio format, but sfml 2.0 does not accept any audio format except these
/// Here is a complete list of all the supported audio formats:
/// ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam,
/// w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.
Support so many audio formats that i never heard of. Wonder if they are any good actually, or are they ever used nowadays.

1: Suggest a good audio format for long music 1-3-5 minutes long
2: Suggest a good audio format for sound effects 1-3 seconds long
3: Suggest a program to convert the music around

Edited by BaneTrapper, 12 November 2012 - 07:11 PM.

Current projects:
The Wanderer, 2d turn based rpg style game

www.gamedev.net/topic/641117-check-up-the-wanderer/


Sponsor:

#2 thefollower   Members   -  Reputation: 197

Like
2Likes
Like

Posted 12 November 2012 - 07:15 PM

You want a lossless compressed format unless sound quality isn't a big deal then you go for lossy compressed formats. MP3 to my knowledge is not free to use, it has a license to use in your applications, so this might be why they don't support MP3 format.

Note that lossy formats will be lower in file size where as lossless formats will be larger. For example i have a 11 minute flac audio file which is pushing 80 meg in size. How ever in mp3 format its about 11meg. (Mp3 is a lossy compression format).

More reading material here:
http://en.wikipedia.org/wiki/Comparison_of_audio_formats

Edited by thefollower, 12 November 2012 - 07:25 PM.


#3 kd7tck   Members   -  Reputation: 719

Like
2Likes
Like

Posted 12 November 2012 - 07:22 PM

OGG is a container format like avi is.

Personally I would recomend the following:
Use vorbis for songs, package in ogg container.
Use flac for short sounds and also package it into ogg.
Use Audacity for converting.

#4 Bregma   Crossbones+   -  Reputation: 5439

Like
2Likes
Like

Posted 12 November 2012 - 07:24 PM

I'd suggested vorbis (usually found in an ogg container) for pretty much any audio except maybe human speech (I'd suggest ogg/speex for that).
Stephen M. Webb
Professional Free Software Developer

#5 MrDaaark   Members   -  Reputation: 3555

Like
1Likes
Like

Posted 12 November 2012 - 09:10 PM

Use Audacity for converting.

If possible go from Original -> output format, and not 1 output format to another! Just like an image, where you don't keep editing and re-saving jpgs.

#6 Servant of the Lord   Crossbones+   -  Reputation: 21008

Like
1Likes
Like

Posted 12 November 2012 - 10:49 PM

Ogg Vorbis (.ogg) is a good free alternative to .mp3, so I also vote for that.

Edited by Servant of the Lord, 12 November 2012 - 10:49 PM.

It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#7 BaneTrapper   Members   -  Reputation: 1246

Like
0Likes
Like

Posted 13 November 2012 - 05:55 AM

Thanks for the help, your the best!

Current projects:
The Wanderer, 2d turn based rpg style game

www.gamedev.net/topic/641117-check-up-the-wanderer/





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS