index.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>
  5. libsndfile
  6. </TITLE>
  7. <META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
  8. <META NAME="Version" CONTENT="libsndfile-1.0.25">
  9. <META NAME="Description" CONTENT="The libsndfile Home Page">
  10. <META NAME="Keywords" CONTENT="WAV AIFF AU SVX PAF NIST W64 libsndfile sound audio dsp Linux">
  11. <META NAME="ROBOTS" CONTENT="NOFOLLOW">
  12. <LINK REL="stylesheet" HREF="libsndfile.css" TYPE="text/css" MEDIA="all">
  13. <LINK REL="stylesheet" HREF="print.css" TYPE="text/css" MEDIA="print">
  14. </HEAD>
  15. <BODY>
  16. <!-- pepper -->
  17. <CENTER>
  18. <IMG SRC="libsndfile.jpg" HEIGHT=98 WIDTH=367 ALT="libsndfile.jpg">
  19. </CENTER>
  20. <!-- pepper -->
  21. <CENTER>
  22. <A HREF="#History">History</A> -+-
  23. <A HREF="#Features">Features</A> -+-
  24. <A HREF="#Similar">Similar or Related Projects</A> -+-
  25. <A HREF="NEWS">News</A>
  26. <br>
  27. <A HREF="development.html">Development</A> -+-
  28. <A HREF="api.html">Programming Interface</A> -+-
  29. <A HREF="bugs.html">Bug Reporting</A> -+-
  30. <A HREF="#Download">Download</A>
  31. <br>
  32. <A HREF="FAQ.html">FAQ</A> -+-
  33. <A HREF="lists.html">Mailing Lists</A> -+-
  34. <A HREF="ChangeLog">Change Log</A> -+-
  35. <A HREF="#Licensing">Licensing Information</A> -+-
  36. <A HREF="#SeeAlso">See Also</A>
  37. </CENTER>
  38. <br><br>
  39. <P>
  40. Libsndfile is a C library for reading and writing files containing sampled sound
  41. (such as MS Windows WAV and the Apple/SGI AIFF format) through one standard
  42. library interface. It is released in source code format under the
  43. <A HREF="http://www.gnu.org/copyleft/lesser.html">Gnu Lesser General Public License</A>.
  44. </P>
  45. <!-- pepper -->
  46. <P>
  47. The library was written to compile and run on a Linux system but should compile
  48. and run on just about any Unix (including MacOS X).
  49. There are also pre-compiled binaries available for 32 and 64 bit windows.
  50. </P>
  51. <P>
  52. It was designed to handle both little-endian (such as WAV) and big-endian
  53. (such as AIFF) data, and to compile and run correctly on little-endian (such as Intel
  54. and DEC/Compaq Alpha) processor systems as well as big-endian processor systems such
  55. as Motorola 68k, Power PC, MIPS and Sparc.
  56. Hopefully the design of the library will also make it easy to extend for reading and
  57. writing new sound file formats.
  58. </P>
  59. <!-- pepper -->
  60. <P>
  61. It has been compiled and tested (at one time or another) on the following systems:
  62. </P>
  63. <!-- pepper -->
  64. <UL>
  65. <LI>Every platform supported by Debian GNU/Linux including x86_64-linux-gnu,
  66. i486-linux-gnu, powerpc-linux-gnu, sparc-linux-gnu, alpha-linux-gnu,
  67. mips-linux-gnu and armel-linux-gnu.</LI>
  68. <LI>powerpc-apple-darwin7.0 (Mac OS X 10.3)</LI>
  69. <LI>sparc-sun-solaris2.8 (using gcc)</LI>
  70. <LI>mips-sgi-irix5.3 (using gcc)</LI>
  71. <LI>QNX 6.0</LI>
  72. <LI>i386-unknown-openbsd2.9</LI>
  73. </UL>
  74. <!-- pepper -->
  75. <P>
  76. At the moment, each new release is being tested on i386 Linux, x86_64 Linux,
  77. PowerPC Linux, Win32 and Win64.
  78. </P>
  79. <!-- pepper -->
  80. <A NAME="Capabilities"></A>
  81. <A NAME="Features"></A>
  82. <H1><B>Features</B></H1>
  83. <P>
  84. libsndfile has the following main features :
  85. </P>
  86. <UL>
  87. <lI> Ability to read and write a large number of file formats.
  88. <LI> A simple, elegant and easy to use Applications Programming Interface.
  89. <LI> Usable on Unix, Win32, MacOS and others.
  90. <LI> On the fly format conversion, including endian-ness swapping, type conversion
  91. and bitwidth scaling.
  92. <LI> Optional normalisation when reading floating point data from files containing
  93. integer data.
  94. <LI> Ability to open files in read/write mode.
  95. <LI> The ability to write the file header without closing the file (only on files
  96. open for write or read/write).
  97. <LI> Ability to query the library about all supported formats and retrieve text
  98. strings describing each format.
  99. </UL>
  100. <P>
  101. libsndfile has a comprehensive test suite so that each release is as bug free
  102. as possible.
  103. When new bugs are found, new tests are added to the test suite to ensure that
  104. these bugs don't creep back into the code.
  105. When new features are added, tests are added to the test suite to make sure that
  106. these features continue to work correctly even when they are old features.
  107. </P>
  108. <P>
  109. The following table lists the file formats and encodings that libsndfile can read
  110. and write.
  111. The file formats are arranged across the top and encodings along the left
  112. edge.
  113. </P>
  114. <br>
  115. <TABLE BORDER="1" cellpadding="2">
  116. <TR><TD>&nbsp;</TD>
  117. <TD ALIGN="center">Micro- soft<br>WAV</TD>
  118. <TD ALIGN="center">SGI / Apple<br>AIFF / AIFC</TD>
  119. <TD ALIGN="center">Sun / DEC /<br>NeXT<br>AU / SND</TD>
  120. <TD ALIGN="center">Header- less<br>RAW</TD>
  121. <TD ALIGN="center">Paris Audio<br>File<br>PAF</TD>
  122. <TD ALIGN="center">Commo- dore<br>Amiga<br>IFF / SVX</TD>
  123. <TD ALIGN="center">Sphere<br>Nist<br>WAV</TD>
  124. <TD ALIGN="center">IRCAM<br>SF</TD>
  125. <TD ALIGN="center">Creative<br>VOC</TD>
  126. <TD ALIGN="center">Sound forge<br>W64</TD>
  127. <TD ALIGN="center"><A HREF="octave.html">GNU Octave 2.0</A><br>MAT4</TD>
  128. <TD ALIGN="center"><A HREF="octave.html">GNU Octave 2.1</A><br>MAT5</TD>
  129. <TD ALIGN="center">Portable Voice Format<br>PVF</TD>
  130. <TD ALIGN="center">Fasttracker 2<br>XI</TD>
  131. <TD ALIGN="center">HMM Tool Kit<br>HTK</TD>
  132. <TD ALIGN="center">Apple<br>CAF</TD>
  133. <TD ALIGN="center">Sound<br>Designer II<br>SD2</TD>
  134. <TD ALIGN="center">Free Lossless Audio Codec<br>FLAC</TD>
  135. </TR>
  136. <TR><TD>Unsigned 8 bit PCM</TD>
  137. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD>
  138. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD>
  139. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD>
  140. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  141. </TR>
  142. <TR><TD>Signed 8 bit PCM</TD>
  143. <TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  144. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD>
  145. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD>
  146. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  147. </TR>
  148. <TR><TD>Signed 16 bit PCM</TD>
  149. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  150. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  151. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  152. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  153. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  154. </TR>
  155. <TR><TD>Signed 24 bit PCM</TD>
  156. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  157. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  158. <TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  159. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  160. </TR>
  161. <TR><TD>Signed 32 bit PCM</TD>
  162. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  163. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD>
  164. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  165. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  166. </TR>
  167. <TR><TD>32 bit float</TD>
  168. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  169. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD>
  170. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD>
  171. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  172. </TR>
  173. <TR><TD>64 bit double</TD>
  174. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  175. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  176. <TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  177. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  178. </TR>
  179. <TR><TD>u-law encoding</TD>
  180. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  181. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  182. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  183. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  184. </TR>
  185. <TR><TD>A-law encoding</TD>
  186. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  187. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD>
  188. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  189. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  190. </TR>
  191. <TR><TD>IMA ADPCM</TD>
  192. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  193. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD>
  194. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  195. <TD>&nbsp;</TD><TD>&nbsp;</TD>
  196. </TR>
  197. <TR><TD>MS ADPCM</TD>
  198. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  199. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  200. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  201. </TR>
  202. <TR><TD>GSM 6.10</TD>
  203. <TD ALIGN="center">R/W</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  204. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  205. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  206. </TR>
  207. <TR><TD>G721 ADPCM 32kbps</TD>
  208. <TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  209. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  210. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  211. </TR>
  212. <TR><TD>G723 ADPCM 24kbps</TD>
  213. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  214. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  215. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  216. </TR>
  217. <TR><TD>G723 ADPCM 40kbps</TD>
  218. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  219. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  220. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  221. </TR>
  222. <TR><TD>12 bit DWVW</TD>
  223. <TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  224. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  225. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  226. </TR>
  227. <TR><TD>16 bit DWVW</TD>
  228. <TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  229. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  230. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  231. </TR>
  232. <TR><TD>24 bit DWVW</TD>
  233. <TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  234. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  235. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  236. </TR>
  237. <TR><TD>Ok Dialogic ADPCM</TD>
  238. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  239. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  240. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  241. </TR>
  242. <TR><TD>8 bit DPCM</TD>
  243. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  244. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  245. <TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  246. </TR>
  247. <TR><TD>16 bit DPCM</TD>
  248. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  249. <TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  250. <TD>&nbsp;</TD><TD ALIGN="center">R/W</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD>
  251. </TR>
  252. </TABLE>
  253. <p>
  254. From version 1.0.18, libsndfile also reads and writes
  255. <a href="http://flac.sourceforge.net/">FLAC</a>
  256. and
  257. <a href="http://www.vorbis.com/">Ogg/Vorbis</a>.
  258. </p>
  259. <!-- pepper -->
  260. <P>
  261. Some of the file formats I am also interested in adding are:
  262. </P>
  263. <UL>
  264. <LI> Kurzweil K2000 sampler files.
  265. <LI> Ogg Speex.
  266. </UL>
  267. <P>
  268. I have decided that I will not be adding support for MPEG Layer 3 (commonly
  269. known as MP3) due to the patent issues surrounding this file format.
  270. See
  271. <a href="FAQ.html#Q020">
  272. the FAQ</a>
  273. for more.
  274. </P>
  275. <P>
  276. Other file formats may also be added on request.
  277. </P>
  278. <!-- pepper -->
  279. <A NAME="History"></A>
  280. <H1><B>History</B></H1>
  281. <P>
  282. My first attempt at reading and writing WAV files was in 1990 or so under Windows
  283. 3.1.
  284. I started using Linux in early 1995 and contributed some code to the
  285. <A HREF="http://www.vaxxine.com/ve3wwg/gnuwave.html">wavplay</A>
  286. program.
  287. That contributed code would eventually mutate into this library.
  288. As one of my interests is Digital Signal Processing (DSP) I decided that as well as
  289. reading data from an audio file in the native format (typically 16 bit short integers)
  290. it would also be useful to be able to have the library do the conversion to floating
  291. point numbers for DSP applications.
  292. It then dawned on me that whatever file format (anything from 8 bit unsigned chars,
  293. to 32 bit floating point numbers) the library should be able to convert the data to
  294. whatever format the library user wishes to use it in.
  295. For example, in a sound playback program, the library caller typically wants the sound
  296. data in 16 bit short integers to dump into a sound card even though the data in the
  297. file may be 32 bit floating point numbers (ie Microsoft's WAVE_FORMAT_IEEE_FLOAT
  298. format).
  299. Another example would be someone doing speech recognition research who has recorded
  300. some speech as a 16 bit WAV file but wants to process it as double precision floating
  301. point numbers.
  302. </P>
  303. <P>
  304. Here is the release history for libsndfile :
  305. </P>
  306. <UL>
  307. <LI>Version 0.0.8 (Feb 15 1999) First official release.
  308. <LI>Version 0.0.28 (Apr 26 2002) Final release of version 0 of libsndfile.
  309. <LI>Version 1.0.0rc1 (Jun 24 2002) Release candidate 1 of version 1 of libsndfile.
  310. <LI>Version 1.0.0rc6 (Aug 14 2002) MacOS 9 fixes.
  311. <LI>Version 1.0.0 (Aug 16 2002) First 1.0.X release.
  312. <LI>Version 1.0.1 (Sep 14 2002) Added MAT4 and MAT5 file formats.
  313. <LI>Version 1.0.2 (Nov 24 2002) Added VOX ADPCM format.
  314. <LI>Version 1.0.3 (Dec 09 2002) Fixes for Linux on ia64 CPUs.
  315. <LI>Version 1.0.4 (Feb 02 2003) New file formats and functionality.
  316. <LI>Version 1.0.5 (May 03 2003) One new file format and new functionality.
  317. <LI>Version 1.0.6 (Feb 08 2004) Large file fix for Linux/Solaris, new functionality
  318. and Win32 improvements.
  319. <LI>Version 1.0.7 (Feb 24 2004) Fix build problems on MacOS X and fix ia64/MIPS etc
  320. clip mode detction.
  321. <LI>Version 1.0.8 (Mar 14 2004) Minor bug fixes.
  322. <LI>Version 1.0.9 (Mar 30 2004) Add AVR format. Improve handling of some WAV files.
  323. <LI>Version 1.0.10 (Jun 15 2004) Minor bug fixes. Fix support for Win32 MinGW compiler.
  324. <LI>Version 1.0.11 (Nov 15 2004) Add SD2 file support, reading of loop data in WAV and AIFF.
  325. Minor bug fixes.
  326. <LI>Version 1.0.12 (Sep 30 2005) Add FLAC and CAF file support, virtual I/O interface.
  327. Minor bug fixes and cleanups.
  328. <LI>Version 1.0.13 (Jan 21 2006) Add read/write of instrument chunks. Minor bug fixes.
  329. <LI>Version 1.0.14 (Feb 19 2006) Minor bug fixes. Start shipping windows binary/source ZIP.
  330. <LI>Version 1.0.15 (Mar 16 2006) Minor bug fixes.
  331. <LI>Version 1.0.16 (Apr 30 2006) Add support for RIFX. Other minor feature enhancements and
  332. bug fixes.
  333. <LI>Version 1.0.17 (Aug 31 2006) Add C++ wrapper sndfile.hh. Minor bug fixes and cleanups.
  334. <LI>Version 1.0.18 (Feb 07 2009) Add Ogg/Vorbis suppport, remove captive libraries, many
  335. new features and bug fixes. Generate Win32 and Win64 pre-compiled binaries.
  336. <LI>Version 1.0.19 (Mar 02 2009) Fix for CVE-2009-0186. Huge number of minor fixes as a
  337. result of static analysis.
  338. <LI>Version 1.0.20 (May 14 2009) Fix for potential heap overflow.
  339. <LI>Version 1.0.21 (December 13 2009) Bunch of minor bug fixes.
  340. <LI>Version 1.0.22 (October 04 2010) Bunch of minor bug fixes.
  341. <LI>Version 1.0.23 (October 10 2010) Minor bug fixes.
  342. <LI>Version 1.0.24 (March 23 2011) Minor bug fixes.
  343. <LI>Version 1.0.25 (July 13 2011) Fix for Secunia Advisory SA45125. Minor bug fixes and
  344. improvements.
  345. </UL>
  346. <A NAME="Similar"></A>
  347. <H1><B>Similar or Related Projects</B></H1>
  348. <UL>
  349. <LI><A HREF="http://sox.sourceforge.net/">SoX</A> is a program for
  350. converting between sound file formats.
  351. <LI><A HREF="http://www.hitsquad.com/smm/programs/WavPlay/">Wavplay</A> started out
  352. as a minimal WAV file player under Linux and has mutated into Gnuwave, a client/server
  353. application for more general multimedia and games sound playback.
  354. <LI><A HREF="http://www.68k.org/~michael/audiofile/">Audiofile</A> (libaudiofile) is
  355. a library similar to libsndfile but with a different programming interface. The
  356. author Michael Pruett has set out to clone (and fix some bugs in) the libaudiofile
  357. library which ships with SGI's IRIX OS.
  358. <LI><A HREF="ftp://ccrma-ftp.stanford.edu/pub/Lisp/sndlib.tar.gz">sndlib.tar.gz</A> is
  359. another library written by Bill Schottstaedt of CCRMA.
  360. </UL>
  361. <A NAME="Licensing"></A>
  362. <H1><B>Licensing</B></H1>
  363. <P>
  364. libsndfile is released under the terms of the GNU Lesser General Public License,
  365. of which there are two versions;
  366. <a href="http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html">version 2.1</a>
  367. and
  368. <a href="http://www.gnu.org/copyleft/lesser.html">version 3</a>.
  369. To maximise the compatibility of libsndfile, the user may choose to use libsndfile
  370. under either of the above two licenses.
  371. You can also read a simple explanation of the ideas behind the GPL and the LGPL
  372. <A HREF="http://www.gnu.org/copyleft/copyleft.html">here</A>.
  373. </P>
  374. <P>
  375. You can use libsndfile with
  376. <A HREF="http://www.gnu.org/">Free Software</A>,
  377. <A HREF="http://www.opensource.org/">Open Source</A>,
  378. proprietary, shareware or other closed source applications as long as libsndfile
  379. is used as a dynamically loaded library and you abide by a small number of other
  380. conditions (read the LGPL for more info).
  381. With applications released under the GNU GPL you can also use libsndfile statically
  382. linked to your application.
  383. </P>
  384. <P>
  385. I would like to see libsndfile used as widely as possible but I would prefer it
  386. if you released software that uses libsndfile as
  387. <A HREF="http://www.gnu.org/">Free Software</A>
  388. or
  389. <A HREF="http://www.opensource.org/">Open Source</A>.
  390. However, if you put in a great deal of effort building a significant application
  391. which simply uses libsndfile for file I/O, then I have no problem with you releasing
  392. that as closed source and charging as much money as you want for it as long as you
  393. abide by <A HREF="http://www.gnu.org/copyleft/lesser.html">the license</A>.
  394. </P>
  395. <A NAME="Download"></A>
  396. <H1><B>Download</B></H1>
  397. <P>
  398. Here is the latest version. It is available in the following formats:
  399. </P>
  400. <UL>
  401. <LI>Source code as a .tar.gz :
  402. <A HREF="files/libsndfile-1.0.25.tar.gz">libsndfile-1.0.25.tar.gz</A>
  403. and
  404. <A HREF="files/libsndfile-1.0.25.tar.gz.asc">(GPG signature)</A>.
  405. <LI>Win32 installer:
  406. <A HREF="files/libsndfile-1.0.25-w32-setup.exe">
  407. libsndfile-1.0.25-w32-setup.exe</A> (thoroughly tested under
  408. <a href="http://www.winehq.com/">Wine</a> and Windows XP).
  409. <LI>Win64 installer:
  410. <A HREF="files/libsndfile-1.0.25-w64-setup.exe">
  411. libsndfile-1.0.25-w64-setup.exe</A>
  412. (thoroughly tested on 64 bit Windows 7).
  413. </UL>
  414. <P>
  415. The Win32 installer was compiled for Windows XP but should also work on Windows
  416. 2000, Vista and Windows 7.
  417. </p>
  418. <P>
  419. Pre-release versions of libsndfile are available
  420. <A HREF="http://www.mega-nerd.com/tmp/">here</A>
  421. and are announced on the
  422. <A HREF="lists.html">libsndfile-devel</A>
  423. mailing list.
  424. </P>
  425. <A NAME="SeeAlso"></A>
  426. <H1><B>See Also</B></H1>
  427. <UL>
  428. <LI><a href="http://www.mega-nerd.com/libsndfile/tools/">
  429. sndfile-tools</a>
  430. : a small collection of programs which use libsndfile.
  431. </UL>
  432. <br><br>
  433. <hr>
  434. <P>
  435. The latest version of this document can be found
  436. <A HREF="http://www.mega-nerd.com/libsndfile/">here</A>.
  437. </P>
  438. <P>
  439. Author :
  440. <A HREF="m&#97;ilt&#111;:&#101;rikd&#64;&#109;eg&#97;-&#110;erd.&#99;om">
  441. Erik de Castro Lopo</a>
  442. </P>
  443. <!-- pepper -->
  444. <P>
  445. This page has been accessed
  446. <IMG SRC=
  447. "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|trgb=0;0;0|wxh=15;20|md=7|dd=B|st=1|sh=1|df=libsndfile.dat"
  448. HEIGHT=30 WIDTH=100 ALT="counter.gif">
  449. times.
  450. </P>
  451. <!-- pepper -->
  452. <!-- pepper -->
  453. <!-- pepper -->
  454. <br><br>
  455. </BODY>
  456. </HTML>