教你如何解决Ubuntu Linux系统下声卡独占

系统 Linux
本章主要教大家对Ubuntu Linux系统下出现声卡独占问题给予解答,假如仍有问题可以留言,希望以下对大家有所帮助。

由于很多朋友的Ubuntu Linux系统下总出现声卡独占问题,所以咱再次写下《Ubuntu 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

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的预设里边不是开启的。

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

Ubuntu Linux系统下声卡独占的解决方法就这么多了。

  1. Ubuntu 8.10设置中文环境(一)
  2. Ubuntu 8.10设置中文环境(二)
  3. Ubuntu Compiz常 用快捷键(3)
  4. 简单介绍Fedora 10Alpha 版详情截图欣赏
  5. 简单教大家 Fedora 12完美安装nvidia官方驱动
责任编辑:志辉 来源: linux.chinaitlab.com
相关推荐

2020-06-01 20:27:26

Windows 10Windows电脑蓝屏

2010-07-16 13:52:26

telnet漏洞

2011-09-09 18:16:18

WindowsLinux

2021-10-14 11:11:58

WiFi电脑网络

2010-03-15 14:33:24

Ubuntu Linu

2011-08-10 16:58:35

windowsXP黑屏

2021-02-17 21:33:39

路由器产品网络

2015-11-25 11:20:23

WindowsUbuntu时间同步

2020-09-27 08:33:40

微信QQ传文件

2020-05-06 19:16:45

Windows 10Windows微软

2020-10-17 09:14:53

iPhone

2020-12-21 09:47:16

UbuntuMinicondalinux

2010-03-15 16:52:38

Ubuntu Linu

2011-09-05 13:19:42

UbuntuWebmin

2009-11-10 13:38:46

无线路由器

2015-09-11 15:08:11

Wireshark界面Linux

2010-04-06 18:26:03

CentOS系统

2010-04-23 14:20:15

Aix操作系统

2012-09-05 11:09:15

SELinux操作系统

2010-03-15 10:01:26

Ubuntu 系统
点赞
收藏

51CTO技术栈公众号