truman2159 / rowboat

Automatically exported from code.google.com/p/rowboat
0 stars 0 forks source link

Sound Recorder does not work #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Click sound recorder application.
2. Click record.
3. Click  stop.
4. The application is terminated.

What is the expected output? What do you see instead?
This application should start to record the sound from MIC and transfer
data to *.3gp when clicking stop. However, the application is terminated
when clicking stop. logcat shows:

E/ALSALib (  799): external/alsa-lib/src/pcm/pcm.c:7231:(snd_pcm_recover)
underrun occured
I/dalvikvm(  819): DexOpt: mismatch dep signature for
'/data/dalvik-cache/system@framework@framework.jar@classes.dex'
D/installd(  802): DexInv: --- BEGIN '/system/app/SoundRecorder.apk' ---
D/dalvikvm( 1113): DexOpt: load 40ms, verify 105ms, opt 0ms
D/installd(  802): DexInv: --- END '/system/app/SoundRecorder.apk'
(success) ---
I/ActivityManager(  819): Displayed activity
com.android.soundrecorder/.SoundRecorder: 1249 ms (total 1249 ms)
I/WindowManager(  819): Checking dispatch to: Window{43a70508 Keyguard
paused=false}
I/WindowManager(  819): Not visible!
I/WindowManager(  819): Checking dispatch to: Window{43a6cdb8 StatusBar
paused=false}
I/WindowManager(  819): Checking dispatch to: Window{43ac7db8
StatusBarExpanded paused=false}
I/WindowManager(  819): Not visible!
I/WindowManager(  819): Checking dispatch to: Window{43abce90 TrackingView
paused=false}
I/WindowManager(  819): Not visible!
I/WindowManager(  819): Checking dispatch to: Window{43b26f20
com.android.soundrecorder/com.android.soundrecorder.SoundRecorder paused=false}
E/ALSALib (  799): external/alsa-lib/src/pcm/pcm.c:7231:(snd_pcm_recover)
underrun occured
E/ALSALib (  799):
external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM
AndroidRecord_Speaker_normal
E/ALSALib (  799):
external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM
AndroidRecord_Speaker
E/ALSALib (  799):
external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM
AndroidRecord
I/AudioHardwareALSA(  799): Initialized ALSA CAPTURE device default
D/AudioHardwareALSA(  799): Set CAPTURE PCM format to S16_LE (Signed 16 bit
Little Endian)
D/AudioHardwareALSA(  799): Using 1 channel for CAPTURE.
D/AudioHardwareALSA(  799): Set CAPTURE sample rate to 8000 HZ
D/AudioHardwareALSA(  799): Buffer size: 2048
D/AudioHardwareALSA(  799): Latency: 256000
D/AudioHardwareALSA(  799): Acoustics set_acoustics stub called with 7.
W/AudioFlinger(  799): AudioRecordThread: buffer overflow
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
I/WindowManager(  819): Checking dispatch to: Window{43a70508 Keyguard
paused=false}
I/WindowManager(  819): Not visible!
I/WindowManager(  819): Checking dispatch to: Window{43a6cdb8 StatusBar
paused=false}
I/WindowManager(  819): Checking dispatch to: Window{43ac7db8
StatusBarExpanded paused=false}
I/WindowManager(  819): Not visible!
I/WindowManager(  819): Checking dispatch to: Window{43abce90 TrackingView
paused=false}
I/WindowManager(  819): Not visible!
I/WindowManager(  819): Checking dispatch to: Window{43b26f20
com.android.soundrecorder/com.android.soundrecorder.SoundRecorder paused=false}
E/ALSALib (  799): external/alsa-lib/src/pcm/pcm.c:7231:(snd_pcm_recover)
underrun occured
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
D/dalvikvm(  819): GC freed 37178 objects / 1769480 bytes in 111ms
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
D/dalvikvm( 1058): GC freed 200 objects / 9832 bytes in 70ms
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  799): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000

What version of the product are you using? On what operating system?
Android 1.6 by rowboat for OMAP3EVM

Original issue reported on code.google.com by michaelw...@gmail.com on 29 Mar 2010 at 1:49

GoogleCodeExporter commented 9 years ago
Does anyone check this problem?

Original comment by michaelw...@gmail.com on 31 Mar 2010 at 3:04

GoogleCodeExporter commented 9 years ago
I know how to solve now, thank you.

Original comment by michaelw...@gmail.com on 7 Apr 2010 at 2:02

GoogleCodeExporter commented 9 years ago
How did you solve it?

Original comment by alexande...@gmail.com on 17 Apr 2010 at 10:44

GoogleCodeExporter commented 9 years ago
Hi michael,

     How did you solve that Issue...?
Please reply....

Original comment by ckumar...@gmail.com on 23 Jun 2010 at 7:38

GoogleCodeExporter commented 9 years ago
He solved by using the alsa_amixer command to enable the capture device. Also, 
need to create a symbolic link to alsa_arecord from alsa_aplay.

Original comment by bmcc...@gmail.com on 13 Jul 2010 at 9:07

GoogleCodeExporter commented 9 years ago
I m getting this error on using alsa_arecord,created by sym link to alsa_aplay

arecord: main:496: bad speed value 0

Original comment by mfasi...@gmail.com on 13 Aug 2010 at 8:57

GoogleCodeExporter commented 9 years ago
Hi ,
I am also trying the play the audio through the FAST TOOL , I am getting same 
error :-

I/        ( 1060): [purpose] Playing STEREO sound with WIRED HEADSET (NORMAL 
MODE) at 44100 Hz 
I/        ( 1060): Opening the output stream
D/AudioHardwareALSA( 1060): openOutputStream called for devices: 0x00000004
D/ALSAModule( 1060): open called for devices 00000004 in mode 0...
D/ALSAModule( 1060): open called for device AndroidPlayback_Headset_normal
E/ALSAModule( 1060): status_t s_open device: Unknown error: -16
E/ALSALib ( 1060): external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) 
Unknown PCM AndroidPlayback_Headset
E/ALSAModule( 1060): status_t s_open device: Unknown error: -2
E/ALSALib ( 1060): external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) 
Unknown PCM AndroidPlayback
E/ALSAModule( 1060): status_t s_open device: Unknown error: -2
E/ALSAModule( 1060): Failed to Initialize any ALSA PLAYBACK device: Unknown 
error: -16

Could you tell me how did you solve the problem ?

Original comment by narendra...@gmail.com on 23 Nov 2011 at 10:12

GoogleCodeExporter commented 9 years ago
Hi,

How to use that alsamixer command.

Can you please give me detailed steps to overcome that error.

My project is stopped due to that.

Original comment by Vvn2...@gmail.com on 20 Jun 2014 at 6:56