Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1430740
  • 博文数量: 823
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 5002
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-28 17:39
文章分类

全部博文(823)

文章存档

2011年(1)

2008年(822)

我的朋友

分类: LINUX

2008-08-28 17:42:53

 
Amuchbetterwayofgettingesdtoworkwithnon-esd-awareappsistomakealsauseitssoftwaremixer.

让alsa用它自己的软件混合器一个更好的方法来让esd和不是esd识别的应用程序在一起工作

$sudo/etc/init.d/alsa-utilsstop$sudogedit/var/lib/alsa/asound.state
(addthefollowingtextverbatimtothestartofthisfile)

$sudo/etc/init.d/alsa-utilsstart

#Thistextshouldbeaddedtothebeginningof
#/var/lib/alsa/asound.state.Youonlyneedtoadd
#itonce--itissavedacrossreboots.
pcm.asymed{
typeasym
playback.pcmdmix
capture.pcmdsnoop
}
pcm.default{
typeplug
slave.pcmasymed
}
pcm.dmix{
typedmix
ipc_key5678293
ipc_key_add_uidyes
slave{
pcm''hw:0,0''
period_time0
period_size128
buffer_size2048
formatS16_LE
rate48000
}
}
pcm.dsnoop{
typedsnoop
ipc_key5778293
ipc_key_add_uidyes
slave{
pcm''hw:0,0''
period_time0
period_size128
buffer_size2048
formatS16_LE
rate48000
}
}

Nowasmanyprogramsasyouwantcanallusethesoundcardsimultaneously,boththeoutputandthemicrophone!ESD-awareappscanuseESD,otherappswillstillworkfine.

现在,你可以让你想要的软件全部同时使用声卡,不管是输出还是和麦克风!ESD识别的应用程序可以使用ESD,另外的应用程序也一样可以正常工作.

OnenotablemisfeatureofESDisthatitoftenruinstheA/Vsyncwhenplayingvideos.Aftersettingupthesoftwaremixer,youmightfinditusefultoturnesdoffaltogether(inttheSoundcontrolpaneluncheck"EnableSoftwareMixing").Now,especiallywithGStreamer0.10,yourmoviesshouldhaveperfectA/Vsync.

一个ESD很显着的不好的特性就是在播放视频的时候它会破坏在音频与视频的同步.在设定好软件混合器以後,你可能会发觉把esd关闭会有些帮助(在音频控制面板里边反选"开启softwaremixing'').现在,特别是在GStreamer0.10下,你的电影应该不会有音频和视频不同步发生了.It''sashamethatsoftwaremixingisn''tenabledonUbuntubydefault.softwaremixing在ubuntu的预设里边不是开启的.

按照这个设置好之后并没有马上生效。

解决Ubuntu声卡独占问题的方法解决Ubuntu声卡独占问题的方法解决Ubuntu声卡独占问题的方法解决Ubuntu声卡独占问题的方法解决Ubuntu声卡独占问题的方法解决Ubuntu声卡独占问题的方法解决Ubuntu声卡独占问题的方法解决Ubuntu声卡独占问题的方法解决Ubuntu声卡独占问题的方法解决Ubuntu声卡独占问题的方法
阅读(984) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~