AudioRecord cannot capture audio on beagle board?

by mm » Fri, 17 Jul 2009 10:32:19 GMT


Sponsored Links
 Hi,

  I just build the new omapdroid release.
 # repo init -u git://labs.embinux.org/repo/android/platform/beaglemanifest.git/

  The alsa_arecord, alsa_aplay and AudioTrack  is okay.

 But, when I use "Sound Recorder" application of Android
 to capture audio,  the recorded file size always equals zero.
 And I got the following log messages.

D/AudioHardwareALSA(  758): Set CAPTURE PCM format to S16_LE (Signed
16 bit Little Endian)
E/AudioHardwareALSA(  758): Unable to set channel count to 1: Invalid
argument (for CAPTURE)
W/AudioFlinger(  758): AudioRecordThread: buffer overflow
W/AudioRecord(  758): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  758): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  758): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000

 How to capture audio on beagle board using  AudioRecord ?
 Thanks advance.

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

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



Other Threads

1. Cannot view saved image until reboot

Hey all,

I am saving an image taken by the camera to a unique folder on the
sdcard.  The image saves fine, but I cannot view it in the Gallery.  I
can see it in the file system, but I cannot view the image in the
Gallery app until I reboot the phone or mount the sdcard, and then
umount.


Here's the code:


     public static void saveImageToCard (Bitmap bm, String title,
String description, Context context) {

            //replace and append the title with the correct extension
            title = title.replace(" ", "_") + ".jpg";

            File Directory = new File(Environment.getExternalStorageDirectory
() + "/myFolder");
                File file = new File(Directory.getAbsoluteFile() + "/" + title);

                if (!Directory.exists()) {
                        Directory.mkdirs();
                }

                try {
                        FileOutputStream fos = new FileOutputStream(file);
                        bm.compress(Bitmap.CompressFormat.JPEG, 100, fos);
                        fos.close();
                } catch (IOException e) {
                        e.printStackTrace();
                }

        }



As I said, the file is saved fine, I can see it in the FS, and I can
view it after the card has been umounted/mounted or rebooted.   Is it
an issue that I'm not correctly closing the file??  I don't think
that's it, but I'm not sure why I can't view the image.  I believe I
tried saving the file using getContentResolver().insert() and didn't
have this issue, but I want to save the images to a specific folder
that I create.


Any ideas?


Thanks in advance,

Mike






-- 

2. How to perform Web Search without requiring UI

Hi,
If anyone can guide me  on  how can I do a web search and get results as a
service instead of using a UI via SearchManager.  Your help will be greatly
appreciated.

regards
sunny.

--

3. Android market developer fee - annual or forever?

4. window27

5. Build Log Errors In Ubuntu 9.10

6. Splitting the homepage screen to two screens

7. htc g1 usb internet reverse tethering