停止Alsa-util
$ sudo /etc/init.d/alsa-utils stop
编辑配置文件
$ sudo gedit /var/lib/alsa/asound.state
将如下内容添加至文件顶部
# 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
slave {
pcm 'hw:0,0'
period_time 0
period_size 128
buffer_size 2048
format S16_LE
rate 48000
}
}
重新启动声音服务
$ sudo /etc/init.d/alsa-utils start
点击Preferences->Sound菜单,将标签Device里的所有音效全部设置为ALSA,重启电脑。
更改Pidgin音效为ESD方式,这下边听歌边IM都没问题了。
09
Nov
Categories
- 基于Sinatra的Http认证
- 在Rails程序中使用Gmail发送邮件
- CSS圆角效果
- 简化Rails国际化方法的调用
- Apache+Passenger部署Rails
- 解决Rails 2.3.2中不识别mongrel prefix参数的方法
- 在VIM中注释多行代码
- 在子目录中部署Rails应用程序
- 多个Rails应用间共享Session
- Install memcached on linux
- Operation MySql in Ruby Script
- nginx daemon controller script
- install Sphinx on CentOS
- install the MySQL/Ruby adapter on Leopard
- Rails开发的20个”No”
Recent Posts
Recent Comments
- July 2009 (2)
- June 2009 (4)
- May 2009 (3)
- April 2009 (7)
- March 2009 (3)
- February 2009 (9)
- January 2009 (9)
- December 2008 (12)
- November 2008 (13)
- October 2008 (4)
- September 2008 (10)


Leave a comment
Fields in bold are required. Email addresses are never published or distributed.
Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>URLs must be fully qualified (eg: http://www.raecoo.com),and all tags must be properly closed.
Line breaks and paragraphs are automatically converted.
Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.