Libsndfile
libsndfile is a widely used C library written by Erik de Castro Lopo for reading and writing audio files. It supports a wide variety of audio file formats and will convert automatically from one to another. It allows the programmer to ignore many details, such as endianness.
In addition to the library itself, the package provides command-line programs for converting one format to another, for playing audio files, and for obtaining information about the contents of an audio file.
libsndfile is available for Unix-like systems, including Linux and Mac OS X, and for Microsoft Windows. It is licensed under the GNU Lesser General Public License.
libsndfile is used, for example, by audio-editing software such as Audacity and Adobe Audition and the MP3 encoder LAME.