ubuntu什么时候能解决声卡独占问题啊??

Totem,mplayer,sopcast,realplayer,bmp
头像
lxjsilver
帖子: 20
注册时间: 2008-04-20 16:37

ubuntu什么时候能解决声卡独占问题啊??

#1

帖子 lxjsilver » 2008-07-23 22:53

装上UBUNTU,这几天专门去配置他的声音去了
但终究totem和rhythmbox不能同时发声,还有firefox里的flash声音问题,为什么要配置后才能发声……
现在很痛苦……
希望能早日解决声卡独占的问题
老鸟们谁有解决方法贴出来,看能不能用上……谢了
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#2

帖子 kofshower » 2008-07-23 23:52

"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
athx
帖子: 164
注册时间: 2008-06-11 17:02

#3

帖子 athx » 2008-07-24 0:03

lz试这个了吗?
系统────首选项────音效
设备 里面都改成 alsa

(我的就没有问题了)
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

#4

帖子 delectate » 2008-07-24 0:21

athx 写了:lz试这个了吗?
系统────首选项────音效
设备 里面都改成 alsa

(我的就没有问题了)
真的假的?

太霹雳了
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#5

帖子 kofshower » 2008-07-24 1:02

后代 写了:
athx 写了:lz试这个了吗?
系统────首选项────音效
设备 里面都改成 alsa

(我的就没有问题了)
真的假的?

太霹雳了
显然还是会有问题的,比如我随便写个播放器,把音频输出写到alsa的hw上,要是你其他东西还能播放,我就服了你。
结果是你会看到任何的声音程序被阻塞在了这儿。所以才必须有一个pulseserver这样耗资源的daemon来出力
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
lxjsilver
帖子: 20
注册时间: 2008-04-20 16:37

#6

帖子 lxjsilver » 2008-07-24 8:33

kofshower 写了:不是早解决了么 http://ubuntuforums.org/showthread.php?t=789578
我想问一下,这里面的操作是不是要从开始一条一条照做?
由于我以前乱改,执行第一条就出了问题,提示找不到asoundrc*
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#7

帖子 kofshower » 2008-07-24 10:18

这篇写的很全,不要全做。事实上你看完了就会发现

代码: 全选

Before you start: Please read the following points to find out if you should use this guide.

    * This guide is intended only for Ubuntu 8.04. Although many steps work for the development release (Intrepid), there are kernel issues in the Intrepid release that I will not currently support in this thread.
    * If you are running Kubuntu/Xubuntu/Edubuntu 8.04, this guide is not for you (as PulseAudio is not used for these distribution flavours).
    * If you cannot get sound working under any circumstances, then you are probably suffering from a kernel or ALSA bug - this guide is probably not for you.
    * If you have a brand-new sound card that is not supported in ALSA, and/or you are using OSS v4 - this guide is not for you.
    * If you notice a lot of stuttering sound on your system, especially since upgrading to the Hardy release, this guide is for you.
    * If you can get sound working in some applications but not others, or you find that audio mixing is broken, this guide is for you.
    * If you wish to have equalized sound system-wide, this guide is for you.
不做的话会有什么样子的软件存在bug,比如flash 10

代码: 全选

Which part(s) should I follow?
Part A is a required step you must follow, as it will enable proper PulseAudio support in most ALSA-aware applications.

Part B (i386 only) will install version 10 (beta) of Adobe's Flash plugin, as it has better compatibility with PulseAudio.

Part C is highly recommended if you notice a lot of stuttering audio in some applications. The settings proposed in this guide work well for my system, but you may need to do some manual tweaking to get the best results for your hardware.

Part D is an optional step that enables a system-wide audio equalizer (which can be customized using any LADSPA audio processing plugin). The settings provided in this guide are ideal for laptop users who notice poor quality audio playback using their built-in laptop speakers.

