Is it possible to arecord output from dummy card?

会有一股神秘感。 提交于 2019-12-22 14:15:32

问题


I'm trying to mix audio files via dummy card by using dmix and dsnoop:

aplay s1.wav &
aplay s2.wav &
arecord -f dat -t wav -d 3 result.wav

But is it possible?

I have only dummy card by:

modprobe snd-dummy

My ~/.asoundrc file is:

defaults.pcm.card 1 #dummy card

pcm.duplex {
    type asym
    playback.pcm "dmix"
    capture.pcm "dsnoop"
}

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

Running on:

CentOS6.5(x86_64)

回答1:


The snd-dummy driver throws away playback data, and records silence.

For a loopback device, use the snd-aloop driver instead.



来源:https://stackoverflow.com/questions/24350367/is-it-possible-to-arecord-output-from-dummy-card

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!