playMaker

Author Topic: Get Mic Input Loudness custom action Fix  (Read 719 times)

rodrigodorta

  • Playmaker Newbie
  • *
  • Posts: 7
Get Mic Input Loudness custom action Fix
« on: July 07, 2020, 05:10:41 PM »
Hello,

I've been trying to use the action get Mic Input Loudness on a project, using Unity 2019.2.6f1 .
When I imported the custom action, I got a couple of errors in the Mic Input script - “AudioClip ” does not take a constructor that takes 0 arguments .

The solution, in my case, was opening the script and changing the lines of code, 39 and 40 to
"
   AudioClip _clipRecord = null;
   AudioClip _recordedClip = null;

"

And that fixed the issue and I was able to correctly use the action!  :)

Just a heads up to anyone getting the same error,

Thanks!

« Last Edit: July 07, 2020, 05:12:12 PM by rodrigodorta »