annotate src/libsndfile-1.0.25/doc/embedded_files.html @ 0:c7265573341e

Import initial set of sources
author Chris Cannam
date Mon, 18 Mar 2013 14:12:14 +0000
parents
children
rev   line source
Chris@0 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Chris@0 2 <HTML>
Chris@0 3
Chris@0 4 <HEAD>
Chris@0 5 <TITLE>
Chris@0 6 libsndfile : Embedded Sound Files.
Chris@0 7 </TITLE>
Chris@0 8 <META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
Chris@0 9 <META NAME="Description" CONTENT="The libsndfile API.">
Chris@0 10 <META NAME="Keywords" CONTENT="WAV AIFF AU libsndfile sound audio dsp Linux">
Chris@0 11 <LINK REL="stylesheet" HREF="libsndfile.css" TYPE="text/css" MEDIA="all">
Chris@0 12 <LINK REL="stylesheet" HREF="print.css" TYPE="text/css" MEDIA="print">
Chris@0 13 </HEAD>
Chris@0 14 <!-- pepper -->
Chris@0 15 <BODY>
Chris@0 16 <!-- pepper -->
Chris@0 17 <H1><B>Embedded Sound Files.</B></H1>
Chris@0 18
Chris@0 19 <P>
Chris@0 20 By using the open SNDFILE with a file descriptor function:
Chris@0 21 </P>
Chris@0 22 <!-- pepper -->
Chris@0 23 <PRE>
Chris@0 24 SNDFILE* sf_open_fd (int fd, int mode, SF_INFO *sfinfo, int close_desc) ;
Chris@0 25 </PRE>
Chris@0 26 <!-- pepper -->
Chris@0 27 <P>
Chris@0 28 it is possible to open sound files embedded within larger files.
Chris@0 29 There are however a couple of caveats:
Chris@0 30 <P>
Chris@0 31 <!-- pepper -->
Chris@0 32 <UL>
Chris@0 33 <LI> Read/Write mode (SFM_RDWR) is not supported.
Chris@0 34 <LI> Writing of embedded files is only supported at the end of the file.
Chris@0 35 <LI> Reading of embedded files is only supported at file offsets greater
Chris@0 36 than zero.
Chris@0 37 <LI> Not all file formats are supported (currently only WAV, AIFF and AU).
Chris@0 38 </UL>
Chris@0 39 <!-- pepper -->
Chris@0 40 <P>
Chris@0 41 The test program <B>multi_file_test.c</B> in the <B>tests/</B> directory of the
Chris@0 42 source code tarball shows how this functionality is used to read and write
Chris@0 43 embedded files.
Chris@0 44 </P>
Chris@0 45 <!-- pepper -->
Chris@0 46 </BODY>
Chris@0 47 </HTML>