how to install portaudio on pi properly

谁都会走 提交于 2020-02-02 16:16:09

问题


I am working on a project that involves recording from a mic on a raspberry pi. for now i am getting this error while the program is running.

python3: src/hostapi/alsa/pa_linux_alsa.c:3641: PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds' failed. Aborted

while searching for ways to fix this, i figured out the file pa_linux_alsa.c belongs to port audio. please refer to the following links.

modified pa_linux_alsa.c i think

how to install port audio

download link

first link is about the error and a modified fix, still dont know where to copy and the last two are about installing portaudio. apparently there is no easier way to install this with a command.

i downloaded the pa_snapshot enhanced version of it. but i dont know where i am supposed to put these files to begin to configure and make as in the readme. I copied the portaudio directory in to home/pi (in the user i think. "cd" and copied it there) then did as in the readme and rebooted the system. i dont see any changes in the error in program. i tried using the command whereis with pa_linux_alsa.c. that command also doesn't show the file or anything related to portaudio.

来源:https://stackoverflow.com/questions/59006083/how-to-install-portaudio-on-pi-properly

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