the really small
SOFTWARE COMPANY

RISC OS | Sound

libsndfile

libsndfile is a library for reading and writing sound sample files in a variety of different formats. The following description comes from the documentation included with the library:

Libsndfile is a C library for reading and writing files containing sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) through one standard library interface. It is released in source code format under the Gnu Lesser General Public License.

The library was written to compile and run on a Linux system but should compile and run on just about any Unix (including MacOSX). It can also be compiled and run on Win32 systems using the Microsoft compiler and MacOS (OS9 and earlier) using the Metrowerks compiler. There are directions for compiling libsndfile on these platforms in the Win32 and MacOS directories of the source code distribution.

It was designed to handle both little-endian (such as WAV) and big-endian (such as AIFF) data, and to compile and run correctly on little-endian (such as Intel and DEC/Compaq Alpha) processor systems as well as big-endian processor systems such as Motorola 68k, Power PC, MIPS and Sparc. Hopefully the design of the library will also make it easy to extend for reading and writing new sound file formats.

libsndfile has the following main features :

  • Ability to read and write a large number of file formats.
  • A simple, elegant and easy to use Applications Programming Interface.
  • Usable on Unix, Win32, MacOS, RISC OS and others.
  • On the fly format conversion, including endian-ness swapping, type conversion and bitwidth scaling.
  • Optional normalisation when reading floating point data from files containing integer data.
  • Ability to open files in read/write mode.
  • The ability to write the file header without closing the file (only on files open for write or read/write).
  • Ability to query the library about all supported formats and retrieve text strings describing each format.

Download

libsndfile

  Version Size Date Notes
Archive 1.0.17 755K 17-Jul-2007 Ported latest version. Now requires 64 bit integer support.

© Copyright 1995-2016 Richard Windley and Broad Oak Studios

Contact Us | Cookies