免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 7372 | 回复: 13
打印 上一主题 下一主题

[桌面系统] Linux下可不可以同时打开两个以上的音频设备? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-25 11:11 |只看该作者 |倒序浏览
我想一边用skype和别人聊天,一边用mplay听歌。但不行,有没有办法可以让我同时打开俩音频设备?

论坛徽章:
0
2 [报告]
发表于 2006-04-26 22:55 |只看该作者
看看fedora core 5 的release note 吧。

论坛徽章:
0
3 [报告]
发表于 2006-04-26 23:54 |只看该作者
原帖由 tatezhou 于 2006-4-25 11:11 发表
我想一边用skype和别人聊天,一边用mplay听歌。但不行,有没有办法可以让我同时打开俩音频设备?


用alsa的驱动而不是oss的.

论坛徽章:
0
4 [报告]
发表于 2006-04-28 02:31 |只看该作者

论坛徽章:
0
5 [报告]
发表于 2006-04-30 09:58 |只看该作者
还有这事>是不是电脑有问题??
content 该用户已被删除
6 [报告]
发表于 2006-04-30 17:50 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
7 [报告]
发表于 2006-05-01 03:31 |只看该作者
准确来说是 ALSA 1.0.9以后默认就开了软混音。
不是那个发行版的问题,是与ALSA驱动相关的

论坛徽章:
0
8 [报告]
发表于 2006-05-07 10:53 |只看该作者
参考网上关于alsa的资料,针对俺的两块声卡写的配置文件/etc/asound.conf
pcm.soundcard0 {
        type hw
        card 0
        device 0
}

pcm.dmixer0 {
        type dmix
        ipc_key 1024
        slave {
                pcm "soundcard0"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 48000
        }
        bindings {
                0 0
                1 1
        }
}

pcm.mixin0 {
        type dsnoop
        ipc_key 5978293                #must be unique for all dmix plugins!!!!
        ipc_key_add_uid yes
        slave {
                pcm "hw:0,0"
                channels 2
                period_size 1024
                buffer_size 4096
                rate 48000
                periods 0
                period_time 0
        }
        bindings {
                0 0
                0 1
        }
}

pcm.asymed0 {
        type asym
        playback.pcm "dmixer0"
        capture.pcm "mixin0"
}

pcm.plugsoundcard0 {
        type plug
        slave.pcm "dmixer0"
}

pcm.dsp0 {
        type plug
        slave.pcm "asymed0"
}

ctl.mixer0 {
        type hw
        card 0
}



pcm.soundcard1 {
        type hw
        card 1
        device 0
}

pcm.dmixer1 {
        type dmix
        ipc_key 1024
        slave {
                pcm "soundcard1"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 48000
        }
        bindings {
                0 0
                1 1
        }
}

pcm.mixin1 {
        type dsnoop
        ipc_key 5978293                #must be unique for all dmix plugins!!!!
        ipc_key_add_uid yes
        slave {
                pcm "hw:1,0"
                channels 2
                period_size 1024
                buffer_size 4096
                rate 48000
                periods 0
                period_time 0
        }
        bindings {
                0 0
                0 1
        }
}

pcm.asymed1 {
        type asym
        playback.pcm "dmixer1"
        capture.pcm "mixin1"
}

pcm.plugsoundcard1 {
        type plug
        slave.pcm "dmixer1"
}

pcm.dsp1 {
        type plug
        slave.pcm "asymed1"
}

ctl.mixer1 {
        type hw
        card 1
}

mplayer配置文件中关于声音输出设备的一行
ao=alsa:device=plugsoundcard1

论坛徽章:
0
9 [报告]
发表于 2006-05-13 02:55 |只看该作者
其实音频方面的问题,最好的解决办法还是硬件。买一块创新SB live卡就OK了(要花银子就是了)。我知道nforce主版上提供的继承声卡驱动很差。遇上这种情况,也许随便买快便宜声卡也是好的。至于同时打开两个以上的音频设备,除了楼上的办法,用OSS的驱动也能解决搂主的问题。

论坛徽章:
0
10 [报告]
发表于 2007-08-21 16:05 |只看该作者
学习了。谢谢。。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP