E/SoundPool(3370): Error creating AudioTrack

714 views
Skip to first unread message

Puneet B

unread,
Jul 29, 2013, 10:13:22 AM7/29/13
to android...@googlegroups.com
I am using lychee kernel 3.0.8, android 4.0.4.

In kernel i select ALSA codec drivers.

--- Advanced Linux Sound Architecture                                                                 │ │ 
  │ │                               < >   Sequencer support                                                                               │ │ 
  │ │                               < >   OSS Mixer API                                                                                   │ │ 
  │ │                               < >   OSS PCM (digital audio) API                                                                     │ │ 
  │ │                               < >   HR-timer backend support                                                                        │ │ 
  │ │                               [ ]   Dynamic device file minor numbers                                                               │ │ 
  │ │                               [*]   Support old ALSA API                                                                            │ │ 
  │ │                               [*]   Verbose procfs contents                                                                         │ │ 
  │ │                               [ ]   Verbose printk                                                                                  │ │ 
  │ │                               [ ]   Debug                                                                                           │ │ 
  │ │                               [ ]   Generic sound devices  --->                                                                     │ │ 
  │ │                               [*]   ARM sound devices  --->                                                                         │ │ 
  │ │                               [*]   USB sound devices  --->                                                                         │ │ 
  │ │                               <*>   ALSA for SoC audio support  --->                                                                │ │ 
  │ │                                                                   --- ALSA for SoC audio support                                                                        │ │  
  │ │                                                                    [        ]   Support LZO compression for register caches                                                     │ │ 
  │ │                                                                   <*>   SOUND driver for sun4i                                                                          │ │ 
  │ │                                                                    <*>     APB On-Chip Codec                                                                             │ │ 
  │ │                                                                     <*>     HDMI Audio for the ReuuiMlla SUN4I chips                                                      │ │ 
  │ │                                                                     <M>     sun4i On-Chip spdif                                                                           │ │ 
  │ │                                                                     <M>     SoC i2s interface for the ReuuiMlla SUN4I chips                                               │ │ 
  │ │                                                                       < >   Build all ASoC CODEC drivers                                                                    │ │ 
  │ │                                                                                                                                     │ │ 
  │ │                                                                                                                                                     │ │ 
  │ │                                      

and also .mp3 is playing fine from NAND ,so there is no hardware issue.

i got Android home screen by booting from sd card.

 But once i play .mp3 files i got the error.

W/AudioPolicyManagerBase(   91): getOutput() could not find output for stream 1, samplingRate 0, format 0, channels 3, flags 0
W/AudioPolicyManagerBase(   91): getOutput() could not find output for stream 1, samplingRate 0, format 0, channels 3, flags 0
W/AudioPolicyManagerBase(   91): getOutput() could not find output for stream 1, samplingRate 0, format 0, channels 3, flags 0
E/SoundPool(  155): Error creating AudioTrack
I/AudioService(  155):  AudioFocus  requestAudioFocus() from android.media...@41002290com.android.music.MediaPlaybackService$3@41000e8
I/AudioService(  155):   Remote Control   registerMediaButtonIntent() for PendingIntent{4106df50: PendingIntentRecord{41139020 com.android.musi}
E/MediaPlayer(  592): Attempt to call getDuration without a valid mediaplayer
E/MediaPlayer(  592): error (-38, 0)
E/MediaPlayer(  592): start called in state 0
E/MediaPlayer(  592): error (-38, 0)
E/MediaPlayer(  592): Error (-38,0)
D/MultiPlayer(  592): Error: -38,0
E/MediaPlayer(  592): Error (-38,0)
D/MultiPlayer(  592): Error: -38,0


Regards
Punith


Puneet B

unread,
Jul 31, 2013, 4:59:36 AM7/31/13
to android...@googlegroups.com
 Actually we downloaded android img file and flash it into NAND. then video and audio are playing fine.

 But once i prepared sd card by our source code and play the audio , i am getting the above error.

while comparing log of of nand and sdcard , i found fallowing difference.

By Nand
I/AudioFlinger(   91): Loaded primary audio interface from sunxi audio HW HAL (audio)
I/AudioFlinger(   91): Using 'sunxi audio HW HAL' (audio.primary) as the primary audio interface
I/CameraService(   91): CameraService started (pid=91)
I/AudioFlinger(   91): AudioFlinger's thread 0x18b68 ready to run
W/AudioFlinger(   91): Thread AudioOut_1 cannot connect to the power manager service
I/AudioPolicyService(   91): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
I/SamplingProfilerIntegration(   89): Profiling disabled.


By sdcard
E/audio_hw_primary(  635): Unable to find 'Master Playback Volume' mixer control
E/AudioFlinger(  635): couldn't open audio hw device in audio.primary (Invalid argument)
E/AudioFlinger(  635): Primary audio interface not found   


i am using libtinyalsa.so library . In /dev/snd directory i found this devices
controlC0
controlC1
pcmC0D0p
pcmC1D0p
timer

in /system/lib/hw

audio.primary.default.so
audio.primary.exDroid.so
audio_policy.default.so
camera.exDroid.so
camera.goldfish.so
display.sun4i.so
gps.exDroid.so
gps.goldfish.so
gralloc.default.so
gralloc.sun4i.so
hwcomposer.exDroid.so
lights.goldfish.so
lights.sun4i.so
sensors.goldfish.so


Kindly help me what i have to do to solve this issue.

Regards
Punith




Reply all
Reply to author
Forward
0 new messages