Appendix A gives information on specific applications including Skype, WINE as well as SDL and OSS applications. Appendix B helps troubleshoot audio playback/mixing issues using the PulseAudio Volume Control application. Appendix C will revert all changes made by this guide (if for some reason you can't get PulseAudio working properly).
这儿说你必须做哪些
------------------------------------------------------------------------------------
此外这些都有备份的,如果不行
看文章的最后

代码: 全选

$ sudo apt-get install flashplugin-nonfree/hardy libsdl1.2debian-alsa
$ sudo rm ~/.asoundrc* /etc/asound.conf ~/.libao ~/.pulse/daemon.conf ~/.pulse/default.pa
$ sudo cp ~/pulse-backup/asound.conf /etc/
$ cp ~/pulse-backup/.asoundrc* ~/
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#8

帖子 kofshower » 2008-07-24 10:21

我自己实验过了。可是这个之后,你的什么播放器之类的话,还必须将音频驱动设置为pulse.比如mplayer。看完全文很重要,不要断章取义。regard~~~
附件
开了多个播放器,混音。其实这个的原理就是将输出到hw的声音输入到这个服务上,用这个来软件混音之后发到硬件
开了多个播放器,混音。其实这个的原理就是将输出到hw的声音输入到这个服务上,用这个来软件混音之后发到硬件
2008-07-24-102009_406x470_scrot.png
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
lxjsilver
帖子: 20
注册时间: 2008-04-20 16:37

#9

帖子 lxjsilver » 2008-07-24 11:09

kofshower 写了:这篇写的很全,不要全做。事实上你看完了就会发现

代码: 全选

Before you start: Please read the following points to find out if you should use this guide.

    * This guide is intended only for Ubuntu 8.04. Although many steps work for the development release (Intrepid), there are kernel issues in the Intrepid release that I will not currently support in this thread.
    * If you are running Kubuntu/Xubuntu/Edubuntu 8.04, this guide is not for you (as PulseAudio is not used for these distribution flavours).
    * If you cannot get sound working under any circumstances, then you are probably suffering from a kernel or ALSA bug - this guide is probably not for you.
    * If you have a brand-new sound card that is not supported in ALSA, and/or you are using OSS v4 - this guide is not for you.
    * If you notice a lot of stuttering sound on your system, especially since upgrading to the Hardy release, this guide is for you.
    * If you can get sound working in some applications but not others, or you find that audio mixing is broken, this guide is for you.
    * If you wish to have equalized sound system-wide, this guide is for you.
不做的话会有什么样子的软件存在bug,比如flash 10

代码: 全选

Which part(s) should I follow?
Part A is a required step you must follow, as it will enable proper PulseAudio support in most ALSA-aware applications.

Part B (i386 only) will install version 10 (beta) of Adobe's Flash plugin, as it has better compatibility with PulseAudio.

Part C is highly recommended if you notice a lot of stuttering audio in some applications. The settings proposed in this guide work well for my system, but you may need to do some manual tweaking to get the best results for your hardware.

Part D is an optional step that enables a system-wide audio equalizer (which can be customized using any LADSPA audio processing plugin). The settings provided in this guide are ideal for laptop users who notice poor quality audio playback using their built-in laptop speakers.

Appendix A gives information on specific applications including Skype, WINE as well as SDL and OSS applications. Appendix B helps troubleshoot audio playback/mixing issues using the PulseAudio Volume Control application. Appendix C will revert all changes made by this guide (if for some reason you can't get PulseAudio working properly).
这儿说你必须做哪些
------------------------------------------------------------------------------------
此外这些都有备份的,如果不行
看文章的最后

代码: 全选

$ sudo apt-get install flashplugin-nonfree/hardy libsdl1.2debian-alsa
$ sudo rm ~/.asoundrc* /etc/asound.conf ~/.libao ~/.pulse/daemon.conf ~/.pulse/default.pa
$ sudo cp ~/pulse-backup/asound.conf /etc/
$ cp ~/pulse-backup/.asoundrc* ~/
我以前也看过一个解决方法http://forum.ubuntu.org.cn/viewtopic.php?t=136598
和你这个方法有什么区别?
我用了他这个方法之后,smplayer和rhythmbox能够同时播放,但是totem不行
totem找不到调节声音输出的地方
如你所言,你这个方法声音是通过一个服务输出的,会不会加大系统的负载?
是不是所有软件都要调节成pulse输出?
头像
lxjsilver
帖子: 20
注册时间: 2008-04-20 16:37

#10

帖子 lxjsilver » 2008-07-24 13:22

搞定了!!!!
原来是flash 9的问题,不支持pulseaudio输出
具体请查阅这里http://ubuntuforums.org/showthread.php?p=4928900
有个补丁可以下载解决这个问题
现在正在边听歌边看电影边看flash,哈哈
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#11

帖子 BigSnake.NET » 2008-07-24 13:23

把所有音频软件的输出都设到 alsa 就可以了

至于你自己写一个软件直接控制hw,那就没什么好说了,这是跟alsa抢hw,而hw这层是不可能支持混音的
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#12

帖子 kofshower » 2008-07-24 19:02

lxjsilver 写了:搞定了!!!!
原来是flash 9的问题,不支持pulseaudio输出
具体请查阅这里http://ubuntuforums.org/showthread.php?p=4928900
有个补丁可以下载解决这个问题
现在正在边听歌边看电影边看flash,哈哈
flash 9 有bug么,这篇文章中是说flash10的bug
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#13

帖子 kofshower » 2008-07-24 19:07

BigSnake.NET 写了:把所有音频软件的输出都设到 alsa 就可以了

至于你自己写一个软件直接控制hw,那就没什么好说了,这是跟alsa抢hw,而hw这层是不可能支持混音的
pulseaudio就是可以配置,他自己抢了叫我无处可抢。然后再大吼一声,音频输出全部发到我这儿。 :em06 让我想起某人的签名,走别人的路,让别人无路可走
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#14

帖子 BigSnake.NET » 2008-07-24 19:10

kofshower 写了:
BigSnake.NET 写了:把所有音频软件的输出都设到 alsa 就可以了

至于你自己写一个软件直接控制hw,那就没什么好说了,这是跟alsa抢hw,而hw这层是不可能支持混音的
pulseaudio就是可以配置,他自己抢了叫我无处可抢。然后再大吼一声,音频输出全部发到我这儿:em06 让我想起某人的签名,走别人的路,让别人无路可走
问题是这步怎么搞呢, 人家不一定听你的话哦

alsa 的话可以用 aoss
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
lxjsilver
帖子: 20
注册时间: 2008-04-20 16:37

#15

帖子 lxjsilver » 2008-07-24 22:22

kofshower 写了:
lxjsilver 写了:搞定了!!!!
原来是flash 9的问题,不支持pulseaudio输出
具体请查阅这里http://ubuntuforums.org/showthread.php?p=4928900
有个补丁可以下载解决这个问题
现在正在边听歌边看电影边看flash,哈哈
flash 9 有bug么,这篇文章中是说flash10的bug
呵呵
貌似搞错了
是这篇文章
http://wiki.ubuntu.org.cn/UbuntuWiki:Pu ... PulseAudio
回复