安裝ALSA

sudo apt-get install libasound2-dev

安裝好之後會看到

/usr/include/alsa

編譯指令

sudo gcc -o record recordSound.cpp `pkg-config --libs alsa`

創作者介紹
創作者 天天向上 的頭像
me1237guy

天天向上

me1237guy 發表在 痞客邦 留言(0) 人氣( 25 )