解决Linux系统下声卡独占的方法
A much better way of getting esd to work with non-esd-aware apps is to make alsa use its software mixer.
让alsa用它自己的软件混合器一个更好的方法来让esd和不是esd识别的应用程序在一起工作
$ sudo /etc/init.d/alsa-utils stop $ sudo gedit /var/lib/alsa/asound.state
(add the following text verbatim to the start of this file)
$ sudo /etc/init.d/alsa-utils start
# This text should be added to the beginning of
# /var/lib/alsa/asound.state. You only need to add
# it once -- it is saved across reboots.
pcm.asymed {
type asym
playback.pcm dmix
capture.pcm dsnoop
}
pcm.default {
type plug
slave.pcm asymed
}
pcm.dmix {
type dmix
ipc_key 5678293
ipc_key_add_uid yes
slave {
pcm 'hw:0,0'
period_time 0
period_size 128
buffer_size 2048
format S16_LE
rate 48000
}
}
pcm.dsnoop {
type dsnoop
ipc_key 5778293
ipc_key_add_uid yes

