您的位置:首页 > 其它

I can play many sound at the same time but I can't record any sound using arecord

2017-08-30 10:26 489 查看
这个是linux下解决alsa驱动只能播放声音,不能采集声音的问题。

配置dmix之后,是可以进行混音播放的,可是采集添加上采集的时候,出现问题:I can play many sound at the same time but I can't record any sound using arecord。
https://forums.gentoo.org/viewtopic.php?p=958187,在 这个论坛找到了关于/etc/asound.conf文件的配置。测试后是可以通过的。

pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}

bindings {
0 0
1 1
}
}

pcm.asymed {
type asym
playback.pcm "dmixer"
capture.pcm "hw:0,0"
}

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

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

pcm.default {
type plug
slave.pcm "asymed"
}

ctl.mixer0 {
type hw
card 0
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