Invert microphone audiowaves

Hello guys!

I’m trying to invert the audio waves I get from my microphone. In other words; multiplying the amplitude with -1. However, how can I get the amplitude property of an audio, and do this? Is it possible?

Best regards

AudioClip myAudioClip = Microphone.Start(null, false, 1, 44100);

This gives you access to the data from your microphone in the form of an AudioClip, which you can read/write using myAudioClip.GetData() or myAudioClip.SetData().