1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
6 libsndfile : Embedded Sound Files.
8 <META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
9 <META NAME="Description" CONTENT="The libsndfile API.">
10 <META NAME="Keywords" CONTENT="WAV AIFF AU libsndfile sound audio dsp Linux">
11 <LINK REL="stylesheet" HREF="libsndfile.css" TYPE="text/css" MEDIA="all">
12 <LINK REL="stylesheet" HREF="print.css" TYPE="text/css" MEDIA="print">
17 <H1><B>Embedded Sound Files.</B></H1>
20 By using the open SNDFILE with a file descriptor function:
24 SNDFILE* sf_open_fd (int fd, int mode, SF_INFO *sfinfo, int close_desc) ;
28 it is possible to open sound files embedded within larger files.
29 There are however a couple of caveats:
33 <LI> Read/Write mode (SFM_RDWR) is not supported.
34 <LI> Writing of embedded files is only supported at the end of the file.
35 <LI> Reading of embedded files is only supported at file offsets greater
37 <LI> Not all file formats are supported (currently only WAV, AIFF and AU).
41 The test program <B>multi_file_test.c</B> in the <B>tests/</B> directory of the
42 source code tarball shows how this functionality is used to read and write