MediaRecorder - No value other than 0 returned from getMaxAmplitude

by Dave Sparks » Sun, 01 Feb 2009 03:04:00 GMT


Sponsored Links
 Are you running on a G1 or on the emulator? If on the emulator, maybe
audio input isn't working correctly and it's failing to open the audio
input device.



--~--~---------~--~----~------------~-------~--~----~



MediaRecorder - No value other than 0 returned from getMaxAmplitude

by nicolas cosson » Sun, 01 Feb 2009 08:09:46 GMT


 are you testing it on the emulator or on the G1 device?

I'm not sure about it but I've read around some forums that you need a
virtual sd card to record audio on the emulator. (with the
mksdcard.exe in the tools provided with the sdk)
Some other sources also say it isn't possible to record audio on the
emulator yet.

Check if you can read/hear what you have recorded since you are using
a sdcard, maybe the sdcard is too small.

Why would you use a thread to return the max amplitude?

I am myself looking forward to record audio on the emulator and
constantly find contradictory informations about whether it's possible
or not.
the manual says it's not.

Any insight about that is appreciated in addition to the upper
problem.

thanks



On 31 jan, 15:12, "ph...@grantmidwinter.com"



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


MediaRecorder - No value other than 0 returned from getMaxAmplitude

by Dave Sparks » Sun, 01 Feb 2009 12:18:21 GMT


 You shouldn't have to reboot the device. The release() call just
forces the release of the hardware resources instead of waiting for
the garbage collector to come along.

You should always call release() in your onPause() if you are using a
singleton hardware resource like a media player, media recorder,
camera, etc.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. CPU bandwidth control for threads/apps

Does Android provide a facility to ensure certain applications and/or
threads receive a minimum of CPU bandwidth (and other apps/threads are
prevented from consuming all the CPU bandwidth)?
--~--~---------~--~----~------------~-------~--~----~

2. Service lifecycle and in-memory caching

If I have a service that contains Map with some cached objects that
I'm serving "on demand" to the Activity, then how reliable that cache
is and what are the chances that server object (and my cache) may be
dropped?
The server runs in its own thread (AIDL) and Activity binds/unbinds
from it as needed. The server also is running  periodical updates
thread which refreshes the cache (can vary from every 15 min to once/
24h). Can I expect this cache to disappear at any moment?
Also - the cache (at it's fullest) is about 100K and consists of UTF-8
String data (generally HTML), what would be a good strategy to persist
it so it can be repopulated on service's onCreate?
--~--~---------~--~----~------------~-------~--~----~

3. problem loading opengl

4. ADC2 Submit vs Upload

5. How to build Uri to an image present at the APK ?

6. Device Chooser always picks Emulator (after upgrading Ubuntu to Jaunty)...

7. SDCard error