首页 > 其他 > 详细

ALSA 常用command

时间:2020-03-02 20:46:38      阅读:80      评论:0      收藏:0      [点我收藏+]

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

 

ALSA 常用command

原文:https://www.cnblogs.com/fellow1988/p/12397629.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!