hi,

have you a asound.conf? if you have not, please try it.

and your problem seems opposite to me :(

i can't get the audio recorder work for such a long time.
would you like to share you solution with me?

question-1: when recording, what is the number of channelCount, 1
maybe an invalid argument, right?

question-2: from the log, your capture bufferSize is 3072, how did you
decide it properly?

question-3: my problem is that in AudioFlinger.cpp
record::threadLoop()
because of the 'buffer.frameCount != inFrameCount', it is always being
the overflow situation,
someone suggested commending that sentense, but after that, the
recorder is still without any voice.
would you like to tell me something about it?

Thanks a lot.

Best regards

On Feb 5, 7:58 pm, தங்கமணி அருண் <thangam.ar...@gmail.com> wrote:
> i able to hear sound and able to record voic.
>
> But if play back the recorded voice, i can hear noisy voice. Its not clear
> at all.
>
> Any one please tell me, what am i missing??  what to do to resolve this
> issue??
> *
> LOG: While recording*
>
> E/MediaPlayer(  769): Unable to to create media player
> W/AudioService(  769): MediaPlayer IOException: java.io.IOException:
> setDataSource failed.: status=0x80000000
> V/AudioHardwareALSA(  753): setInputStream format 1, channalCount 1,
> sampleRate 8000
> E/ALSALib (  753):
> external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM
> AndroidPlayback_Speaker_normal_32000
> E/ALSALib (  753): external/alsa-lib/src/control/setup.c:555:(add_elem)
> Cannot obtain info for CTL elem (MIXER,'Speaker Function',0,0,0): No such
> file or diy
> E/ALSALib (  753): external/alsa-lib/src/control/setup.c:555:(add_elem)
> Cannot obtain info for CTL elem (MIXER,'Speaker Function',0,0,0): No such
> file or diy
> E/ALSALib (  753): external/alsa-lib/src/control/setup.c:555:(add_elem)
> Cannot obtain info for CTL elem (MIXER,'Speaker Function',0,0,0): No such
> file or diy
> I/AudioHardwareALSA(  753): Initialized ALSA PLAYBACK device default
> V/AudioHardwareALSA(  753): Set PLAYBACK PCM format to S16_LE (Signed 16 bit
> Little Endian)
> V/AudioHardwareALSA(  753): Using 1 channel for PLAYBACK.
> V/AudioHardwareALSA(  753): Set PLAYBACK sample rate to 8000 HZ
> V/AudioHardwareALSA(  753): Buffer size: 4096
> V/AudioHardwareALSA(  753): Latency: 512000
> E/ALSALib (  753): external/alsa-lib/src/control/setup.c:555:(add_elem)
> Cannot obtain info for CTL elem (MIXER,'Capture Volume',0,0,0): No such file
> or direy
> E/ALSALib (  753):
> external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM
> AndroidRecord_Speaker_normal
> E/ALSALib (  753):
> external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM
> AndroidRecord_Speaker
> E/ALSALib (  753):
> external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM
> AndroidRecord
> I/AudioHardwareALSA(  753): Initialized ALSA CAPTURE device default
> V/AudioHardwareALSA(  753): Set CAPTURE PCM format to S16_LE (Signed 16 bit
> Little Endian)
> V/AudioHardwareALSA(  753): Using 1 channel for CAPTURE.
> V/AudioHardwareALSA(  753): Set CAPTURE sample rate to 8000 HZ
> V/AudioHardwareALSA(  753): Buffer size: 3072
> V/AudioHardwareALSA(  753): Latency: 384000
> D/AcousticsModule(  753): Acoustics open stub called with 7.
> E/MediaPlayer(  769): Unable to to create media player
> W/AudioService(  769): MediaPlayer IOException: java.io.IOException:
> setDataSource failed.: status=0x80000000
> D/AcousticsModule(  753): Acoustics close stub called.
> V/AudioHardwareALSA(  753): recoverOutputStream
> E/AudioHardwareALSA(  753): Unknown PCM format 0. Forcing default
> E/ALSALib (  753):
> external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM
> AndroidPlayback_Speaker_normal_44100
> E/ALSALib (  753): external/alsa-lib/src/control/setup.c:555:(add_elem)
> Cannot obtain info for CTL elem (MIXER,'Speaker Function',0,0,0): No such
> file or diy
> E/ALSALib (  753): external/alsa-lib/src/control/setup.c:555:(add_elem)
> Cannot obtain info for CTL elem (MIXER,'Speaker Function',0,0,0): No such
> file or diy
> E/ALSALib (  753): external/alsa-lib/src/control/setup.c:555:(add_elem)
> Cannot obtain info for CTL elem (MIXER,'Speaker Function',0,0,0): No such
> file or diy
> I/AudioHardwareALSA(  753): Initialized ALSA PLAYBACK device default
> V/AudioHardwareALSA(  753): Set PLAYBACK PCM format to S16_LE (Signed 16 bit
> Little Endian)
> V/AudioHardwareALSA(  753): Using 2 channels for PLAYBACK.
> V/AudioHardwareALSA(  753): Set PLAYBACK sample rate to 44100 HZ
> V/AudioHardwareALSA(  753): Buffer size: 4096
> V/AudioHardwareALSA(  753): Latency: 92879
>
> *
> LOG: while playing the recorded voice*
>
> W/AudioService(  769): MediaPlayer IOException: java.io.IOException:
> setDataSource failed.: status=0x80000000
> W/        (  753): OMXConfigParser audio_decoder.amrnb
> W/        (  753): OMXConfigParser audio_decoder.amrnb
> W/        (  753): iOMXComponentUsesNALStartCodes 0
> W/AudioFlinger(  753): write blocked for 317 msecs
> W/AudioFlinger(  753): write blocked for 207 msecs
> W/AudioFlinger(  753): write blocked for 198 msecs
> .
> .
> .
>
> Please kindly suggest me on this issue.
>
> --
> அன்புடன்
> அருண்
> ------------------------------http://ubuntu-tam.orghttp://lists.ubuntu.com/ubuntu-l10n-tamhttp://lists.ubuntu.com/ubuntu-tam
> ------------------------------

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to