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

Author Topic: Music in SFML 2.0  (Read 3647 times)

0 Members and 1 Guest are viewing this topic.

riddle323

  • Newbie
  • *
  • Posts: 4
    • View Profile
Music in SFML 2.0
« on: January 24, 2012, 08:29:28 am »
Hey everyone,

So I'm using SFML 2.0 and I'm having trouble loading and playing music files. Sounds work just fine however whenever I'm trying to load a music file (a .ogg for example) it seems to always give me this error:

Failed to open sound file "resources/orchestral.ogg" (Supported file format but file is malformed.)

I'm trying with the sound example using the latest version of SFML 2.0.

Has anyone else ran into this problem?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Music in SFML 2.0
« Reply #1 on: January 24, 2012, 08:45:00 am »
What's your OS?
Laurent Gomila - SFML developer

riddle323

  • Newbie
  • *
  • Posts: 4
    • View Profile
Music in SFML 2.0
« Reply #2 on: January 24, 2012, 04:30:49 pm »
Windows 7 64 bit. I thought maybe the file was corrupted or something but it runs just fine in VLC. I tried some other .ogg files and the same thing happened.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Music in SFML 2.0
« Reply #3 on: January 24, 2012, 07:33:29 pm »
Do you use the openal32.dll file which is provided by SFML?
Laurent Gomila - SFML developer

riddle323

  • Newbie
  • *
  • Posts: 4
    • View Profile
Music in SFML 2.0
« Reply #4 on: January 25, 2012, 08:03:32 am »
I am yeah.

I tried a few things like re-copy over all of the .lib, .h and .dll files from extlibs but now I think I've just made it worse. I'm getting a "The application was unable to start correctly (0xc000007b). Click OK to close the application". (I'm using Visual Studio 2010 btw).

Not really sure what to do about this. I feel like I just made a really stupid mistake on my end though.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Music in SFML 2.0
« Reply #5 on: January 25, 2012, 10:32:35 am »
Delete everything related to SFML and restart from zero ;)
Laurent Gomila - SFML developer

riddle323

  • Newbie
  • *
  • Posts: 4
    • View Profile
Music in SFML 2.0
« Reply #6 on: January 26, 2012, 07:41:43 am »
I was afraid you were going to say that lol. I'll do that and see if that fixes it. Thanks!

Gottn

  • Newbie
  • *
  • Posts: 2
    • View Profile
Error
« Reply #7 on: January 31, 2012, 08:05:16 pm »
I've got the same error 0xc000007b
Programmming

Gottn

  • Newbie
  • *
  • Posts: 2
    • View Profile
Music in SFML 2.0
« Reply #8 on: January 31, 2012, 08:07:34 pm »
Ah... I've copied the 64bit openal.dll over to my projectfile. That didn't work. So i tried with the 32bit files... That did work.
Programmming

 

anything