Getting irrklang - to work in sharpdevelop

803 views Asked by At

I have downloaded the irrKlang sound library, and since I'm using C# with sharpdevelop I have: a) Added a reference to the DLL such that irrKlang.NET4 appears under References in the project tree. b) Added the statement 'using IrrKlang.NET4;' to my code, which corresponds exactly to one of the example programs provided.

When I try to compile, SD tells me that the type or namespace name NET4 doesn't exist (are you missing an assembly reference).

If I change the using statement to 'using IrrKlang;' as (rather confusingly) appears in another .net example program, my application compiles but I get the runtime error "Error: Could not load file or assembly 'irrKlang.NET4, Version .... or one of it's dependencies. An attempt was made to load a program with an incorrect format".

What is going on here? Any ideas?

Thanks in advance

2

There are 2 answers

3
GreatJobBob On

It looks like that assembly was not constructed properly

instead of

using irrKlang.Net4;

change it to

using irrKlang;

and all is well :)

0
Dare The Darkness On

IrrKlang comes preloaded with various versions for different .NET distributions - both x32 an x64. Make sure you're using the correct one, also set your target build for the corresponding .NET version you're using... And yes, you should be doing :

using IrrKlang;

.just an idea...