PDA

View Full Version : Blow or Shake




Giour
Jul 24, 2009, 07:26 PM
Hello people!

I am new to iphone programming so I would like to ask you, how they do it in some apps to blow in to the mic or shake??? how could I add this into my application if I want to?
Sorry again if me question is too silly!!! :)

Thank you for your time reading this!!! xxxx :apple: Alice



firewood
Jul 25, 2009, 12:48 AM
For shake, there's documentation on the Apple dev site on how to use the accelerometer delegate.

For blowing, I recommend using Audio Unit Remote IO or Audio Queue input, and feeding the PCM sample stream to a voice or music recognition DSP algorithm (there are college textbooks and research papers on the latter) and maybe follow the envelope of some of the unvoiced components.


ymmv.