¡@

Home 

2014/10/15 ¤U¤È 10:13:39

iphone Programming Glossary: sclistener

Detecting a clap in IOS

http://stackoverflow.com/questions/11173605/detecting-a-clap-in-ios

I am not sure how to accomplish this in Objective C. I have been able to figure out how to sample the audio with SCListener Here is my attempt void levelTimerCallback NSTimer timer recorder updateMeters const double ALPHA 0.05 double peakPowerForChannel.. 1.0 ALPHA lowPassResults if recorder peakPowerForChannel 0 0 totalClapsLabel.text NSString stringWithFormat @ d total SCListener listener SCListener sharedListener if listener isListening return AudioQueueLevelMeterState levels listener levels Float32.. if recorder peakPowerForChannel 0 0 totalClapsLabel.text NSString stringWithFormat @ d total SCListener listener SCListener sharedListener if listener isListening return AudioQueueLevelMeterState levels listener levels Float32 peak levels 0 .mPeakPower..

How to detect sound frequency / pitch on an iPhone?

http://stackoverflow.com/questions/1696773/how-to-detect-sound-frequency-pitch-on-an-iphone

sound frequency is going up or down. iphone audio frequency pitch share improve this question you can try to use SCListener . It's a small open source class and very easy to use EDIT The formatter does not like the _ in the name. Here is the link...

Detecting blowing on the iPhone microphone?

http://stackoverflow.com/questions/795968/detecting-blowing-on-the-iphone-microphone

iPhone microphone I am trying to detect when the user is blowing into the mic of an iPhone. Right now I am using the SCListener class from Stephen Celis to call if SCListener sharedListener peakPower 0.99 in an NSTimer. However this returns true sometimes.. the user is blowing into the mic of an iPhone. Right now I am using the SCListener class from Stephen Celis to call if SCListener sharedListener peakPower 0.99 in an NSTimer. However this returns true sometimes when I'm not blowing. Anyone have any sample.. const double ALPHA 0.05 Do this every 'tick' of your application e.g. every 1 30 of a second double instantaneousPower SCListener sharedListener peakPower This is the key line in computing the low pass filtered value micPower ALPHA instantaneousPower..