Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convolution Plugin - Does it come bundled already? #34

Closed
smksnutmeg opened this issue Jul 22, 2021 · 10 comments
Closed

Convolution Plugin - Does it come bundled already? #34

smksnutmeg opened this issue Jul 22, 2021 · 10 comments

Comments

@smksnutmeg
Copy link

smksnutmeg commented Jul 22, 2021

Was checking the readme (https://github.com/alessandrofama/wwise-godot-integration/blob/9475248de190576bec4a6fe3fa2f2ed660b034f0/wwise-gdnative/README.md), do I need to build the binaries myself to include the 'convolution' plugin or does it come bundled with the latest release? We are having issues getting convolution to work in our game project (we have a trial of the plugin bundled with the soundbank)

scons target=release platform=windows wwise_sdk="%WWISESDK% plugins=convolution
@alessandrofama
Copy link
Owner

alessandrofama commented Jul 23, 2021

We don't include Convolution by default, since it is not a stock plugin.

You would need to build the binaries yourself and include the convolution plugin like in the example command you posted. Do you need any help with that?

@smksnutmeg
Copy link
Author

Aha this now makes sense! I am going to give it a try and come back to you if I have any issues! Thank you!

@smks
Copy link

smks commented Jul 23, 2021

Is there a user friendly guide on all the steps required that I can follow? I see there is a pre-requisite to building the original Godot bindings.

@smks
Copy link

smks commented Jul 23, 2021

@alessandrofama
Copy link
Owner

you don't need to compile whole Godot. Check this tutorial: https://www.youtube.com/watch?v=u4OmyevtdUQ

The steps in brief: clone this repo, then build the cpp bindings:

cd godot-cpp
scons platform=windows target=debug generate_bindings=yes -j4 (number of cpu cores)
scons platform=windows target=release generate_bindings=yes -j4 (number of cpu cores)

then cd to wwise-gdnative and execute scons again:

scons target=debug platform=windows wwise_sdk="%WWISESDK%" plugins=convolution target_path=bin/
scons target=release platform=windows wwise_sdk="%WWISESDK%" plugins=convolution target_path=bin/

@smks
Copy link

smks commented Jul 23, 2021

Nice thanks!

scons target=release platform=osx wwise_sdk=/Applications/Audiokinetic/Wwise\ 2021.1.2.7629/SDK plugins=convolution target_path=bin/
scons: Reading SConscript files ...
Wwise SDK headers path: /Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/include/
Wwise SDK libs path: /Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/Mac/Release/lib/
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/wwise_gdnative.os -c -std=c++14 -g -O3 -arch x86_64 -fPIC -DAK_OPTIMIZED -DAK_CONVOLUTION -I. -I/Users/shaunstone/Personal/wwise-godot-integration/godot-cpp/godot-headers -I/Users/shaunstone/Personal/wwise-godot-integration/godot-cpp/include -I/Users/shaunstone/Personal/wwise-godot-integration/godot-cpp/include/core -I/Users/shaunstone/Personal/wwise-godot-integration/godot-cpp/include/gen -Isrc "-I/Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/include" "-I/Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/samples/SoundEngine/POSIX" src/wwise_gdnative.cpp
src/wwise_gdnative.cpp:851:17: error: no member named 'occlusion' in 'AkAcousticSurface'
                akSurfaces[0].occlusion = occlusionValue;
                ~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:948:22: error: no viable overloaded '='
        portalParams.Extent = akExtent;
        ~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
/Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/include/AK/SpatialAudio/Common/AkSpatialAudio.h:160:8: note: 
      candidate function (the implicit copy assignment operator) not viable: no known
      conversion from 'AkVector' to 'const AkExtent' for 1st argument
struct AkExtent
       ^
/Applications/Audiokinetic/Wwise 2021.1.2.7629/SDK/include/AK/SpatialAudio/Common/AkSpatialAudio.h:160:8: note: 
      candidate function (the implicit move assignment operator) not viable: no known
      conversion from 'AkVector' to 'AkExtent' for 1st argument
src/wwise_gdnative.cpp:1697:18: error: no member named 'uDiffractionFlags' in
      'AkSpatialAudioInitSettings'
        spatialSettings.uDiffractionFlags = static_cast<unsigned int>(
        ~~~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:1700:18: error: no member named 'fDiffractionShadowAttenFactor' in
      'AkSpatialAudioInitSettings'
        spatialSettings.fDiffractionShadowAttenFactor = static_cast<float>(getPlatf...
        ~~~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:1703:18: error: no member named 'fDiffractionShadowDegrees' in
      'AkSpatialAudioInitSettings'
        spatialSettings.fDiffractionShadowDegrees = static_cast<float>(getPlatformP...
        ~~~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:1721:18: error: no member named 'bEnableDirectPathDiffraction' in
      'AkSpatialAudioInitSettings'
        spatialSettings.bEnableDirectPathDiffraction = static_cast<bool>(getPlatfor...
        ~~~~~~~~~~~~~~~ ^
src/wwise_gdnative.cpp:1724:18: error: no member named 'bEnableTransmission' in
      'AkSpatialAudioInitSettings'
        spatialSettings.bEnableTransmission = static_cast<bool>(
        ~~~~~~~~~~~~~~~ ^
7 errors generated.
scons: *** [src/wwise_gdnative.os] Error 1
scons: building terminated because of errors

@alessandrofama
Copy link
Owner

alessandrofama commented Jul 23, 2021

It is trying to use SDK 2021.1.2.7629 but we support 2019.2.1.7250. If you have both installed you can replace %WWISESDK% with the path to the correct SDK.

@smks
Copy link

smks commented Jul 23, 2021

Got you, thanks! I will change to the one supported!

@smksnutmeg
Copy link
Author

All working now! Brilliant thanks as always!

@alessandrofama
Copy link
Owner

Great to hear! Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants