Cycling74 / rnbo.unity.audioplugin

RNBO Adapter for Unity's Native Audio Plugin
MIT License
40 stars 8 forks source link

Unity crash when playing scene with RNBO plugin #34

Closed JimPapanick closed 7 months ago

JimPapanick commented 8 months ago

I am aiming at creating simple and custom plugins to run in a mini game for Windows. Whenever I run the scene to test my sounds, Unity crashes.

I am following this tutorial here so you can imagine my setup exactly the same as his. (The plugin export/setup starts at the 8m mark) https://www.youtube.com/watch?v=OBRRrwvZ_mo

In the Crashes folder I find these two files:

crash.dmp

Editor.log

Stuff I have tested:

-Build a simpler plugin (still crashes) -Turn off the object attached with the Audio Source routed to the Mixer with the plugin (doesn't crash)

x37v commented 8 months ago

@JimPapanick one question is.. the tutorial you reference, it doesn't actually use this rnbo.unity.audioplugin but instead our older JUCE based export.. which are you using?

JimPapanick commented 8 months ago

I have followed the steps and it works. I will update for further errors.

Steps: -Downloaded RNBOTypes and moved it in a custom directory -Made an export and a build folder inside it to keep my plugins -Used cmd: mkdir build cd build cmake .. -DPLUGIN_NAME="Simple Delay" cmake --build . -That made a folder "Simple Delay" in my build folder which I then moved in RNBOTypes -Went in Package manager and installed .json file -Put an AudioSource with a random clip routed to a Mixer with my plugin.

So far so good, thank you.