作者:suxixb, Comments Rss, 留言, Trackback

在 7.10 上实现混音

参考资料:《如何混音》

也许您会遇到这种情况,在打开两个应用程序时,如同时打开 Rhythmbox 播放音乐和 Smplayer 看电影,只能听到 Rhythmbox 或 Smplayer 其中一个的声音,两种声音不能同时出现,其实这是因为您的声卡需要“软混音”,如果您也是使用 ALSA 音效构架,解决这个问题并不难。

首先安装需要的软件包

sudo apt-get install alsa-oss

创建或修改下列的文件

sudo gedit /etc/asound.conf

添加下列的内容并保存

pcm.card0 {
type hw
card 0
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 4096
periods 128
rate 44100
}
bindings {
0 0
1 1
}
}

修改配置文件

sudo gedit /etc/esound/esd.conf

对照下列例子修改,小心误操作,或者直接粘贴

[esd]
auto_spawn=1
spawn_options=-terminate -nobeeps -as 2 -d default
spawn_wait_ms=100
# default options are used in spawned and non-spawned mode
default_options=

到 “系统”—“首选项”—“音效” ,按照下图设置

screenshot-alsa-mixing.png

好了,现在再打开 Rhythmbox 播放音乐和 Smplayer 看电影,可以同时听到两个声音了,问题解决。

标签:,


随机文章:

延伸阅读

整个 Yo2 上的相关文章:

发布于 2007 10月 26th , 星期五 at 3:39 pm ,文章归类于 多媒体, 文章标签:,
Comments Rss, 留言, Trackback

No Comments

Be the first to comment on this entry.

Have your say

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.

  1. 订阅

    • 订阅 我的 Blog
    • Feedsky 订阅数
    订阅到iGoogle或Google Reader 订阅到鲜果 订阅到抓虾 订阅到飞鸽 订阅到Bloglines 订阅到我的雅虎 订阅到NetVibes 订阅到Newsgatar 订阅到Rojo 订阅到网易有道 通过哪吒订阅到MSN,Gtalk,Skype 订阅到QQ邮箱
     

  2. 重要公告

    目前该博客(www.shareitem.org,以下简称该博客)是建立在Yo2优博网上的,由于一些众所周知的原因,本人(suxixb)决定于2008年8月1日起陆续将该博客上的所有文章转移到新网站上,地址为http://shareitem.org,并改名为ShareItem.org(简称siog),原来的订阅地址(feed.shareitem.org)将保持不变,可继续使用。在转移成功后,该博客仍然保留到到期为止(2008年11月18日),在到期后,将不能再通过www.shareitem.org来访问该博客,本人也不在该博客上进行更新和发布文章,所有的新文章将统一在新网站上发表。谢谢各位的支持。

  3. 最新评论

  4. 最新日志

  5. 阅读共享

  6. 标签

  7. 存档

  8. Logo