ALSA 常用command
时间:2020-03-02 20:46:38
收藏:0
阅读:81
aplay/arecord:
playback:
aplay -D default xxx.wav
list cards & devices:
aplay -l
record:
aplay -C -D defaut -d 10 -f S16_LE -r 48000 -c 2 -t wav xxx.wav
arecord -D defaut -d 10 -f S16_LE -r 48000 -c 2 -t wav xxx.wav
amixer:
show all controls for given card:
amixer -c 0 controls
amixer -Dhw:2 controls
get control contents for one control:
amixer -c 2 cget numid=1
set control contents for one control:
amixer -c 0 cset numid=1,iface=MIXER,name="Master Volume" 50
/proc
list cards:
cat /proc/asound/cards
list devices:
cat /proc/asound/devices
ls -l /dev/snd
list all devices for given card:
ls -l /proc/asound/card0
list information for given card & pcm & substream
cat /proc/asound/card0/pcm0p/sub0/info
原文:https://www.cnblogs.com/fellow1988/p/12397629.html
评论(0)