x


Errors referencing DirectX.dll from custom library DLL

I'm looking at integrating voice chat into my Unity game, and have made a custom C# library to handle this for me. It uses DirectX to read voice data from the mic and then transfers it over UDP.

However, every time I try to use any DirectX functions in my custom DLL, (and then compile it and update the DLL in my Assets/ folder) Unity gives me the following error:

Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.TypeLoadException: Could not load type 'VoiceComm.VoiceCommHandler' from assembly 'VoiceComm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

If I don't link in Microsoft.DirectX.dll my custom DLL imports fine and I can call functions on it no problem.

more ▼

asked Jun 10, 2011 at 05:50 PM

eventropy gravatar image

eventropy
138 20 26 36

Did you ever solve this? I am trying the same thing but with DirectInput and getting the same problem.

Aug 09 at 09:16 PM yeagz7
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x392
x52

asked: Jun 10, 2011 at 05:50 PM

Seen: 1480 times

Last Updated: Aug 09 at 09:16 PM