Mic Blow detecting

Discussion in 'iOS Programming' started by evana, Oct 20, 2009.

  1. macrumors newbie

    Joined:
    Sep 2, 2009
    #1
    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.
     
  2. macrumors 6502a

    TodVader

    Joined:
    Sep 27, 2005
    Location:
    Quebec, Canada
    #2
    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.
     
  3. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    You have to decide what is not blowing.

    Is singing blowing? Shouting? Loud music?
     
  4. thread starter macrumors newbie

    Joined:
    Sep 2, 2009
    #4
    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.
     
  5. macrumors 68000

    Joined:
    Nov 3, 2007
    #5
    Check the sample app Speak Here. It shows how to detect and register volume coming through the mic.
     
  6. thread starter macrumors newbie

    Joined:
    Sep 2, 2009
    #6
    i have check this but it is critical i need something simple and easy:)
     
  7. macrumors 6502a

    TodVader

    Joined:
    Sep 27, 2005
    Location:
    Quebec, Canada
    #7
    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.
     
  8. macrumors member

    Joined:
    Aug 19, 2008

Share This Page