libsndfile是由Erik de Castro Lopo寫的的廣泛用於讀寫音頻文件的C語言庫。它支持的音頻格式十分廣泛並且能夠自動的從一種格式到另外一種格式。它極大的方便了開發者,可以讓開發者忽略很多音頻細節,比如大小端轉換。
除了基本的庫,該業務包還提供了用於格式轉換和聲音播放的命令行程序。十分方便使用。具體的使用方法見下文。該庫可以廣泛使用在類unix系統上,比如,linux和macos等。
軟件包信息:
-
Download (HTTP): http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz
-
Download MD5 sum: 646b5f98ce89ac60cdb060fcd398247c
-
Download size: 1.1 MB
-
Estimated disk space required: 34 MB (with tests)
-
Estimated build time: 0.6 SBU (with tests)
安裝使用:
步驟一:
./configure --prefix=/usr \ --disable-static \ --docdir=/usr/share/doc/libsndfile-1.0.28 &&
步驟二:
make
步驟三:
make install
想要使用example,需要運行:
make check 直接編譯了。
數據包內容:
Installed Programs:
sndfile-cmp, sndfile-concat, sndfile-convert, sndfile-deinterleave, sndfile-info, sndfile-interleave, sndfile-metadata-get, sndfile-metadata-set, sndfile-play, sndfile-regtest and sndfile-salvage
Installed Library:
libsndfile.so
Installed Directory:
/usr/share/doc/libsndfile-1.0.28

參考文檔: