# Libsndfile

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Libsndfile
> Markdown URL: https://mediated.wiki/source/Libsndfile.md
> Source: https://en.wikipedia.org/wiki/Libsndfile
> Source revision: 1353620109
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Short description|C library for reading and writing audio files}}
{{Lowercase title}}
{{Infobox software
| name = libsndfile
| developer = Erik de Castro Lopo
| latest release version = {{wikidata|property|reference|edit|P348}}
| latest release date = {{Start date and age|{{wikidata|qualifier|P348|P577}}|df=yes}}
| programming language = [C](/source/C_(programming_language))
| operating system = [Cross-platform](/source/Cross-platform)
| genre = Sound [library](/source/Library_(computing))
| license = [LGPL-2.1-or-later](/source/GNU_Lesser_General_Public_License)
| website = <!-- https://www.wikidata.org/wiki/Q1344172#P856 -->
}}

'''libsndfile''' is a widely used<ref>{{Cite web|url=http://www.mega-nerd.com/erikd/Blog/CodeHacking/libsndfile/ten_years.html|title = M3ga blog}}</ref><ref name=adobe>[http://www.adobe.com/products/eula/third_party/pdfs/audition_for_mac_thirdpartynotices.pdf Adobe Audition CS5.5 Third Party Legal Notices]</ref> [C](/source/C_(programming_language)) library written by [Erik de Castro Lopo](/source/Erik_de_Castro_Lopo) for reading and writing audio files.<ref name="site-top">[https://libsndfile.github.io/libsndfile/ libsndfile]</ref> It supports a wide variety of [audio file format](/source/audio_file_format)s and will convert automatically from one to another.<ref name="site-top"/> It allows the programmer to ignore many details, such as [endianness](/source/endianness).

In addition to the library itself, the package provides command-line programs for converting one format to another ('''sndfile-convert'''), for playing audio files ('''sndfile-play'''), and for obtaining information about the contents of an audio file ('''sndfile-info''').

libsndfile is available for [AmigaOS](/source/AmigaOS), [Unix-like](/source/Unix-like) systems, including [Linux](/source/Linux) and [Mac OS X](/source/Mac_OS_X), and for [Microsoft Windows](/source/Microsoft_Windows).<ref name="site-top"/> It is licensed under [LGPL-2.1-or-later](/source/GNU_Lesser_General_Public_License).<ref name="site-top" />

libsndfile is used, for example, by audio-editing software such as [Audacity](/source/Audacity_(audio_editor)) and [Adobe Audition](/source/Adobe_Audition)<ref name=adobe/> and the [MP3](/source/MP3) encoder [LAME](/source/LAME).<ref>[https://lame.cvs.sourceforge.net/viewvc/lame/lame/doc/html/history.html LAME changelog]</ref>

==See also==
{{Portal|Free and open-source software}}

*[AIFF](/source/Audio_Interchange_File_Format)
*[ExifTool](/source/ExifTool) {{endash}} utility for managing the [metadata](/source/metadata) in [bitmap](/source/bitmap) and audio files and also [PDF](/source/PDF) files
*[Pulse-code modulation](/source/Pulse-code_modulation)
*[WAV](/source/WAV)

==References==
{{Reflist}}

==External links==
*{{Official website}}
*[http://tontonth.free.fr/libsound77.html Fortran77 interface]
*[http://www.mega-nerd.com/SRC/ Secret Rabbit Code Sample Rate Converter]

{{Compression Software Implementations}}
{{Compression formats}}

Category:Audio libraries
Category:C (programming language) libraries
Category:Free audio codecs
Category:Free computer libraries

{{Multimedia-software-stub}}
{{Compu-library-stub}}

---
Adapted from the Wikipedia article [Libsndfile](https://en.wikipedia.org/wiki/Libsndfile) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Libsndfile?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
