Jetson 系列——lame linux记录录音

100 阅读1分钟

安装lame

sudo apt-get install libmp3lame-dev

调用库

#include<lame/lame.h>

编译,因为使用了alsa
因此使用gcc编译时

g++ test.cpp -o test -lasound -lmp3lame