Broken screen Prank is an android app that makes the screen look like it's broken.
This app has a function that says, "When you breathe, you can see the effect of burning flames on the screen."
Breathing brings out the effects of fire
Andoroid and ios sensors didn't seem to have wind sensors (Sensor hardware features available on iOS)
How do you detect that your breath has been blown in?
[Self-answer]
How to detect blow in android device microphone
The answers to the questions in are as follows:
The job of detecting when a user flows into the microphone is
separate into two parts:(1) taking input from the microphone and(2)
listening for a blooming sound.The noise/sound of someone blooming into
The mic is made up of low-frequency sounds. We'll use a low pass
filter to reduce the high frequency sounds coming in on the mic; when
The level of the filtered signal spikes we'll know someone's blooming
into the mic.
Source:
http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/
EDIT And here is some small SoundMeter class for Android:
http://code.google.com/p/android-labs/source/browse/trunk/NoiseAlert/src/com/google/android/noisealert/SoundMeter.java?r=2
In other words, the device does not have a breath or wind sensor.
It detects the noise of the microphone and makes the effect of the flame by listening to the sound of the breath.
I took a video on Youtube
https://youtu.be/FDg-BKu9CIE
Open YouTube on your PC and play a video called "The Sound of the Wind"
I'm listening to the sound of the wind on my Android microphone.
Result: Flame effect came out
© 2024 OneMinuteCode. All rights reserved.