SFML community forums
Help => Audio => Topic started 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
-
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).
-
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.
-
And there's no other OpenAL32.dll somewhere else on your hard drive?
-
there is. theres the one that the installer for openAL puts on my HD
-
SFML uses a different openAL API implementation named openALSoft. You dont need Creative's openAl for SFML at all.
-
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?
-
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?
-
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.
-
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 :?
-
i downloaded the sdk again and it still crashes. same error message.
-
not sure what happened but i recopied the files and it works now.
-
Finally :lol:
-
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"
-
MP3 is not supported. You should rather use OGG ;)
-
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.
-
converted the file and it works perfectly. next time ill look closer at the supported formats.
thanks for the help.