查看分区内存使用情况
df
循环拷贝目录下所有文件
for i in `ls /mnt/sdcard/music/`
do
busybox dd if=/mnt/sdcard/music/$i of=/mnt/sdcard2/music/$i
echo $i
done
有解码的播放
stagefright -a -o mnt/sdcard/music.mp3
root@android:/ # stagefright --help
unknown option -- -usage: stagefright
-h(elp)
-a(udio)
-n repetitions
-l(ist) components
-m max-number-of-frames-to-decode in each pass
-b bug to reproduce
-p(rofiles) dump decoder profiles supported
-t(humbnail) extract video thumbnail or album art
-s(oftware) prefer software codec
-r(hardware) force to use hardware codec
-o playback audio
-w(rite) filename (write to .mp4 file)
-k seek test
-x display a histogram of decoding times/fps (video only)
-S allocate buffers from a surface
-T allocate buffers from a surface texture
-d(ump) filename (raw stream data to a file)
-D(ump) filename (decoded PCM data to a file)
ht -a -o mnt/sdcard/music.mp3
没有解码播放
alsa_aply -f cd mnt/sdcard/music.wav
ALSA XRUN DEBUG
1 Basic debugging - show xruns in ksyslog interface
2 Dump stack - dump stack for basic debugging
4 Jiffies check - compare the position with kernel jiffies (a sort of in-kernel monotonic clock),
show what's changed when basic debugging is enabled
8 Dump positions on each period update call
16 Dump positions on each hardware pointer update call
32 Enable logging of last 10 ring buffer positions
64 Show the last 10 ring buffer position only once (when first error situation occured)
Some good value combinations:
# Enable basic debugging and dump stack
# Usefull to just see, if PCM stream is stopped for a reason (usually wrong audio process timing from scheduler)
echo 3 > /proc/asound/card0/pcm0p/xrun_debug
# Enable basic debugging and dump stack, check hardware pointer on the period update
# Usefull to just see, if PCM stream is stopped for a reason (usually wrong audio process timing from scheduler)
# And to check the values from driver
echo 11 > /proc/asound/card0/pcm0p/xrun_debug
# Enable basic debugging and dump stack, check hardware pointer on all updates
# Usefull to just see, if PCM stream is stopped for a reason (usually wrong audio process timing from scheduler)
# And to do the exact check the values from driver
echo 27 > /proc/asound/card0/pcm0p/xrun_debug
# Enable basic debugging, do jiffies check and enable one shot dump of last 10 ring buffer positions
# Usefull, when the position is broken only after some of time (to reduce ksyslog messages)
echo 101 > /proc/asound/card0/pcm0p/xrun_debug
# Enable basic debugging, do jiffies check and dump position on each period and hardware pointer update calls
# Usefull when the lowlevel (specific) hardware driver is somehow broken
echo 29 > /proc/asound/card0/pcm0p/xrun_debug