La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

Is it possible to get Spectrum data without making a custom plugin in Unity?

+1 vote

I'm wondering if it's possible to get spectrum data similarly to how you do it in Unity's built in audio engine.

In Unity you just call AudioSource.GetSpectrumData(float[] samples, int channelFFTWindow window). 

Googling around every answer from a couple years back mentions the need to make your own custom plugin or some weird workarounds to do it. Seeing as it's a feature available in Unity already, and also in FMOD (see here: https://qa.fmod.com/t/getting-spectrum-of-master-channel-in-unity/12579) I wondered if it was alreay available in Wwise.

Thanks!

demandé 11-Nov-2020 dans General Discussion par Martin P. (110 points)

1 Réponse

0 votes
Hi,
Perhaps you could try using Puredata+Heavy to create a multi-band volume meter plugin for your design.
You can see how it's done in our recent live Stream:
Located at: https://youtu.be/F06FphCm6Is?t=4691
Throughout the broadcast,

I showed the creation of the Puredata patch,
the download and configuration of Heavy,
and the deployment of the plugin.
This solution has some limitations,
but is perfectly fine if you are working on an experimental project!
In short,
a custom plug-in is used to take the volume of different frequency bands from the audio signal and output them as RTPC values.
Hope this can help you,
any follow-up questions are welcome to add in the following
Best regards,
Hou Chenzhong
répondu 11-Nov-2020 par Hou Chenzhong (Audiokinetic) (6,010 points)
Thanks for answering! Sadly I need the exact spectrum sample, because I need to send that to a plugin to record the audio output from Wwise. It's used for replays.
...