LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 612|回复: 2

如何同时播放声音?

[复制链接]
发表于 2011-7-28 17:19:59 | 显示全部楼层 |阅读模式
现在的情况是amarok播放音乐的时候Firefox打开豆瓣电台就放不了音乐了。。。
求解。。。是不是pulseaudio有问题呢?
我的kmix只有一个channel:Internal Audio Analog Stereo
声卡是Intel HDA
是不是alsa、oss、pulseaudio这几个USE的配置有问题还是?
这个问题困扰我好久了。。。
  1. emerge --info:
  2. Portage 2.1.10.7 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r4, 2.6.39-gentoo-r3 x86_64)
  3. =================================================================
  4. System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8200_@_2.33GHz-with-gentoo-2.0.3
  5. Timestamp of tree: Thu, 28 Jul 2011 05:15:01 +0000
  6. ccache version 3.1.5 [enabled]
  7. app-shells/bash:          4.2_p10
  8. dev-java/java-config:     2.1.11-r3
  9. dev-lang/python:          2.7.2-r2, 3.1.3-r1, 3.2-r2
  10. dev-util/ccache:          3.1.5
  11. dev-util/cmake:           2.8.5-r2
  12. dev-util/pkgconfig:       0.26
  13. sys-apps/baselayout:      2.0.3
  14. sys-apps/openrc:          0.8.3-r1
  15. sys-apps/sandbox:         2.5
  16. sys-devel/autoconf:       2.13, 2.68
  17. sys-devel/automake:       1.11.1-r1
  18. sys-devel/binutils:       2.21.1
  19. sys-devel/gcc:            4.4.5, 4.5.2
  20. sys-devel/gcc-config:     1.4.1-r1
  21. sys-devel/libtool:        2.4-r1
  22. sys-devel/make:           3.82-r1
  23. sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
  24. sys-libs/glibc:           2.13-r4
  25. Repositories: gentoo gentoo-zh mozilla sunrise jackriver-overlay
  26. ACCEPT_KEYWORDS="amd64 ~amd64"
  27. ACCEPT_LICENSE="* -@EULA"
  28. CBUILD="x86_64-pc-linux-gnu"
  29. CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -msse2 -msse -mmmx -msse3 -msse4.1 -funroll-loops -fpeel-loops -ftree-loop-linear -fno-tree-pre"
  30. CHOST="x86_64-pc-linux-gnu"
  31. CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
  32. CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
  33. CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -msse2 -msse -mmmx -msse3 -msse4.1 -funroll-loops -fpeel-loops -ftree-loop-linear -fno-tree-pre"
  34. DISTDIR="/usr/portage/distfiles"
  35. FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
  36. FFLAGS=""
  37. GENTOO_MIRRORS="http://mirrors.ustc.edu.cn/gentoo/"
  38. LANG="en_US.UTF-8"
  39. LDFLAGS="-Wl,-O1 -Wl,--as-needed"
  40. LINGUAS="en en_US zh_CN zh"
  41. MAKEOPTS="-j5"
  42. PKGDIR="/usr/portage/packages"
  43. PORTAGE_CONFIGROOT="/"
  44. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  45. PORTAGE_TMPDIR="/var/tmp"
  46. PORTDIR="/usr/portage"
  47. PORTDIR_OVERLAY="/var/lib/layman/gentoo-zh /var/lib/layman/mozilla /var/lib/layman/sunrise /usr/local/portage/overlay"
  48. SYNC="rsync://mirrors.ustc.edu.cn/gentoo-portage"
  49. USE="acl acpi alsa amd64 bash-completion berkdb bzip2 ccache chardet cli cracklib crypt cups cxx dbus dri fortran gdbm gpm iconv ipv6 mmx mmxext modules mudflap multilib ncurses nls nptl nptlonly ntpl openmp pam pcre perl pppd python readline sdl session spell sse sse2 sse3 ssl ssse3 sysfs tcpd unicode utf8 xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh_CN zh" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
  50. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
复制代码
发表于 2011-7-28 19:56:31 | 显示全部楼层
从来都是 -pulseaudio ,alsa混音也一直都工作得很好。
回复 支持 反对

使用道具 举报

发表于 2011-7-28 22:42:14 | 显示全部楼层
pulseaudio 用了一下还不错,加上那个混音控制器,单独的软件音量控制
再说alsa不独占方式的话,也OK的啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表