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 format]s 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 AmigaOS, Unix-like systems, including Linux and Mac OS X, and for Microsoft Windows. It is licensed under LGPL-2.1-or-later.
libsndfile is used, for example, by audio-editing software such as Audacity and Adobe Audition and the MP3 encoder LAME.