-
Notifications
You must be signed in to change notification settings - Fork 2k
Using Accord.net with Unity3d(windows) error #874
Comments
for temporary fix can delete the Accord.Audio.DirectSound.dll.. in 2017 with 4.6 enabled is says, this so not sure if some problem with that file? |
Hi everyone, @AbhimanyuAryan, many thanks for opening the issue! Please, may I ask which Accord.NET assemblies do you need to load in Unity? If your application does not need audio support, you can safely remove the references to any of the Accord.Audio assemblies from your project. Regards, |
net35. So, if I'm not using Audio Support then let them be there? @cesarsouza |
You can remove them if you want. If you are not using audio, you can remove all the .Audio assemblies, such as Accord.Audio, Accord.Audio.DirectSound, Accord.Audition, etc. In the same way, if you are not using video, you can also remove all the Accord.Video assemblies such as Accord.Video, Accord.Video.FFMPEG, Accord.Video.DirectShow, etc. |
- Updates GH-874: Using Accord.net with Unity3d(windows) error
The latest pre-release version of the framework can now be installed in Unity projects through NuGet. A preliminary guide on how to install the Accord.NET Framework on Unity through NuGet is now available here. It is not perfect, though. There are a few steps which might have to be documented better. If anyone finds a problem while following them, please feel free to update this issue or open a new one here in the issue tracker! |
I've just updated the tutorial with a series with a series of screenshots. Hope it will be easier to follow now! |
@cesarsouza can you include instructions on Visual Studio Code instead of Visual Studio? Also, use Nuget CLI commands. With that, you can actually help MacOS users as well 💯 Plz, use the command line. Say restore packages with Here are some links: I know how to deal with packages in |
Hi @AbhimanyuAryan, Thanks for the suggestion. To tell the truth, I do not know much about VS code or the Another complicating factor is that the Unity editor actually performs a bunch of magic when interacting with VS. Since I do not own a Mac, I do not know how it interacts with VS code under OS X. So if you do not mind, I might need a bit of help from you as well to write a tutorial for Mac OS X users 😄 Have you been able to follow the tutorial up to a certain point? If you are stuck the part where I had switched to VS to download and install the framework's NuGet packages, I guess you can achieve the same using
Please let me know if it works for you! Regards, |
Hi @AbhimanyuAryan, From your screenshot I can see there are indeed two
or
Hopefully one of those should work! Regards, |
|
I think it's
or
|
|
I've also tried installing them through VS developer command prompt, but nothing works. I do not get the same error as you though, I get something similar to NuGet/Home#5454. Have you tried installing the packages manually (as shown in the first part of the guide)? Regards, |
Hi, I'm following this blog post.
But when I play my scene in Unity. Unity throws an error
TypeLoadException: Could not load type ‘Accord.DirectSound.AudioDeviceInfo’ from assembly ‘Accord.Audio.DirectSound, Version=3.3.0.0, Culture=neutral.
I'm using Unity2017.1 @unitycoder have you found a solution?
The text was updated successfully, but these errors were encountered: