[myTouch 3G, Magic Android Development] angenoir66:
Hi everyone,

I've cross-compiled mplayer in order to use it with my magic. Everything's ok except...

Mplayer's seeking to /dev/dsp and android platforms doesn't have this device, an ls returns:

/ # ls -Al /dev
drwxr-xr-x 2 0 0 260 May 27 22:02 adsp
crw-r----- 1 1008 1000 10, 43 May 27 22:02 akm8976_aot
crw-r----- 1 1008 1000 10, 44 May 27 22:02 akm8976_daemon
crw-r----- 1 1008 1000 10, 42 May 27 22:02 akm8976_pffd
crw-rw-r-- 1 1000 1001 10, 45 May 27 22:02 alarm
crw-rw---- 1 1011 1011 10, 48 May 27 22:02 android_adb
crw-rw---- 1 1011 1011 10, 47 May 27 22:02 android_adb_enable
crw-rw-rw- 1 0 0 10, 53 May 27 22:02 ashmem
crw-rw-rw- 1 0 0 10, 52 May 27 22:02 binder
drwxr-xr-x 3 0 0 380 May 27 22:02 block
crw------- 1 0 0 5, 1 May 27 22:02 console
crw------- 1 0 0 10, 39 May 27 22:02 cpu_dma_latency
crw------- 1 0 0 10, 40 May 27 22:02 device-mapper
crw-rw-rw- 1 0 0 1, 7 May 27 22:02 full
drwxr-xr-x 2 0 0 60 May 27 22:02 graphics
crw-rw-rw- 1 1000 1005 10, 54 May 27 22:02 htc-acoustic
crw-rw---- 1 1000 1003 10, 0 May 27 22:02 hw3d
drwxr-xr-x 2 0 0 160 May 27 22:02 input
crw------- 1 0 0 10, 46 May 27 22:02 keychord
crw------- 1 0 0 1, 11 May 27 22:02 kmsg
drwxr-xr-x 2 0 0 100 May 27 22:02 log
crw-rw---- 1 1000 1005 10, 57 May 27 22:02 msm_audpre
crw-rw---- 1 1000 1005 10, 56 May 27 22:02 msm_mp3
crw-rw---- 1 1000 1005 10, 59 May 27 22:02 msm_pcm_ctl
crw-rw---- 1 1000 1005 10, 58 May 27 22:02 msm_pcm_in
crw-rw---- 1 1000 1005 10, 60 May 27 22:02 msm_pcm_out
crw-rw---- 1 1000 1005 10, 55 May 27 22:02 msm_snd
crw-rw---- 1 1000 1000 10, 41 May 27 22:02 mt9t013
drwxr-xr-x 2 0 0 280 May 27 22:02 mtd
crw------- 1 0 0 10, 38 May 27 22:02 network_latency
crw------- 1 0 0 10, 37 May 27 22:02 network_throughput
crw-rw-rw- 1 0 0 1, 3 May 27 22:02 null
drwxr-xr-x 2 0 0 680 May 27 22:02 oncrpc
crw-rw---- 1 1000 1003 10, 1 May 27 22:02 pmem
crw-rw---- 1 1000 1005 10, 2 May 27 22:02 pmem_adsp
crw-rw---- 1 1000 1006 10, 5 May 27 22:02 pmem_camera
crw-rw---- 1 1000 1003 10, 3 May 27 22:02 pmem_gpu0
crw-rw---- 1 1000 1003 10, 4 May 27 22:02 pmem_gpu1
crw------- 1 0 0 108, 0 May 27 22:02 ppp
crw-rw-rw- 1 0 0 5, 2 May 29 12:59 ptmx
drwxr-xr-x 2 0 0 0 Jan 1 1970 pts
crw-r----- 1 1001 1001 10, 63 May 27 22:02 qmi0
crw-r----- 1 1001 1001 10, 62 May 27 22:02 qmi1
crw-r----- 1 1001 1001 10, 61 May 27 22:02 qmi2
crw-rw-rw- 1 0 0 1, 8 May 27 22:02 random
crw-r----- 1 1001 1001 254, 0 May 29 12:43 smd0
crw------- 1 0 0 254, 27 May 27 22:02 smd27
drwxr-xr-x 2 0 0 180 May 29 11:07 socket
crw-rw-rw- 1 0 0 5, 0 May 27 22:02 tty
crw------- 1 1002 1002 250, 0 May 29 09:02 ttyHS0
crw------- 1 1002 1002 251, 0 May 27 22:02 ttyMSM0
crw------- 1 1002 1002 10, 223 May 27 22:02 uinput
crw-rw-rw- 1 0 0 1, 9 May 27 22:02 urandom
crw-rw-rw- 1 0 0 1, 5 May 27 22:02 zero

So i think that the audio device could be /dev/htc-acoustic but I'm not quite sure, anybody have this information in order I could compile mplayer again?

Thank you all

EDIT: I've tried some of those devices (msm_snd, htc-acoustic, msm_pcm_out, ...) with the -ao option but none seems to work.

By default, mplayer use this device : /dev/dvb/adapter0/audio0 (but the path doesn't exist)

/ # mplayer /sdcard/Music/pornophonique\ -\ 8-bit\ lagerfeuer/01\ -\ sad\ robot.
mp3
MPlayer 1.0rc2-4.3.3 (C) 2000-2007 MPlayer Team
CPU: ARM
Impossible de trouver le répertoire HOME.
Lecture de /sdcard/Music/pornophonique - 8-bit lagerfeuer/01 - sad robot.mp3
Fichier de type Audio file détecté.
Information sur le clip :
Title: sad robot
Artist: pornophonique
Album: 8-bit lagerfeuer
Year: 2007
Comment: http://www.jamendo.com/
Genre: Pop
==========================================================================
Ouverture décodeur audio : [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Codec audio sélectionné : [mp3] afm : mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Impossible ouvrir périphérique audio /dev/dsp : No such file or directory
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: No such file or directory
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Vidéo : pas de vidéo
Démarre la lecture...
A: 2.5 (02.5) of 367.0 (06:07.0) 66.6%