menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

+2 投票
I am on a Mac in Unity and Wwise 2017.2 and cannot resolve a "Wwise: Plug-in execution failure" when using the wwise AkAudioInput source plugin. I have looked at the unity integration documentation on using the AkAudioInput source plugin and it only says iOs audio input is not supported -- nothing else.  It does *not* say any other systems are unsupported.  The documentation offers no path forward.  What am I doing wrong?  I can plainly hear the sound in wwise.
分类:General Discussion | 用户: Kristina W. (490 分)

1个回答

+1 投票

I would just like to say that I solved it and made a script to copy/paste on my project blog.  The reason I don't post it here is because my script is larger than the character limit. 

Here is the summary from my comments in the script:

"// Basic strategy is to call UnityEngine.Microphone.Start(), which begins periodic calls to OnAudioFilterRead in the Unity DSP audio processing thread (producer thread)
// and then to call AkAudioInputManager.PostAudioInputEvent(), which begins periodic calls to AudioSamplesDelegate in an AkAudioInputManager background thread (consumer thread)

// Microphone input samples are written to a buffer in OnAudioFilterRead (producer function)
// and read from the buffer in AudioSamplesDelegate (consumer function)

// IMPORTANT:  ensure that under Edit > Project Settings > Audio, Disable Unity Audio is NOT checked"

Here: https://vraasp.wordpress.com/2018/01/24/getting-real-time-microphone-input-into-wwise-in-unity-using-the-ak-audio-input-plugin-script/

 

用户: Kristina W. (490 分)
Really excited to try this, if it works for me then I owe you one!
It will work but make sure your sample rates/audio settings are set up right (you will get the hypnotoad and/or a delay if you put a different sample rate) and be very deliberate with your routing/ ducking in the audiomixer!    Comment back to me if you run into any issues.  I can vouch for it working atm.  I'm using it right now.
i can not get callback from AkAudioInputmanager,are you do something special setting?
I have the same problem.
...