指令名稱
aumix
功能介紹
可以利用這個指令來調整音頻的信號強度. 可以在命令行或者腳本中使用,也可以調出圖形界面通過鼠標鍵盤來交互
語法
aumix [-<channel option>[[+|-][<amount>]]|<level>|R[ecord]|P[lay]|q[uery]] [-dhILqS] [-f <rc file>][-C <color scheme file>]
參數介紹
CHANNEL OPTIONS -v main volume -b bass -c CD -i line in -l line -m microphone -o line out -p PC speaker -s synthesizer -t treble -w PCM -x imix -1 line 1 -2 line 2 -3 line 3
OTHER OPTIONS -C color_scheme_file specify the name of a file containing a color scheme. This implies -I. -d device_file specify the name of the mixer device (default is /dev/mixer) -f rc_file specify file for saving and loading settings -h display information on usage -I run aumix interactively, using the full-screen ncurses-based interface. This is the default if no options are given, but must be specified in order to have aumix go into interactive mode after doing things non-interactively. -L load settings from $HOME/.aumixrc, or /etc/aumixrc if the former is inaccessible -q query all devices and print their settings -S save settings to $HOME/.aumixrc
基本使用
aumix +2
aumix // 進入圖形界面
不過我運行是遇到問題顯示錯誤信息 (我用的是12.04 LTS ubuntu
aumix: error opening mixer: No such file or directory經過查詢因爲沒有mixer安裝在/dev/
就用amixer 來代替使用啦
==========================================================
指令名稱
amixer
功能介紹
command line 來實現控制聲卡驅動
語法
amixer [-c card] [cmd]
參數介紹
Available options: -h,--help this help -c,--card N select the card -D,--device N select the device, default 'default' -d,--debug debug mode -n,--nocheck do not perform range checking -v,--version print version of this program -q,--quiet be quiet -i,--inactive show also inactive controls -a,--abstract L select abstraction level (none or basic) -s,--stdin Read and execute commands from stdin sequentially Available commands: scontrols show all mixer simple controls scontents show contents of all mixer simple controls (default command) sset sID P set contents for one mixer simple control sget sID get contents for one mixer simple control controls show all controls for given card contents show contents of all controls for given card cset cID P set control contents for one control cget cID get control contents for one control
基本使用
1. 顯示所有可控card
zzy@ubuntu:~$ amixer controls
numid=23,iface=CARD,name='Headphone Jack'
numid=24,iface=CARD,name='Mic Jack'
numid=22,iface=MIXER,name='Master Playback Switch'
numid=21,iface=MIXER,name='Master Playback Volume'
numid=2,iface=MIXER,name='Headphone Playback Switch'
numid=1,iface=MIXER,name='Headphone Playback Volume'
numid=25,iface=MIXER,name='PCM Playback Volume'
numid=10,iface=MIXER,name='Mic Boost Volume'
numid=6,iface=MIXER,name='Mic Playback Switch'
numid=5,iface=MIXER,name='Mic Playback Volume'
numid=12,iface=MIXER,name='Capture Switch'
numid=13,iface=MIXER,name='Capture Volume'
numid=18,iface=MIXER,name='IEC958 Default PCM Playback Switch'
numid=14,iface=MIXER,name='IEC958 Playback Con Mask'
numid=15,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=16,iface=MIXER,name='IEC958 Playback Default'
numid=17,iface=MIXER,name='IEC958 Playback Switch'
numid=9,iface=MIXER,name='Auto-Mute Mode'
numid=20,iface=MIXER,name='Beep Playback Switch'
numid=19,iface=MIXER,name='Beep Playback Volume'
numid=11,iface=MIXER,name='Internal Mic Boost Volume'
numid=8,iface=MIXER,name='Internal Mic Playback Switch'
numid=7,iface=MIXER,name='Internal Mic Playback Volume'
numid=4,iface=MIXER,name='Speaker Playback Switch'
numid=3,iface=MIXER,name='Speaker Playback Volume
2.修改個別參數
zzy@ubuntu:~$ amixer -c 0 cset numid=3 40%
numid=3,iface=MIXER,name='Speaker Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=64,step=0
: values=26,26
| dBscale-min=-64.00dB,step=1.00dB,mute=0
參考文獻
1. 《Linux指令從入門到精通》1.322. http://linuxcommand.org/man_pages/aumix1.html
3. http://www.linuxcommand.org/man_pages/amixer1.html