惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
月光博客
月光博客
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
小众软件
小众软件
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
Y
Y Combinator Blog
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园_首页
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
爱范儿
爱范儿
B
Blog RSS Feed
V
Visual Studio Blog
MyScale Blog
MyScale Blog

博客园 - 月の祭司

eMule需要备份的文件 OpenDNS,独特的免费DNS 用MeGUI压制720x480 MP4视频,详细教程[面向有一定基础者] [转载]avs讲解及其在rmvb压制中的合理运用 - 月の祭司 - 博客园 AVS脚本参数 - 月の祭司 - 博客园 VS2008 download ed2k links Vista和Linux共存的2种方法 删除 Windows Event Viewer 中不需要的Event ArchLinux Gnome Terminal 优盘中文问号的解决方法 [转载]Image Your Hard Drive using dd - 月の祭司 [转载]dd command of Linux vi中去掉“^M” GNU EMACS字体设置,基本上可以随心所欲 LInux下Mplayer字幕乱码,日文字体部分乱码解决方案 Arch Linux下 让MPlayer用上CoreAVC1.7.0.0解码器 [转载]搞定amd64 8.04下面mldonkey自动退出问题(段错误) Ubuntu8.04系统优化 Ubuntu 8.04 Flash中文方块儿解决办法 Install Opera&Config Font on Ubuntu 64bit
Ubuntu 声卡独占解决方法
月の祭司 · 2008-06-04 · via 博客园 - 月の祭司

http://wiki.ubuntu.org.cn/声音问题解决方案#Software_Mixing

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
slave {
pcm 'hw:
0,0'
period_time 
0
period_size 
128
buffer_size 
2048
format S16_LE
rate 
48000
}
}

Now as many programs as you want can all use the sound card simultaneously, both the output and the microphone! ESD-aware apps can use ESD, other apps will still work fine.
现在,你可以让你想要的软件全部同时使用声卡, 不管是输出还是和麦克风!ESD识别的应用程序可以使用ESD,另外的应用程序也一样可以正常工作.

One notable misfeature of ESD is that it often ruins the A/V sync when playing videos. After setting up the software mixer, you might find it useful to turn esd off altogether (in tthe Sound control panel uncheck "Enable Software Mixing"). Now, especially with GStreamer 0.10, your movies should have perfect A/V sync.
一个ESD很显着的不好的特性就是在播放视频的时候它会破坏在音频与视频的同步.在设定好软件混合器以後, 你可能会发觉把esd关闭会有些帮助(在音频控制面板里边反选"开启software mixing'). 现在, 特别是在GStreamer 0.10下, 你的电影应该不会有音频和视频不同步发生了. It's a shame that software mixing isn't enabled on Ubuntu by default. software mixing在ubuntu的预设里边不是开启的.

按照这个设置之后并没有马上生效我也忘了之前怎么设置
不过下面如果所示...