Read the audio input level peak in Cocoa
Posted
by Kenneth Ballenegger
on Stack Overflow
See other posts from Stack Overflow
or by Kenneth Ballenegger
Published on 2010-04-26T23:33:58Z
Indexed on
2010/04/26
23:43 UTC
Read the original article
Hit count: 284
I'm trying to make an audio-sensitive animation, and for that purpose, I'm looking for a way to look up the current audio level. I'm looking for the peak within a set amount of time. (Think the red bar that stays on for a second or so, on an audio meter.)
I've searched around for for something like this, and the only thing I could find was how to read a movie's audio levels, and how Quartz Compositions have access to this thru their iTunes Visualizer protocol.
I'm looking for a way to read this from the microphone, although I'm also interested if you know how to read this from an audio file.
Thanks!
© Stack Overflow or respective owner