This post is basically asking for a step by step on how to set up the Native Audio Plugin SDK for Unity.
The SDK can be found here: Unity - Manual: Native audio plug-in SDK
I’m basically interested in using the example plugins from the SDK download as a template for working on my own plugins, but I’m completely experienced when it comes to setting up the development environment for compiling DLLs for use in Unity. I was thinking perhaps there may be other documentation that covers this information, such as general documentation regarding building Unity plugins, but I didn’t really know where to start looking.
EDIT/UPDATE: I found another tutorial that was titled ‘How to use Unity’s Native Audio Plugin SDK on Mac OS’. Turns out the tutorial also applies to Windows and Linux, so I’ll give this a try: How to Use Unity’s Native Audio Plugin SDK on macOS | by Othniel Cundangan | Medium
The documentation for this SDK appears to be very brief (from an audio designers perspective). It doesn’t mention at all how to actually set up the SDK. For e.g it does not say where the files in the SDK download folder are supposed to live inside a Unity project. The SDK download its self appears to be an example Unity project, so how do we ‘plug in’ the SDK files for audio plugin development to either a new or existing Unity project, so that we may then correctly recompile the C++ for the Unity plugins from Visual Studio? I did attempt to simply rebuild the example Visual Studio project, but I got this error and haven’t a clue how to fix it:
Error MSB3073 The command "mkdir …..\Assets\Plugins\x86_64
copy C:\UnityProjects\UnityNativeAudioPluginSDK\UnityNativeAudioPluginSDK\NativeCode\VisualStudio\build\Debug\AudioPluginDemo.dll …..\Assets\Plugins\x86_64\AudioPluginDemo.dll
:VCEnd" exited with code 1. AudioPluginDemo C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133
I was hoping that Visual Studio project would simply rebuild the DLL, and put any generated files into the right place.