r663: This commit was generated by cvs2svn to compensate for changes in r662,
[cinelerra_cv.git] / libsndfile / doc / embedded_files.html
blob09c465474704c658fd172027b1d01d2bc063b4ff
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <HTML>
4 <HEAD>
5 <TITLE>
6 libsndfile : Embedded Sound Files.
7 </TITLE>
8 <META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT zip DOT com DOT au)">
9 <META NAME="Version" CONTENT="Version 1.0.5">
10 <META NAME="Description" CONTENT="The libsndfile API.">
11 <META NAME="Keywords" CONTENT="WAV AIFF AU libsndfile sound audio dsp Linux">
12 <LINK REL=StyleSheet HREF="libsndfile.css" TYPE="text/css" MEDIA="all">
13 </HEAD>
15 <BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#5050FF" VLINK="#5050FF" ALINK="#FF00FF">
17 <H1><B>Embedded Sound Files.</B></H1>
19 <P>
20 By using the open SNDFILE with a file descriptor function:
21 </P>
23 <PRE>
24 SNDFILE* sf_open_fd (int fd, int mode, SF_INFO *sfinfo, int close_desc) ;
25 </PRE>
27 <P>
28 it is possible to open sound files embedded within larger files.
29 There are however a couple of caveats:
30 <P>
32 <UL>
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
36 than zero.
37 <LI> Not all file formats are supported (currently only WAV, AIFF and AU).
38 </UL>
40 <P>
41 The test program <B>multi_file.c</B> in the <B>tests/</B> directory of the
42 source code tarball shows how this functionality is used to read and write
43 embedded files.
44 </P>
46 </BODY>
47 </HTML>