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

Author Topic: Music Error  (Read 4705 times)

0 Members and 1 Guest are viewing this topic.

Shay9999

  • Newbie
  • *
  • Posts: 24
    • View Profile
Music Error
« on: June 11, 2011, 04:15:20 am »
Code: [Select]

sf::Music Music1;
if(Music1.OpenFromFile("DevoWhip.mp3"))
Music1.Play();



Console:
Quote

Failed to read sound file "DevoWhip.mp3" (File contains data in an unknown format.)
Failed to open "DevoWhip.mp3" for reading


So, what did I do wrong >_<!?

Please help :(
C++-Trainee
SFML-Trainee

Xander314

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://sfmlcoder.wordpress.com/
    • Email
Music Error
« Reply #1 on: June 11, 2011, 09:13:35 am »
Don't think SFML supports MP3, probably for licensing reasons. Consider using OGG files instead.

Disch

  • Full Member
  • ***
  • Posts: 220
    • View Profile
Music Error
« Reply #2 on: June 11, 2011, 09:16:43 am »
oggs are pretty much superior anyway  ;P

mp3 is only around because of familiarity and portable devices *cough*ipod*cough* seem to refuse to want to support ogg.

EDIT:  also, +1 for your musical taste.  Devo rocks.

Xander314

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://sfmlcoder.wordpress.com/
    • Email
Music Error
« Reply #3 on: June 11, 2011, 11:22:54 am »
Yeah it's a shame my walkman and Marantz CD player won't do OGG.

I am looking up Devo now :p

Shay9999

  • Newbie
  • *
  • Posts: 24
    • View Profile
Music Error
« Reply #4 on: June 11, 2011, 09:00:46 pm »
Same message with the ogg file
C++-Trainee
SFML-Trainee

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Music Error
« Reply #5 on: June 11, 2011, 09:02:19 pm »
How did you convert it? Do you get the exact same error message?
Laurent Gomila - SFML developer

Shay9999

  • Newbie
  • *
  • Posts: 24
    • View Profile
Music Error
« Reply #6 on: June 11, 2011, 10:06:49 pm »
I used this program:
http://download.cnet.com/Free-MP3-WMA-OGG-Converter/3000-2140_4-10793572.html

and it said the exact same but it had .ogg as the extension.
C++-Trainee
SFML-Trainee

Shay9999

  • Newbie
  • *
  • Posts: 24
    • View Profile
Music Error
« Reply #7 on: June 11, 2011, 10:14:09 pm »
The error message was the same, I meant. But it had a .ogg instead of .mp3 on the file name.
C++-Trainee
SFML-Trainee

Shay9999

  • Newbie
  • *
  • Posts: 24
    • View Profile
Music Error
« Reply #8 on: June 11, 2011, 11:17:05 pm »
Aww, nevermind, it was a stupid mistake that I don't want to bring up =D

Thanks for the help guys!
C++-Trainee
SFML-Trainee

vgambit

  • Newbie
  • *
  • Posts: 5
    • View Profile
Music Error
« Reply #9 on: July 09, 2011, 03:14:17 am »
You aren't the only one who makes stupid mistakes. What was the solution?

  • Guest
Music Error
« Reply #10 on: September 29, 2011, 01:01:24 pm »
I am also geeting sound error frequently in the sigmatel driver...if you know the solution for this issue please share with me..

Cegonsoft
_________________________
Cegonsoft foundation

 

anything