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. How to resize an icon at run time to achieve specific size

Hello,

I am working on an android application for which I need to get
specific size of icons as I am displaying on smaller scale.
Is there a straight forward way to resize/scale an icon to achieve its
specific size.

Kind regards,
argongold

-- 

2. Help figure out why im getting one star rattings

I think my game is having some problem on some phones because some people
give my app 1 star where most are 5 stars, which is odd because i put a link
to my email in the app so that they can tell me if there is a bug or
something. But my game is spacebike, check it out on your phone and tell me
if there are any problems with it.

-- 

3. Triple DES or AES for Android

4. SDcard mount point in portable way?

5. Android CDMA/EVDO Support

6. Android Bluetooth Stack Limitations

7. IllegalStateException: database not open