运行MPP自带的音频ai和ao示例报错,提示PlaybackRateDmix和Capture1Mic配置错误
-
运行MPP中的音频示例程序sample_ai报错,提示信息为:
ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM Capture1Mic:16000 E0101 15:57:02.110755 1269 alsa_interface.c:483] <alsaOpenPcm> fatal error! card[Capture1Mic:16000] audio open error: No such file or directory E0101 15:57:02.110882 1269 audio_hw.c:1432] <audioHw_AI_Enable> fatal error! open_pcm failed I0101 15:57:02.110990 1269 alsa_interface.c:471] <alsaOpenPcm> open pcm! card:[Capture1Mic:16000], pcmFlag:[0](0-cap;1-play) ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM Capture1Mic:16000
如下图所示:
运行MPP中的音频示例程序sample_ao报错,提示信息为:
I0101 15:59:09.264578 1311 alsa_interface.c:471] <alsaOpenPcm> open pcm! card:[PlaybackRateDmix:16000,1,960], pcmFlag:[1](0-cap;1-play) ALSA lib conf.c:5000:(snd_config_expand) Unknown parameters 16000,1,960 ALSA lib pcm.c:2501:(snd_pcm_open_noupdate) Unknown PCM PlaybackRateDmix:16000,1,960 E0101 15:59:09.268046 1311 alsa_interface.c:483] <alsaOpenPcm> fatal error! card[PlaybackRateDmix:16000,1,960] audio open error: Invalid argument E0101 15:59:09.268303 1311 audio_hw.c:2281] <audioHw_AO_EnableChn> fatal error! open_pcm failed I0101 15:59:09.268453 1311 AOChannel_Component.c:1663] <AOChannel_ComponentThread> audio render hal init and run ok:0! E0101 15:59:09.268616 1311 glog_helper.cpp:16] *** Aborted at 57549 (unix time) try "date -d @57549" if you are using GNU date *** E0101 15:59:09.269147 1311 glog_helper.cpp:16] PC: @ 0x0 (unknown) Arithmetic exception (core dumped)
目前,扬声器和拾音MIC都可正常播放声音和拾音,但是运行音频相关的示例就是会提示这两个问题。有没有大佬能提供一下思路?
-
-
-
@null037 解决办法:修改打开设备
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号