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

Author Topic: extlibs...  (Read 4162 times)

0 Members and 1 Guest are viewing this topic.

Abakada

  • Newbie
  • *
  • Posts: 7
    • View Profile
extlibs...
« on: June 24, 2010, 11:17:46 pm »
I have tried to "install" the extlibs by copying the *.dll files of the bin folder to windows/system32, copying the *.lib files to the lib folder, and copying the entire headers folder to the include folder.... (that's a lot of copying...! lol...)

However, with this piece of code...
Code: [Select]
// Load a music to play
sf::Music Music;
if (!Music.OpenFromFile("Kalimba.mp3"))
     return EXIT_FAILURE;

// Play the music
Music.Play();

It gives me "Failed to open "Kalimba.mp3" for reading" in the black screen.
The Kalimba.mp3 is with the main.cpp...

Did I do it right..? (of course not....:?) What are my mistakes..?

Thanks for the help :D

Ashenwraith

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
extlibs...
« Reply #1 on: June 25, 2010, 04:34:28 am »
Currently there is only ogg and wav support

MP3 is a requested feature that will probably be implemented with a sound plug-in system in the future.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
extlibs...
« Reply #2 on: June 25, 2010, 08:20:29 am »
Quote
Currently there is only ogg and wav support

Although these are the most common ones, a lot of other formats are supported, so it's probably better if you say "Currently there is no support for MP3" ;)
Laurent Gomila - SFML developer

Ashenwraith

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
extlibs...
« Reply #3 on: June 25, 2010, 08:25:41 am »
Quote from: "Laurent"
Quote
Currently there is only ogg and wav support

Although these are the most common ones, a lot of other formats are supported, so it's probably better if you say "Currently there is no support for MP3" ;)

Good point.

Here is the list of formats in the faq--I don't know if there are any more:

ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64

Abakada

  • Newbie
  • *
  • Posts: 7
    • View Profile
extlibs...
« Reply #4 on: June 25, 2010, 12:23:27 pm »
So actually, i did "install" it properly..! That's a 110% fluke..! SCORE...!

Thanks..!

 

anything