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 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">
15 <BODY TEXT=
"#FFFFFF" BGCOLOR=
"#000000" LINK=
"#5050FF" VLINK=
"#5050FF" ALINK=
"#FF00FF">
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.c
</B> in the
<B>tests/
</B> directory of the
42 source code tarball shows how this functionality is used to read and write