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

Author Topic: Audio Trouble  (Read 3166 times)

0 Members and 1 Guest are viewing this topic.

NimrodsSon

  • Newbie
  • *
  • Posts: 7
    • View Profile
Audio Trouble
« 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.  :(

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Audio Trouble
« Reply #1 on: August 13, 2010, 08:37:00 am »
You also need the sndfile and openal32 DLLs for the audio module.
Laurent Gomila - SFML developer

NimrodsSon

  • Newbie
  • *
  • Posts: 7
    • View Profile
Audio Trouble
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Audio Trouble
« Reply #3 on: August 13, 2010, 09:53:45 am »
Do you compile for 32 bits or 64 bits?
Laurent Gomila - SFML developer

NimrodsSon

  • Newbie
  • *
  • Posts: 7
    • View Profile
Audio Trouble
« Reply #4 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.

 

anything