PDA

View Full Version : Mic Blow detecting




evana
Oct 20, 2009, 11:36 PM
I want to blow out a candle.can anyone pls suggest me how could i do this in a easy way?or any sample of this?thanks in advance.



TodVader
Oct 20, 2009, 11:48 PM
You do it by detecting the volume of the sound coming in the mic. The rest should be easy if you want an image that moves and disappears or very complicated if you want realistic physics.

firewood
Oct 21, 2009, 12:30 AM
You have to decide what is not blowing.

Is singing blowing? Shouting? Loud music?

evana
Oct 21, 2009, 12:42 AM
You do it by detecting the volume of the sound coming in the mic. The rest should be easy if you want an image that moves and disappears or very complicated if you want realistic physics.

Thanks for you reply.actually i want to move an image using blow like Bal-Loon but i cant can you help me out to give some sample code.

Jeremy1026
Oct 21, 2009, 09:55 AM
Thanks for you reply.actually i want to move an image using blow like Bal-Loon but i cant can you help me out to give some sample code.

Check the sample app Speak Here. It shows how to detect and register volume coming through the mic.

evana
Oct 21, 2009, 09:53 PM
i have check this but it is critical i need something simple and easy:)

TodVader
Oct 22, 2009, 01:34 AM
Programming, especially for games, isn't "Simple & Easy". If you're really interested in making this product, do what people said. Check samples and learn how to do it.

Noone in their right mind will tell you exactly how to make it. Or else, We would make it and sell it ourself.

Libraries like Cocos2d can help you make it more simple graphic wise, but you still need to come up with the logic behind your idea.

Here are a couple excellent books to get you started:

-Programming in Objective-C 2.0
-Beginning iPhone development

I'd read them in that order.

Good luck.

sspbond007
Oct 22, 2009, 07:08 AM
See thread.
http://forums.macrumors.com/showthread.php?t=707691