-
Notifications
You must be signed in to change notification settings - Fork 10
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
Sound Not Passing Through Audio Mixer & Can't Find The File in Unity Plugin. #43
Comments
I have resolved the previous issue as I had not set the index to the same number. I apologize for overlooking this detail. I now have another question: I am currently developing the plugin on an Android system. The RNBO Plugin works perfectly on the Windows system, but it does not work on the Android system. I would like to ask if I need to use the NDK mentioned in the documentation for export in order to make it work. Additionally, when I tried to use the NDK for export, I encountered issues when assigning the DCMAKE_TOOLCHAIN_FILE. The problems I encountered are as described below: C:\Users\User\Desktop\EchoFrame\rnbo.unity.audioplugin-main (1)\rnbo.unity.audioplugin-main\build_android>cmake .. -DANDROID_PLATFORM=29 -DANDROID_ABI=arm64-v8a -DCMAKE_TOOLCHAIN_FILE="C:\Program Files\Unity\Hub\Editor\2021.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\build\cmake\android.toolchain.cmake" -DRNBO_EXPORT_DIR="Z:\Documents\export\sync-cycle" -DRNBO_CPP_DIR="Z:\Documents\export\sync-cycle\rnbo" -DPLUGIN_NAME="Sync Cycle" -DANDROID_CPP_FEATURES=exceptions
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. -- Configuring incomplete, errors occurred! Sorry for the silly question, and thank you if there's any help. |
Hello, I have resolved the previous issue by using the NDK files from Unity 2022. It seems that the NDK files in the Unity 2020 LTS version had some issues. I have successfully built the .so file. However, I have encountered another issue. I would like to ask how to use the RNBO file built in the .so file as an Audio Mixer. I am unable to see the plugin in the Unity editor, so I cannot directly assign the Audio Mixer's Master to any Audio Source's Output. Is it possible to assign it directly through C# code? |
Hi @mike22199 , thank you for reaching out here. I'm glad you were able to resolve your previous issues. I'm not sure what you are describing in this latest comment -- could you give a little more context, or share any screenshots or example code? Feel free to let us know more about what you are trying to do and how you'd like to use RNBO to do it. |
Here is your translated response: Hi Alex @jinpavg , Thank you for your reply. I am currently developing a MaxMSP FFT splitting tool and constructing it into Unity using RNBO for mobile development. I aim to have this plugin work through Unity's Audio Mixer. When playing sound through Unity, I want to control the plugin's gate to determine which frequency bands can pass through. Currently, I have exported the project as a .so file using the NDK and imported this package into Unity. However, I cannot find the effect in the Audio Mixer-Effect's Add dropdown menu, unlike when exporting as a .dll file. I'm not sure if this issue is caused by the error mentioned below, or if files created using NDK cannot be edited and viewed through the Unity Editor. Therefore, I am trying to use a C# script to assign the RNBO Plugin I created into the Output field of the AudioSource in a GameObject. I hope I have explained this clearly. I will include some images below to illustrate the issue, along with my files, to help you understand my problem better. Thank you very much for your help. Here's the all file (I have two test rnbo plugin called My Custom TFF Plugin and NATIVEMobileFFT)(these two plugin is build without NDK tool, so it can work and find in Audio Mixer Effect) |
Hi @mike22199 , thank you for this additional context, I think that I understand the issue now. I see that you are making an Try this out and let me know if it works for you. |
It means that I need to build a .dll file with the same name to use it in the Unity editor. Apologies for the late reply; I will try this in the next few days. Additionally, I would like to know if this plugin is compatible with Max/MSP, as I intend to use it in my academic paper. I would like to know if it is acceptable for me to include this plugin in my academic paper. I will also cite this website in my references. Please let me know if this is okay. |
I have encountered an issue where my plugin works perfectly in the Unity Editor and when exported as an .EXE file, but fails to function as expected when exported as an Android .APK file. In my setup, I have created a .dll file and placed it in the Plugins folder. My RNBO file contains six gates, each capable of filtering sound frequencies via a buffer file. For example, when the first gate is opened, only low-frequency sounds can pass through. I have attached a audiosource to a gameObject and set its output to an AudioMixer containing the plugins. Upon startup, all gates of the plugin are set to be closed using code. I use Unity buttons to control the opening and closing of these gates. This method works flawlessly in the Unity Editor and in the .EXE build. However, when I export the project as an Android .APK file, the program fails to control the plugin parameters as expected. Upon opening the application, sound plays immediately, as if the output settings were not read or applied. I have tried using Debug.log to read the Plugin's parameter values for debugging, but this method does not seem to work for reading the parameter values of the plugin. Could you please help me identify what might be causing this issue? Is there any specific configuration needed for Android builds to ensure the plugin parameters are read and controlled correctly? Thank you for your assistance. |
Hi @mike22199 , thank you for this report. would it be possible for you to share a simple project that includes your plugin, with steps of how to set the param in the editor and then how to reproduce the problem in the android build? |
@jinpavg , Thanks for the reply, Here's my steps and project. RNBO File SetupMy RNBO file includes 6 parameters and 6 buffers. Exporting and Building the PluginI followed the process on your GitHub, exporting my RNBO file and building it into a .dll file named MobileFFTPlugin.dll. Unity SetupIn Unity, I set up multiple buttons to control the gate switches in the RNBO file. Packaging the .SO FileFollowing your tutorial, I packaged the same RNBO file into a .SO file named libMobileFFTPlugin.so, and saved it in the same folder as MobileFFTPlugin.dll. Here's the ZIP.file for my project, thank you again for this question. I also upload the Max/MSP file and buffer file here : https://drive.google.com/drive/folders/1RI4sbX4I_SChERIRd4h3ZDjiQ1mkPc60?usp=sharing |
Hi @mike22199 , thank you -- we had to make an android device available to test this, and we will test and be back in touch. Thank you for your patience and sharing this information! |
@mike22199 , I'm afraid that I can't open your .zip, I'm very sorry -- it looks like the file is corrupted, However, I've been thinking about your issue and I have an idea for something you might try. I'm wondering if the settings you used when building the plugin (using our instructions) are mismatched with Player Settings in the Unity Editor. To be specific, I wonder if you are targeting ARMv7 in Player Settings, while the plugin we build is meant for ARM64: If you set the Minimum API level to If this does not help, could you try another way to share the project with me? |
I'm closing this ticket for now, but certainly feel free to re-open if this is still a concern. |
Hello,
I encountered an issue while using the rnbo unity plugin. I created an RNBO project as shown in the image below, but after building it into a plugin, it doesn't work. When I place it in the Audio Mixer, the sound doesn't pass through. However, when I export the same file using the RNBO Web feature, it works fine.
Here are my speculations on the possible causes:
Could it be due to the inability to read the buffer file? I used the copy sample feature during export and copied the generated Media file into the export folder.
Are there any RNBO functions I used that might be unsupported, such as FFT?
I'm using Max 8.6.2 and RNBO
The text was updated successfully, but these errors were encountered: