diff options
author | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-07-18 20:35:05 +0100 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-07-18 20:35:05 +0100 |
commit | aceb1f30497619786f1827e4c65992b890a07410 (patch) | |
tree | ce33ac9d0d076a8ec4f993e614cf71a4d5daa7e7 /doc/embedded_files.html | |
download | libsndfile-aceb1f30497619786f1827e4c65992b890a07410.tar.gz |
Tarball conversion
Diffstat (limited to 'doc/embedded_files.html')
-rw-r--r-- | doc/embedded_files.html | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/doc/embedded_files.html b/doc/embedded_files.html new file mode 100644 index 0000000..c73e86a --- /dev/null +++ b/doc/embedded_files.html @@ -0,0 +1,47 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<HTML> + +<HEAD> + <TITLE> + libsndfile : Embedded Sound Files. + </TITLE> + <META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)"> + <META NAME="Description" CONTENT="The libsndfile API."> + <META NAME="Keywords" CONTENT="WAV AIFF AU libsndfile sound audio dsp Linux"> + <LINK REL="stylesheet" HREF="libsndfile.css" TYPE="text/css" MEDIA="all"> + <LINK REL="stylesheet" HREF="print.css" TYPE="text/css" MEDIA="print"> +</HEAD> +<!-- pepper --> +<BODY> +<!-- pepper --> +<H1><B>Embedded Sound Files.</B></H1> + +<P> +By using the open SNDFILE with a file descriptor function: +</P> +<!-- pepper --> +<PRE> + SNDFILE* sf_open_fd (int fd, int mode, SF_INFO *sfinfo, int close_desc) ; +</PRE> +<!-- pepper --> +<P> +it is possible to open sound files embedded within larger files. +There are however a couple of caveats: +<P> +<!-- pepper --> +<UL> + <LI> Read/Write mode (SFM_RDWR) is not supported. + <LI> Writing of embedded files is only supported at the end of the file. + <LI> Reading of embedded files is only supported at file offsets greater + than zero. + <LI> Not all file formats are supported (currently only WAV, AIFF and AU). +</UL> +<!-- pepper --> +<P> +The test program <B>multi_file_test.c</B> in the <B>tests/</B> directory of the +source code tarball shows how this functionality is used to read and write +embedded files. +</P> +<!-- pepper --> +</BODY> +</HTML> |