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

Author Topic: Audio classes crash program  (Read 11733 times)

0 Members and 6 Guests are viewing this topic.

Axel

  • Newbie
  • *
  • Posts: 9
    • View Profile
Audio classes crash program
« on: October 19, 2009, 09:06:48 pm »
Whenever i try to create any of the Audio classes (Sound, SoundBuffer, etc) my program crashes and i get an error saying:

"The procedure entry point alcCaptureCloseDevice could not be located in the dynamic link library OpenAL32.dll"

ive reinstalled OpenAL already and copied the the DLL into the exes folder
im using the dynamic versions of the libs and im on a windows XP system

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Audio classes crash program
« Reply #1 on: October 19, 2009, 10:01:35 pm »
Quote
ive reinstalled OpenAL already and copied the the DLL into the exes folder

Don't do that. Just use the DLL provided in the SFML SDK (and make sure that there's no other version conflicting).
Laurent Gomila - SFML developer

Axel

  • Newbie
  • *
  • Posts: 9
    • View Profile
Audio classes crash program
« Reply #2 on: October 20, 2009, 08:47:10 pm »
Quote from: "Laurent"
Quote
ive reinstalled OpenAL already and copied the the DLL into the exes folder

Don't do that. Just use the DLL provided in the SFML SDK (and make sure that there's no other version conflicting).

i made sure i had the audio dll in the folder as well and still the same result.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Audio classes crash program
« Reply #3 on: October 21, 2009, 08:26:10 am »
And there's no other OpenAL32.dll somewhere else on your hard drive?
Laurent Gomila - SFML developer

Axel

  • Newbie
  • *
  • Posts: 9
    • View Profile
Audio classes crash program
« Reply #4 on: October 23, 2009, 03:03:26 am »
there is. theres the one that the installer for openAL puts on my HD

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Audio classes crash program
« Reply #5 on: October 23, 2009, 05:00:24 am »
SFML uses a different openAL API implementation named openALSoft. You dont need Creative's openAl for SFML at all.

Axel

  • Newbie
  • *
  • Posts: 9
    • View Profile
Audio classes crash program
« Reply #6 on: October 27, 2009, 07:22:12 pm »
well ive tried to compile on multiple computers and it crashes on all of them. ive redownloaded the sfml files as well and it doesnt work. are there any other things i can try?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Audio classes crash program
« Reply #7 on: October 27, 2009, 07:29:44 pm »
Quote from: "Axel"
there is. theres the one that the installer for openAL puts on my HD

Did you first get rid of this? It's easy to get things messed up with OpenAL, especially on Windows.

Is the crash still the same as in your first message?
Laurent Gomila - SFML developer

Axel

  • Newbie
  • *
  • Posts: 9
    • View Profile
Audio classes crash program
« Reply #8 on: October 29, 2009, 09:12:58 pm »
ya its the same message every time. ive tried running it without openAL on the computer and with. same each time, even on different computers.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Audio classes crash program
« Reply #9 on: October 29, 2009, 09:18:42 pm »
The message is clear enough, your DLL doesn't have the alcCaptureCloseDevice function. The one provided in the SFML SDK has this function, so I really think that you still have a problem with DLLs :?
Laurent Gomila - SFML developer

Axel

  • Newbie
  • *
  • Posts: 9
    • View Profile
Audio classes crash program
« Reply #10 on: November 04, 2009, 10:10:07 pm »
i downloaded the sdk again and it still crashes. same error message.

Axel

  • Newbie
  • *
  • Posts: 9
    • View Profile
Audio classes crash program
« Reply #11 on: November 05, 2009, 10:12:04 pm »
not sure what happened but i recopied the files and it works now.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Audio classes crash program
« Reply #12 on: November 05, 2009, 10:29:20 pm »
Finally :lol:
Laurent Gomila - SFML developer

Axel

  • Newbie
  • *
  • Posts: 9
    • View Profile
Audio classes crash program
« Reply #13 on: November 05, 2009, 10:59:15 pm »
so the program runs now but it cant load my mp3 file at all.
it doesnt load from the file or from memory.
ive tried it with 2 different files and got the same result.
when i try to load from the file it says "Failed to load '<mp3>' for reading"
and when i try from memory it says "Failed to load music from memory for reading"

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Audio classes crash program
« Reply #14 on: November 06, 2009, 07:40:25 am »
MP3 is not supported. You should rather use OGG ;)
Laurent Gomila - SFML developer