使用dmix混音成功,贴出我的过程。。。。。

游戏讨论
回复
ustcmotao
帖子: 68
注册时间: 2005-09-20 10:02
来自: USTC
联系:

使用dmix混音成功,贴出我的过程。。。。。

#1

帖子 ustcmotao »

首先,去掉所有esd,artsd,jack之类的东西,在/etc下新建一个文件叫做asound.conf,里面输入如下内容

代码: 全选

pcm.!default {
  type plug
  slave.pcm "dmixer"
}
pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 2048
        buffer_size 32768
    }

    bindings {
        0 0
        1 1
        }
}

pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}
ctl.mixer0 {
    type hw
    card 0
}
如果是那个什么audiophile的1712声卡(好像叫这个名字吧),就在asound.conf中用如下代码替换

代码: 全选

pcm.ossmix {
    type dmix
    ipc_key 1024
    slave {
    pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 4096 # buffer size < 6653, but pow(x, 2)
        rate 44100 # we want to play CDs only
    }
    bindings {
        0 0
        1 1
    }
}
# Everything shall be dmixed, so redefine "default":
pcm.!default {
    type plug
    slave.pcm "ossmix"
}
# OSS via aoss should d(mix)stroyed:
pcm.dsp0 {
    type plug
    slave.pcm "ossmix"
}
ctl.mixer0 {
    type hw
    card 0
}
重启计算机后应该就可以用了。
目前可以让kaffeine和amarok还有字符下的alsaplayer同时发声,效果不错
头像
DarkEyes
帖子: 549
注册时间: 2005-07-01 13:09
来自: 广西南宁

#2

帖子 DarkEyes »

没有人支持的?我来支持下。。有时间试试:)
最新座驾:帕萨特1.8T御尊版
gxhunter
帖子: 63
注册时间: 2005-10-09 12:58

#3

帖子 gxhunter »

这是软混音还是硬混音?
头像
catinsnow
帖子: 773
注册时间: 2005-08-02 7:23
来自: 上海

#4

帖子 catinsnow »

硬混音就不用设了.
Ubuntu Intrepid
#P4 2.4
P4 2.4C
#1024MB
2048MB
#120G
500G+120G
Nvidia FX5700
#ATI9100 --拆了,受不了ATI的驱动.
回复