SCListener: The Easy Way to Detect iPhone Microphone Sound Levels

by Peter Cooper on March 3, 2009 · 1 comment

PG48_microphone.jpg.jpeg Let’s say you have an app that requires the user blow on the microphone to perform some activity (blow out some candles, scare a virtual creature, or whatever). Instead of getting down and dirty with the complex Audio Queue Services, you can now do things in just a few lines with Stephen Celis’ SCListener.

SCListener is a small class that provides “the bare bones of iPhone microphone impedimenta” to make it a case of one method for “start to listen”, another to get the average “power”, another get the peak power, and another to stop listening. Simple as that. The code is open source and available on Github.

{ 1 trackback }

How to detect sound (like Ocarina)? - iPhone Dev SDK Forum
03.05.09 at 10:39 am

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Older post: Interview with Michael Tyson, Creator of the Audio Mixing App “Loopy”

Newer post: A Giant List of iPhone Developer Related Links