#apt-get install alsa-base alsa-oss alsa-utils
#gpasswd -a User audio
#amixer set Master 75 unmute
#amixer set PCM 75 unmute
#alsactl store
另:用alsaconf进行配置,用alsamixer调整音量,用alsactl store保存音量。
如下编辑~/.asoudrc文件后,可用类似`aoss pidgin`的命令实现混音:
pcm.!dmix {
type dmix
ipc_key 5678293
ipc_key_add_uid false
ipc_perm 0666
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 16384
format S16_LE
rate 48000
}
}
pcm.!dsnoop {
type dsnoop
ipc_key 5778293
ipc_key_add_uid false
ipc_perm 0666
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 16384
format S16_LE
rate 48000
}
}
pcm.asymed {
type asym
playback.pcm "dmix"
capture.pcm "dsnoop"
}
pcm.!default {
type plug
slave.pcm "asymed"
}
pcm.dsp0 {
type plug
slave.pcm "asymed"
}
ctl.mixer0 {
type hw
card 0
}
没有评论:
发表评论