Go to file
Erik de Castro Lopo 88b1e0fad8 src/sndfile.h.in : Use uint32_t instead of 'unsigned int'.
Also include <stdint.h> to provide the required types.
2013-02-10 20:15:56 +11:00
doc doc/FAQ.html : Add missing opening <P> tag. 2013-02-02 22:37:09 +11:00
examples examples/sfprocess.c : Add missing #include. 2013-02-08 06:44:26 +11:00
M4 M4/octave.m4 : Relax constraints on Octave version. 2012-10-13 12:48:05 +11:00
man man/Makefile.am : Fix 'make distcheck'. 2010-01-08 22:00:30 +11:00
Octave Octave/ : Fix 'make distcheck'. 2012-11-30 21:44:02 +11:00
programs programs/sndfile-play.c : Better error message on OSX_DARWIN_VERSION > 11. 2012-12-01 12:20:04 +11:00
regtest regtest/database.c : Fix compiler warning. 2011-07-12 10:37:09 +10:00
Scripts Add Scripts/linux-to-win-cross-configure.sh. 2013-02-03 09:30:18 +11:00
src src/sndfile.h.in : Use uint32_t instead of 'unsigned int'. 2013-02-10 20:15:56 +11:00
tests Fix compiler warnings. 2012-10-12 00:31:36 +11:00
Win32 Remove cruft from Win32 dir. 2008-10-08 21:19:23 +11:00
.gitignore .gitignore : Add '*.o' and '.DS_Store'. 2012-03-23 07:03:58 +11:00
AUTHORS Final tweaks for 1.0.18 release. 2009-02-07 14:00:36 +11:00
autogen.sh autogen.sh : Remove cruft. 2012-11-30 22:09:38 +11:00
binheader_readf_check.py Clean out cruft. 2008-04-05 20:13:47 +11:00
build-test-tarball.mk.in build-test-tarball.mk.in : Add pedantic-header-test.sh to test tarball. 2011-03-22 17:54:31 +11:00
ChangeLog src/common.h : Bump SF_HEADER_LEN from 8192 to 12292. 2013-02-10 13:03:59 +11:00
configure.ac configure.ac : Version 1.0.26pre5. 2013-02-10 14:09:32 +11:00
COPYING First snapshot of the public project. 2007-05-14 19:55:24 +10:00
INSTALL First snapshot of the public project. 2007-05-14 19:55:24 +10:00
libsndfile.spec.in libsndfile.spec.in : Change field name 'URL' to 'Url'. 2011-12-19 20:22:34 +11:00
make_lite.py Clean out cruft. 2008-04-05 20:13:47 +11:00
Makefile.am configure.ac : Use PKG_INSTALLDIR when it exists. 2013-02-05 19:44:05 +11:00
NEWS Updates for 1.0.25. 2011-07-13 21:21:13 +10:00
README src/ALAC/* : Big code dump of code for Apple's ALAC file format. 2012-03-03 23:17:05 +11:00
README.md README.md : More tweaks. 2012-01-20 19:50:57 +11:00
sndfile.pc.in sndfile.pc.in : Add a Libs.private entry to assist with static linking. 2009-11-29 10:40:13 +11:00

libsndfile

libsndfile is a C library for reading and writing files containing sampled audio data.

Hacking

The canonical source code repository for libsndfile is at https://github.com/erikd/libsndfile/.

You can grab the source code using:

$ git clone git://github.com/erikd/libsndfile.git

Building on Linux, OSX and Windows (Using GNU GCC) will require a number of GNU and other Free and Open Source Software tools including:

If you are on Linux, its probably best to install these via your Linux distribution's package manager.

If you want to compile libsndfile with support for formats like FLAC and Ogg/Vorbis you will also need to install the following optional libraries:

Support for these extra libraries is an all or nothing affair. Unless all of them are installed none of them will be supported.

$ ./autogen.sh

Running autogen.sh also installs a git pre-commit hook. The pre-commit hook is run each time a user tries to commit and checks code about to be committed against coding guidelines.

Nest step is to run configure, with the following configure options being recommended for anyone contemplating sending libsndfile patches:

$ ./configure --enable-gcc-werror

Finally libsndfile can be built and tested:

$ make
$ make check

Submitting Patches.

  • Patches should pass all pre-commit hook tests.
  • Patches should always be submitted via a either Github "pull request" or a via emailed patches created using "git format-patch".
  • Patches for new features should include tests and documentation.
  • Patches to fix bugs should either pass all tests, or modify the tests in some sane way.
  • When a new feature is added for a particular file format and that feature makes sense for other formats, then it should also be implemented for one or two of the other formats.