resonance-audio / resonance-audio-unity-sdk

Resonance Audio SDK for Unity
https://resonance-audio.github.io/resonance-audio/develop/unity/getting-started
Other
297 stars 38 forks source link

DllNotFoundException on Linux (Unity 2018.1.3f1) #45

Open ltpour opened 6 years ago

ltpour commented 6 years ago

I get errors like this running the demo scenes:

DllNotFoundException: audiopluginresonanceaudio
ResonanceAudio.DisableRoomEffects () (at Assets/ResonanceAudio/Scripts/ResonanceAudio.cs:75)
ResonanceAudioRoomManager.UpdateRoomEffects () (at Assets/ResonanceAudio/Scripts/ResonanceAudioRoomManager.cs:198)
ResonanceAudioRoomManager.UpdateReverbProbe (.ResonanceAudioReverbProbe reverbProbe) (at Assets/ResonanceAudio/Scripts/ResonanceAudioRoomManager.cs:134)
ResonanceAudioReverbProbe.Update () (at Assets/ResonanceAudio/Scripts/ResonanceAudioReverbProbe.cs:105)

I can hear the audio, but it's obvious none of the reverb effects are applied. This happens both in the editor and when running a build. I also tried compiling the SDK and the Unity plugin from source, but I still got the same errors. There are also warnings like this, which I'm not sure if they're related:

Plugins: Couldn't open Assets/ResonanceAudio/Plugins/x86_64/libaudiopluginresonanceaudio.so, error: Assets/ResonanceAudio/Plugins/x86_64/libaudiopluginresonanceaudio.so: undefined symbol: vorbis_analysis_headerout
ResonanceAudioListener:Update() (at Assets/ResonanceAudio/Scripts/ResonanceAudioListener.cs:90)
ResonanceAudioListener:Update() (at Assets/ResonanceAudio/Scripts/ResonanceAudioListener.cs:89)
maxwellasmith commented 5 years ago

I am having a similar issue with reverb probes. I am working in Unity 2017.1.1f1 and have tested this on OS X standalone builds and Android builds. In the Reverb Probes demo scene, the reverb probes are clearly working in both the editor in play tests and in stand alone builds. In my project, the reverb probes are working in editor play tests but NOT in the stand alone build. I get this error in the player.log when I run the stand alone build for my project:

DllNotFoundException: audiopluginresonanceaudio at (wrapper managed-to-native) ResonanceAudio:SetListenerGain (single) at ResonanceAudio.UpdateAudioListener (.ResonanceAudioListener listener) [0x00000] in :0 at ResonanceAudioListener.Update () [0x00000] in :0

Any insight would be greatly appreciated!

YandongJi commented 2 years ago

Has this solved? I'm using Unity Engine 2020.3.24f1 and the same issue still exists on my computer.