[5.2] GetOutputData on an AudioSource now returns all zeroes if AudioSource is muted

We use beat/frequency detection in our games, and were relying on the ability to read microphone input data without the player hearing the mic feedback, hence we always muted the microphone’s AudioSource. However, Unity 5.2 makes it so that a muted AudioSource does not produce output data at all in GetOutputData.

Is this intended behavior? The 5.2 release changes don’t mention anything about this, so it was unexpected.

I think we are able to go around this by creating a mixer with the minimum allowed master volume and setting the mixer group of the microphone’s audio source to that, but we would like to hear from you.

Thanks!

There was no response here, so I submitted a bug report just in case.

Yes, it’s a bug. It was already reported by another user here: Unity Issue Tracker - AudioSource.GetOutputData does not receive audio data in script when AudioSource is muted