SFML community forums

Bindings - other languages => DotNet => Topic started by: NimrodsSon on August 13, 2010, 04:40:18 am

Title: Audio Trouble
Post by: NimrodsSon on August 13, 2010, 04:40:18 am
Ugh, I'm sorry, I seem to be nothing but one problem after the next. :oops:

So I've moved on to the audio part of the tutorial, but I keep getting this error:

Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'csfml-audi
o': The specified procedure could not be found. (Exception from HRESULT: 0x80070
07F)

The csfml-audio.dll is in the same directory as the other csfml dlls.  The precompiled sound sample in the .NET package runs, but when I compile the source the resulting exe will give the same error.  

I'm using Visual C# 2010 Express.  

Sorry to be such a bother.  :(
Title: Audio Trouble
Post by: Laurent on August 13, 2010, 08:37:00 am
You also need the sndfile and openal32 DLLs for the audio module.
Title: Audio Trouble
Post by: NimrodsSon on August 13, 2010, 09:37:56 am
I've got openal32.dll and libsndfile-1.dll in the same directory as the csfml dlls.
Title: Audio Trouble
Post by: Laurent on August 13, 2010, 09:53:45 am
Do you compile for 32 bits or 64 bits?
Title: Audio Trouble
Post by: NimrodsSon on August 13, 2010, 10:09:09 am
32-bit.  

I think I figured out what I did wrong.   :oops:   I set my PATH environment variable to the directory of extlibs so windows would find them, but it doesn't seem to find openal32.dll.  I don't get it, but if I just copy it to the directory of the exe it works.