libsndfile-1.2.2

#### Beyond Linux® From Scratch (System V Edition) - Version r13.0-584

### Chapter 42. Multimedia Libraries and Drivers

- Prev

  libsamplerate-0.2.2

- Next

  libva-2.23.0

- Up
- Home

# libsndfile-1.2.2

## Introduction to libsndfile

Libsndfile is a library of C routines for reading and writing files containing sampled audio data.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://github.com/libsndfile/libsndfile/releases/download/1.2.2/libsndfile-1.2.2.tar.xz

- Download MD5 sum: 04e2e6f726da7c5dc87f8cf72f250d04

- Download size: 716 KB

- Estimated disk space required: 12 MB (add 10 MB for tests)

- Estimated build time: 0.3 SBU (add 0.3 SBU for tests)

### libsndfile Dependencies

#### Recommended

FLAC-1.5.0, Opus-1.6.1, and libvorbis-1.3.7

#### Optional

alsa-lib-1.2.15.3, LAME-3.100, mpg123-1.33.5, and Speex-1.2.1

## Installation of libsndfile

Fix building with GCC-15:

    sed -i '/typedef enum/,/bool ;/d' src/ALAC/alac_{en,de}coder.c

Install libsndfile by running the following commands:

    ./configure --prefix=/usr    \
                --docdir=/usr/share/doc/libsndfile-1.2.2 &&
    make

If running the test suite, disable the Opus tests which would fail with the recent Opus release and cause the test suite to bail out early:

    sed '/ogg_opus/,+1s/HAVE_[A-Z_]*/0/' -i tests/lossy_comp_test.c

To test the results, issue: make check.

Now, as the `root` user:

    make install

## Contents

Installed Programs: sndfile-cmp, sndfile-concat, sndfile-convert, sndfile-deinterleave, sndfile-info, sndfile-interleave, sndfile-metadata-get, sndfile-metadata-set, sndfile-play, and sndfile-salvage
Installed Library: libsndfile.so
Installed Directory: /usr/share/doc/libsndfile-1.2.2

### Short Descriptions

sndfile-cmp | compares two audio files
sndfile-concat | concatenates two or more audio files
sndfile-convert | converts a sound file from one format to another
sndfile-deinterleave | splits a multi-channel into multiple single channel files
sndfile-info | displays information about a sound file
sndfile-interleave | converts multiple single channel files into a multi-channel file
sndfile-metadata-get | retrieves metadata from a sound file
sndfile-metadata-set | sets metadata in a sound file
sndfile-play | plays a sound file
sndfile-salvage | salvages the audio data from WAV files which are more than 4 GB in size
`libsndfile.so` | contains the libsndfile API functions

- Prev

  libsamplerate-0.2.2

- Next

  libva-2.23.0

- Up
- Home