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

Author Topic: Cant load any music-files  (Read 4571 times)

0 Members and 1 Guest are viewing this topic.

mjaoo

  • Newbie
  • *
  • Posts: 9
    • View Profile
Cant load any music-files
« on: July 20, 2009, 01:27:22 am »
Code: [Select]
   sf::Music Music;
    if (!Music.OpenFromFile("X.mp3")){}
    Music.Play();



My console says:  Failed to open "X.mp3" for reading
Failed to play audio stream : sound parameters have not been initaialized <call initialize first>


This was working on XP but not on my vistacomp

>.< Ty for any help.

klusark

  • Newbie
  • *
  • Posts: 45
    • View Profile
Cant load any music-files
« Reply #1 on: July 20, 2009, 04:12:44 am »
Are you sure that the sound file is in the same folder as the executible?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Cant load any music-files
« Reply #2 on: July 20, 2009, 07:42:55 am »
mp3 is not supported.
Laurent Gomila - SFML developer

mjaoo

  • Newbie
  • *
  • Posts: 9
    • View Profile
Cant load any music-files
« Reply #3 on: July 20, 2009, 09:10:50 am »
*feeling dumb* ty haha!