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. displaying a line shape as a gradient

I am using the following drawable to draw a line

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
    <stroke android:width="1dp" android:color="#FFC0C0C0" />
    <size android:height="5dp" />
</shape>




displayed in the layout using,

                    <ImageView
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:src = "@drawable/line"/>



I pulled this from some example code...  a couple questions

1.  what does the android:height="5dp" mean?  If the stroke is really
the height what is the android:height do?

2.  what I really want is for the line to display as a gradient
starting at #F000 and ending at #FFFF.  I tried adding the following
to the shape xml but it does not appear to work.

<gradient android:startColor="#FF000000" android:endColor="#FFFFFFFF"
android:angle="180" />

How do I do this?

thanks, Mark
--~--~---------~--~----~------------~-------~--~----~

2. WebView as a child of an ExpandableList - Possible?

As the title asks - Is it possible to place a WebView inside an
expandable list (as a child).

I have tested this; having created a WebView I placed it as a "View"
in the getChildView() of the BaseExpandableListAdapter Class. However
I get the following error:

java.lang.ClassCastException: android.widget.AbsListView$LayoutParams
at android.widget.LinearLayout.measureVertical(LinearLayout.java:323)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:275)
at android.view.View.measure(View.java:6621)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2791)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:208)
...
...

It'd be great if I could get this to work, im fairly sure it would be
possible even if its does require a hack of some sort...

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

3. Question about Java coding good practice - Inner classes

4. Stackable Tabs?

5. Disable battery charghing while connected to USB

6. K9mail-errors : host is unresolved : mail.gmail.com:80

7. Question about Java coding good practice - Inner classes