Microphone signal ..source

by guruk » Tue, 01 Sep 2009 04:09:49 GMT

Sponsored Links
i look for a very simple example what signal arrives at my mic in
It does not need to be saved to sd-card or anything.

Just a $vol=GetVolume   (0-xxxx)
$frequ=Getfrequ (0-28000)

something like that.

The Examples I found are just overloaded and mostly to record some
seconds to sd-card. I dont need that at all, just whats the signal
now arriving :)

thanks i advance

any snippet can help


Microphone signal ..source

by Josh » Thu, 10 Sep 2009 09:14:18 GMT

 Im looking for the same thing? Can anyone help with this?


Sponsored Links

Microphone signal ..source

by Rud » Thu, 10 Sep 2009 11:19:45 GMT

 What you are asking for is a non-trivial problem. To determine the
frequency of a signal you have to capture a number of samples. Whether
they go to a memory buffer or SD is a detail. You then need to perform
a Fast Fourier Transform (or similar transform for the pedantic ones)
to determine the frequency. The more samples you collect the more
accurate the result. You need more samples to (1) make a more fine
grade determination of the frequency and (2) to increase the signal to
noise ratio.



Other Threads

1. android activity crashing after waking up from sleep

i have an activity that crashes randomly after the device resume from
a long period of sleep, the activity is forced to be landscape mode
only.  When the device resumes from sleep, the activity seems to be
redrawing itself in portrait mode, occupying half the horizontal view,
then have to force close it.
any idea?

2. Simply touching screen reduces fps

Yes, it is.

Try SpriteMethodTest, set 100 sprites, select OpenGL / Use VBO,  let
it run for a while. You will get something around 20ms / 50 fps. Now
run it second time, and simply touch screen while test is running. You
will get something around 35ms / 29 fps. So it is 15 ms difference.

As I understand, the answer is simple - it is that dispatcher thread

Setting THREAD_PRIORITY_URGENT_DISPLAY priority (will it work on non-
ADP firmware?) on renderer thread yields 30 ms / 33 fps.

Are there any other workarounds?

3. Using DDMS to send location updates

4. how to improve gps accuracy

5. AlphaAnimation not working! Help!?

6. Register Receiver for events in separate thread

7. ListActivity vs Activity what are the advantages?