asound.conf 模版

defaults.pcm.rate_converter "speexrate_medium"
pcm.!default
{
    type asym
    playback.pcm {
        type plug
        slave.pcm "softvol"
    }
    capture.pcm {
        type plug
        slave {
            pcm "hw:1,0"
        }
    }
}

pcm.pa
{
    type plug
    slave.pcm "hw:0,0"
}

pcm.play_uac2 {
    type plug
    slave.pcm "hw:3,0"
    slave.rate 48000
    slave.format S16_LE
    slave.channels 18
}

pcm.cap_uac2
{
    type plug
    slave.pcm "hw:3,0"
    slave.channels 2
    slave.format S16_LE
    slave.rate 48000
}

pcm.play_pa
{
    type plug
    slave.pcm "hw:0,0"
}

pcm.default_mic
{
    type plug
    slave.pcm "hw:1,0"
	slave.channels 16
	slave.format S32_LE
	slave.rate 48000
}

pcm.cap_mic
{
    type plug
    slave.pcm "default_mic"
	slave.channels 16
	slave.format S16_LE
	slave.rate 48000
}

pcm.cap_ref {
    type plug
    slave.pcm "hw:0,0"
	slave.channels 8
	slave.format S16_LE
	slave.rate 48000
}

#pcm.assemable_to_uac2 {
#    type asym
#    playback.pcm {
#        type plug
#        slave.pcm "play_uac2"
#    }
#    capture.pcm "mic_ref_assemable"
#}

pcm.mic_ref_assemable {
    type multi
    slaves.a.pcm "cap_mic"
    slaves.b.pcm "cap_ref"
    slaves.a.channels 16
    slaves.b.channels 8
    bindings.0.slave a
    bindings.0.channel 0
    bindings.1.slave a
    bindings.1.channel 1
    bindings.2.slave a
    bindings.2.channel 2
    bindings.3.slave a
    bindings.3.channel 3
    bindings.4.slave a
    bindings.4.channel 4
    bindings.5.slave a
    bindings.5.channel 5
    bindings.6.slave a
    bindings.6.channel 6
    bindings.7.slave a
    bindings.7.channel 7
	bindings.8.slave a
    bindings.8.channel 8
	bindings.9.slave a
    bindings.9.channel 9
	bindings.10.slave a
    bindings.10.channel 10
	bindings.11.slave a
    bindings.11.channel 11
	bindings.12.slave a
    bindings.12.channel 12
	bindings.13.slave a
    bindings.13.channel 13
	bindings.14.slave a
    bindings.14.channel 14
	bindings.15.slave a
    bindings.15.channel 15
    bindings.16.slave b
    bindings.16.channel 0
    bindings.17.slave b
    bindings.17.channel 1
}

pcm.softvol {
    type softvol
    slave.pcm "playback"
    control {
        name "Master Playback Volume"
        card 0
    }
    min_dB -40.0
    max_dB 0.0
    resolution 100
}

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

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

#aplay -D plug:ladspa /data/test.wav
pcm.ladspa {
    type ladspa
    slave.pcm "plug:real_playback"
    channels 2
    path "/usr/lib"
    playback_plugins [{
        label eq_drc_stereo
            input {
                controls [4]
            }
    }]
}

pcm.dsnooped_6_2 {
	ipc_key 1027
	type dsnoop
	slave {
		pcm "hw:0,0"
		channels 8
		rate 16000
		period_size 1024
		buffer_size 262144
	}
}

pcm.6mic_loopback
{
    type plug
    slave.pcm "dsnooped_6_2"
}

pcm.fake_record {
    type plug
    slave.pcm "hw:7,1,0"
}

pcm.fake_play {
    type plug
    slave.pcm "ladspa"
}

# For headset.
pcm.fake_jack {
    type plug
    slave.pcm "plug:real_playback"
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值