Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about mpp audio record fail
#1
提示:部分应用在使用alsa-lib库中接口snd_pcm_hw_params_set_period_size_near和snd_pcm_hw_params_set_buffer_size_near时需要alsa-lib库编译时把alsa-devdir、pcm-plugins、ctl-plugins打开
debian系统默认没有打开,如需实用请重新编译alsa-lib源码,通过configure打开此功能如下:

  • 卸载原有alsa
sudo apt-get remove libasound2 --purge

  • 安装编译alsa-lib
sudo apt-get source alsa-lib sudo ./configure --with-alsa-devdir=/dev/snd --with-pcm-plugins=all --with-ctl-plugins=all --without-versioned --enable-static=no sudo make sudo make install

  • 安装编译alsa-utils
sudo apt-get source alsa-utils sudo ./configure sudo make sudo make install
Reply
#2
alsa-utils require ncurses. so to install it follow that :

sudo apt-get source ncurses
sudo ./configure
sudo make
sudo make install
Reply
#3
yes, you are right
Reply
#4
Thank you. This fixed the audio problems I was having with the mpp_samples
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)