View sound wave in unity game

Hi i was just wondering if it would be possible to make a visual sound wave for songs come up in the game, similar to audacity?

It appears AudioSource.GetOutputData and GetSpectrumData would let you do what you want -- though the docs are mighty sketchy, so it's a little hard to tell.

There's more info on the forums from someone who got a music visualizer working.