gpt4 book ai didi

audio - 树莓派/aplay/默认声卡

转载 作者:行者123 更新时间:2023-12-02 22:09:52 27 4
gpt4 key购买 nike

我为我的 raspberry pi 3 购买了“Sound Blaster Play!2”声卡。操作系统是 raspbian jessie。

树莓派上的音频在我运行时有效

 $ aplay /usr/share/sounds/alsa/Front_Center.wav -D sysdefault:CARD=S2

但只有当我使用 -D 时。当我使用
$ aplay /usr/share/sounds/alsa/Front_Center.wav

表明:
aplay: set_params:1239: Channels count non available

我需要这个用于节点扬声器。

这是 ALSA 信息脚本的输出: http://www.alsa-project.org/db/?f=bdefa248fdedb34929d492e65ea941f2af40dcb2

最佳答案

好的,我找到了解决方案..

我的新 ~/.asoundrc :

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

ctl.!default {
type hw
card 0
}

代替
pcm.!default {
type hw
card 0
}

ctl.!default {
type hw
card 0
}

有魔法吗:)

关于audio - 树莓派/aplay/默认声卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39552522/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com