Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Unity integration no ak array function definitions

0 votes

I'm downloaded teh 2015.1 Unity 5 integration, import the assets and get these error messages:

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(51,42): error CS1502: The best overloaded method match for `AkArrayAllocatorAlignedSimd.AkArrayAllocatorAlignedSimd(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(51,68): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkArrayAllocatorAlignedSimd'

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(51,42): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(51,64): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkArrayAllocatorDefault'

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(51,38): error CS1502: The best overloaded method match for `AkArrayAllocatorDefault.AkArrayAllocatorDefault(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(51,38): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(64,55): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkVolumeOffset'

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(64,29): error CS1502: The best overloaded method match for `AkVolumeOffset.AkVolumeOffset(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(64,29): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolDefault.cs(50,57): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_ArrayPoolDefault'

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolDefault.cs(50,31): error CS1502: The best overloaded method match for `ArrayPoolDefault.ArrayPoolDefault(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolDefault.cs(50,31): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolLEngineDefault.cs(50,72): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_ArrayPoolLEngineDefault'

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolLEngineDefault.cs(50,38): error CS1502: The best overloaded method match for `ArrayPoolLEngineDefault.ArrayPoolLEngineDefault(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolLEngineDefault.cs(50,38): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Windows/AkSpeakerVolumes_Windows.cs(124,57): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkSpeakerVolumes'

Assets/Wwise/Deployment/API/Generated/Windows/AkSpeakerVolumes_Windows.cs(124,31): error CS1502: The best overloaded method match for `AkSpeakerVolumes.AkSpeakerVolumes(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Windows/AkSpeakerVolumes_Windows.cs(124,31): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

 

 

2013.2.9 working

 

 

 

asked Jul 17, 2015 in General Discussion by Vass E. (100 points)

1 Answer

0 votes

From what I understand, you are trying to migrate an existing Unity project from 2013.2.9 to 2015.1? If this is the case, you should follow these steps:

  1. Make a backup of your existing Unity project
  2. Import WwiseUnityIntegration_v2015.1_Windows.unitypackage (or Mac, if you are using one) to your Unity project.
  3. When the migration window appears, click "Start"
  4. Wait for the "Migration completed successfully" message to appear in the console window
I just tried the steps starting from a project using 2013.2.9, and it works correctly.
 
Are you updating from an even older Wwise version?
answered Aug 11, 2015 by Benoit S. (Audiokinetic) (16,020 points)
Hi

I'm migrate 2013.2.5 (SDK version in AkWwiseSDKVersion.h)

In the old version i found these functions in AkSoundEnginePINVOKE_Windows.cs:
#if AK_ARCH_WINDOWS_WIN32
  [DllImport("AkSoundEngine_Win32", EntryPoint="CSharp_new_AkArrayAllocatorAlignedSimd")]
#elif AK_ARCH_WINDOWS_X64
  [DllImport("AkSoundEngine_x64", EntryPoint="CSharp_new_AkArrayAllocatorAlignedSimd")]
#else
  [DllImport("AkSoundEngine_Win32", EntryPoint="CSharp_new_AkArrayAllocatorAlignedSimd")]
#endif
  public static extern IntPtr CSharp_new_AkArrayAllocatorAlignedSimd();


but, when i updated to the 2015.1, and search these text: "CSharp_new_AkArrayAllocatorAlignedSimd", not found!

I modified the AkSoundEnginePINVOKE_Windows.cs and add the correct dll definitions, the project successfully built and running, but i get error message from wwise project manager app (gameobject not registered), but it is an other problem :)

i try again, and write  the result!
I make your steps, but get same result:


-----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll

Compilation failed: 18 error(s), 0 warnings

-----CompilerOutput:-stderr----------

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(51,68): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkArrayAllocatorAlignedSimd'

Assets/Wwise/Deployment/API/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs(14,7): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(51,42): error CS1502: The best overloaded method match for `AkArrayAllocatorAlignedSimd.AkArrayAllocatorAlignedSimd(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(18,12): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(51,42): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(51,64): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkArrayAllocatorDefault'

Assets/Wwise/Deployment/API/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs(14,7): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(51,38): error CS1502: The best overloaded method match for `AkArrayAllocatorDefault.AkArrayAllocatorDefault(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(18,12): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(51,38): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(64,55): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkVolumeOffset'

Assets/Wwise/Deployment/API/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs(14,7): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(64,29): error CS1502: The best overloaded method match for `AkVolumeOffset.AkVolumeOffset(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(18,12): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(64,29): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolDefault.cs(50,57): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_ArrayPoolDefault'

Assets/Wwise/Deployment/API/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs(14,7): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolDefault.cs(50,31): error CS1502: The best overloaded method match for `ArrayPoolDefault.ArrayPoolDefault(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolDefault.cs(18,12): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolDefault.cs(50,31): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolLEngineDefault.cs(50,64): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_ArrayPoolLEngineDefault'

Assets/Wwise/Deployment/API/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs(14,7): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolLEngineDefault.cs(50,38): error CS1502: The best overloaded method match for `ArrayPoolLEngineDefault.ArrayPoolLEngineDefault(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolLEngineDefault.cs(18,12): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Common/ArrayPoolLEngineDefault.cs(50,38): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

Assets/Wwise/Deployment/API/Generated/Windows/AkSpeakerVolumes_Windows.cs(124,57): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkSpeakerVolumes'

Assets/Wwise/Deployment/API/Generated/Windows/AkSoundEnginePINVOKE_Windows.cs(14,7): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Windows/AkSpeakerVolumes_Windows.cs(124,31): error CS1502: The best overloaded method match for `AkSpeakerVolumes.AkSpeakerVolumes(System.IntPtr, bool)' has some invalid arguments

Assets/Wwise/Deployment/API/Generated/Windows/AkSpeakerVolumes_Windows.cs(18,12): (Location of the symbol related to previous error)

Assets/Wwise/Deployment/API/Generated/Windows/AkSpeakerVolumes_Windows.cs(124,31): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'

-----EndCompilerOutput---------------

- Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll
Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(51,68): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkArrayAllocatorAlignedSimd'
 
(Filename: Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs Line: 51)

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(51,42): error CS1502: The best overloaded method match for `AkArrayAllocatorAlignedSimd.AkArrayAllocatorAlignedSimd(System.IntPtr, bool)' has some invalid arguments
 
(Filename: Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs Line: 51)

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs(51,42): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'
 
(Filename: Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorAlignedSimd.cs Line: 51)

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(51,64): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkArrayAllocatorDefault'
 
(Filename: Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs Line: 51)

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(51,38): error CS1502: The best overloaded method match for `AkArrayAllocatorDefault.AkArrayAllocatorDefault(System.IntPtr, bool)' has some invalid arguments
 
(Filename: Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs Line: 51)

Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs(51,38): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'
 
(Filename: Assets/Wwise/Deployment/API/Generated/Common/AkArrayAllocatorDefault.cs Line: 51)

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(64,55): error CS0117: `AkSoundEnginePINVOKE' does not contain a definition for `CSharp_new_AkVolumeOffset'
 
(Filename: Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs Line: 64)

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(64,29): error CS1502: The best overloaded method match for `AkVolumeOffset.AkVolumeOffset(System.IntPtr, bool)' has some invalid arguments
 
(Filename: Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs Line: 64)

Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs(64,29): error CS1503: Argument `#1' cannot convert `object' expression to type `System.IntPtr'
 
(Filename: Assets/Wwise/Deployment/API/Generated/Common/AkVolumeOffset.cs Line: 64)

....
I tried the new version: WwiseUnityIntegration_v2015.1.1_Windows.unitypackage
but get same errors :(

I try to install plugin:
Wwise: Failed to copy. Source is missing: D:/work/mygame/game/Assets\Wwise\Deployment\Plugins\Windows\x64\Profile.
UnityEngine.Debug:LogError(Object)
AkUnityAssetsInstaller:RecursiveCopyDirectory(DirectoryInfo, DirectoryInfo, String[]) (at Assets/Wwise/Editor/WwiseMenu/Common/AkUnityPluginInstallerBase.cs:118)
AkUnityPluginInstallerBase:InstallPluginByArchConfig(String, String) (at Assets/Wwise/Editor/WwiseMenu/Common/AkUnityPluginInstallerBase.cs:215)
AkWwiseMenu_Windows:InstallPlugin_x64_Profile() (at Assets/Wwise/Editor/WwiseMenu/Windows/AkWwiseMenu_Windows.cs:36)

Failed to install plugin for Windows (x64, Profile) from D:/work/mygame/game/Assets\Wwise\Deployment\Plugins\Windows\x64\Profile to D:/work/mygame/game/Assets\Plugins.
UnityEngine.Debug:LogError(Object)
AkUnityPluginInstallerBase:InstallPluginByArchConfig(String, String) (at Assets/Wwise/Editor/WwiseMenu/Common/AkUnityPluginInstallerBase.cs:218)
AkWwiseMenu_Windows:InstallPlugin_x64_Profile() (at Assets/Wwise/Editor/WwiseMenu/Windows/AkWwiseMenu_Windows.cs:36)
This error should be harmless. It usually means Unity failed to copy the AkSoundEngine.dll to the Assets/Plugins folder. If you restart the Unity Editor, the error should go away and you should be able to use the integration.
...