移植ALsa应用测试

首先下载相对应得库
http://www.alsa-project.org/main/index.php/Download

分别下载相对应得alsa-lib-1.1.4.1和alsa-tool

然后解压配置
alsa-lib-1.1.4.1库文件

./configure --host=arm-linux-gnueabihf --prefix=$PWD/../../rootfs/usr --with-configdir=$PWD/../../rootfs/etc/alsa

安装到/etc/alsa目录下

alsa-tools测试工具直接编译下载到根文件系统的bin目录下

然后在etc/profile 添加alsa的 配置环境
ALSA_CONFIG_DIR=/etc/alsa 生效source profile

测试音频 直接aplay XXX.wav

猜你喜欢

转载自blog.csdn.net/u012855539/article/details/80613937