forked from Mirrors/freeswitch
77fab7603a
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0186 http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz This will likely require a fresh boostrap to updated source checkouts. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13415 d0543943-73ff-0310-b7d9-9358b9ac24b2
47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
<!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">
|
|
</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>
|