alsa 配置为 forward 到 pulseaudio
推荐大家使用 OSS4
OSS4 内核级完全实现 ALSA + Pulseaudio 的功能。
内核实现的,所以延迟小,效率高,CPU 占用低。
现有的大量软件都支持 OSS
个别不支持的可以配置 alsa forward 到 oss 就可以了。
参考
在 2011年2月26日 下午12:11,Tommy He <lovenemesis(a)fedoraproject.xn--org>:-0s6m5392c
> 秘密在 /etc/alsa/pulse-default.conf 这个文件里哦~
>
> 2011/2/26 Robin Lee <robinlee.sysu(a)gmail.com>:
> > 不懂声音系统,但的确Fedora中即使直接用alsa的软件也不会造成声音独占,比如VirtualBox中选 alsa 和
> pulse好像没有区别。
> > 可以下载 alsa-lib 和 pulseaudio 的 spec 来研究一下。
> >
> > 2011/2/26 David Young <dhyang555(a)gmail.com>
> >
> >> 在一个从源码编译的系统中(非Fedora )
> >> 编译ALSA之前,未安装pulseaudio,然后编译gstreamer及相关插件,再之后编译audacious.
> >> 此时无论Totem或Audacious都可播放音频文件。但不能同时发声。此时解码过程应该是这样:
> >>
> >>
>
音频/视频-------------------->Totem-------------------->gstreamer------------------->ALSA混音
> >> 音频/视频-------------------->Audacious------------------->ALSA混音
> >>
> >>
> >>
>
为了同时发声,编译Pulseaudio后,再重新编译ALSA库,打开Pulseaudio支持开关。然后再编译Gstreamer和Audacious,分别打开Pulseaudio支持。
> >> 此时解码过程应试是这样的:
> >>
> >>
>
音频/视频-------------------->gstreamer------------------->声音服务器混音(pulseaudio,ESound等等)------------------->ALSA(驱动)
> >>
> >> ^
> >>
> >>
> >> |
> >> 音频/视频-------------------->Audacious--------------------------------
> >>
> >> 这样不会独占声卡,顺利实现Totem和Audacious同时发音。事实证明也是如此。
> >>
> >>
> 但在播放flash时,Audacious/Totem都不能发声,Google搜索后,说是Adobe的官方插件直接使用ALSA混音。所以造成声卡独占。
> >>
> >>
> >> 但是在Fedora中Flash和Audacious/Totem却可以同时发声。有人知道这是怎么实现的么?
> >> _______________________________________________
> >> Chinese mailing list
> >> Chinese at
lists.fedoraproject.org
> >>
https://admin.fedoraproject.org/mailman/listinfo/chinese
> >>
> > _______________________________________________
> > Chinese mailing list
> > Chinese at
lists.fedoraproject.org
> >
https://admin.fedoraproject.org/mailman/listinfo/chinese
> >
>
>
>
> --
> Take a Deep Breath out of Windows
>
>
https://fedoraproject.org/wiki/User:Lovenemesis
> _______________________________________________
> Chinese mailing list
> Chinese at
lists.fedoraproject.org
>
https://admin.fedoraproject.org/mailman/listinfo/chinese
>
_______________________________________________
Chinese mailing list
Chinese at
lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/chinese