¡@

Home 

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

iphone Programming Glossary: self.blowdetected

Detecting Blow through iPhone MIC in Cocos and then Performing animation on an image

http://stackoverflow.com/questions/12985461/detecting-blow-through-iphone-mic-in-cocos-and-then-performing-animation-on-an-i

1.0 ALPHA lowPassResults if lowPassResults 0.055 NSLog @ Blow detected with power f lowPassResults if self.blowDetected self.blowDetected YES NSLog @ Mic blow detected self changeFrame else NSLog @ Blow not detected with residual power f lowPassResults.. ALPHA lowPassResults if lowPassResults 0.055 NSLog @ Blow detected with power f lowPassResults if self.blowDetected self.blowDetected YES NSLog @ Mic blow detected self changeFrame else NSLog @ Blow not detected with residual power f lowPassResults self.blowDetected.. YES NSLog @ Mic blow detected self changeFrame else NSLog @ Blow not detected with residual power f lowPassResults self.blowDetected NO This should prevent multiple image changes for the same blow... Now this will work fine when between a blow and the next..