SFML community forums

Help => Audio => Topic started by: Axel on October 19, 2009, 09:06:48 pm

Title: Audio classes crash program
Post by: Axel 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
Title: Audio classes crash program
Post by: Laurent 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).
Title: Audio classes crash program
Post by: Axel 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.
Title: Audio classes crash program
Post by: Laurent on October 21, 2009, 08:26:10 am
And there's no other OpenAL32.dll somewhere else on your hard drive?
Title: Audio classes crash program
Post by: Axel on October 23, 2009, 03:03:26 am
there is. theres the one that the installer for openAL puts on my HD
Title: Audio classes crash program
Post by: dunce 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.
Title: Audio classes crash program
Post by: Axel 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?
Title: Audio classes crash program
Post by: Laurent 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?
Title: Audio classes crash program
Post by: Axel 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.
Title: Audio classes crash program
Post by: Laurent 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 :?
Title: Audio classes crash program
Post by: Axel on November 04, 2009, 10:10:07 pm
i downloaded the sdk again and it still crashes. same error message.
Title: Audio classes crash program
Post by: Axel on November 05, 2009, 10:12:04 pm
not sure what happened but i recopied the files and it works now.
Title: Audio classes crash program
Post by: Laurent on November 05, 2009, 10:29:20 pm
Finally :lol:
Title: Audio classes crash program
Post by: Axel 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"
Title: Audio classes crash program
Post by: Laurent on November 06, 2009, 07:40:25 am
MP3 is not supported. You should rather use OGG ;)
Title: Audio classes crash program
Post by: OniLinkPlus on November 07, 2009, 12:33:24 am
Quote from: "Axel"
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"
MP3s require an expensive license to use, so SFML doesn't support MP3.
Title: Audio classes crash program
Post by: Axel on November 07, 2009, 06:40:54 am
converted the file and it works perfectly. next time ill look closer at the supported formats.
thanks for the help.