<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libresample: include/libresample.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libresample <span id="projectnumber">0.1.3</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div class="header"> <div class="headertitle"> <div class="title">include/libresample.h</div> </div> </div> <div class="contents"> <a href="libresample_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/**********************************************************************</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> resample.h</span> <a name="l00004"></a>00004 <span class="comment"></span> <a name="l00005"></a>00005 <span class="comment"> Real-time library interface by Dominic Mazzoni</span> <a name="l00006"></a>00006 <span class="comment"></span> <a name="l00007"></a>00007 <span class="comment"> Based on resample-1.7:</span> <a name="l00008"></a>00008 <span class="comment"> http://www-ccrma.stanford.edu/~jos/resample/</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> License: LGPL - see the file LICENSE.txt for more information</span> <a name="l00011"></a>00011 <span class="comment"></span> <a name="l00012"></a>00012 <span class="comment">**********************************************************************/</span> <a name="l00013"></a>00013 <a name="l00020"></a>00020 <span class="preprocessor">#ifndef LIBRESAMPLE_INCLUDED</span> <a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define LIBRESAMPLE_INCLUDED</span> <a name="l00022"></a>00022 <span class="preprocessor"></span> <a name="l00023"></a>00023 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00024"></a>00024 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { <a name="l00025"></a>00025 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span> <a name="l00026"></a>00026 <a name="l00043"></a>00043 <span class="keywordtype">void</span> *<a class="code" href="libresample_8h.html#a81a23e872b8d33e260659a9c5d433424" title="Create a resampler.">resample_open</a>(<span class="keywordtype">int</span> highQuality, <a name="l00044"></a>00044 <span class="keywordtype">double</span> minFactor, <a name="l00045"></a>00045 <span class="keywordtype">double</span> maxFactor); <a name="l00046"></a>00046 <a name="l00055"></a>00055 <span class="keywordtype">void</span> *<a class="code" href="libresample_8h.html#a9a1379b4feee283e6e85cd599e32e5d5" title="Duplicate a resampler.">resample_dup</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *handle); <a name="l00056"></a>00056 <a name="l00064"></a>00064 <span class="keywordtype">int</span> <a class="code" href="libresample_8h.html#a70b6ec0ecff37e5c1a76f8ac4d84ee91" title="Get filter width for resampler.">resample_get_filter_width</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> *handle); <a name="l00065"></a>00065 <a name="l00095"></a>00095 <span class="keywordtype">int</span> <a class="code" href="libresample_8h.html#ad865648128b94cfa46e44cf120605509" title="Resample a chunk of audio.">resample_process</a>(<span class="keywordtype">void</span> *handle, <a name="l00096"></a>00096 <span class="keywordtype">double</span> factor, <a name="l00097"></a>00097 <span class="keywordtype">float</span> *inBuffer, <a name="l00098"></a>00098 <span class="keywordtype">int</span> inBufferLen, <a name="l00099"></a>00099 <span class="keywordtype">int</span> lastFlag, <a name="l00100"></a>00100 <span class="keywordtype">int</span> *inBufferUsed, <a name="l00101"></a>00101 <span class="keywordtype">float</span> *outBuffer, <a name="l00102"></a>00102 <span class="keywordtype">int</span> outBufferLen); <a name="l00103"></a>00103 <a name="l00114"></a>00114 <span class="keywordtype">void</span> <a class="code" href="libresample_8h.html#addd2d8ef2ec997104c5c22401a93a734" title="Close a resampler.">resample_close</a>(<span class="keywordtype">void</span> *handle); <a name="l00115"></a>00115 <a name="l00116"></a>00116 <span class="preprocessor">#ifdef __cplusplus</span> <a name="l00117"></a>00117 <span class="preprocessor"></span>} <span class="comment">/* extern "C" */</span> <a name="l00118"></a>00118 <span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span> <a name="l00119"></a>00119 <a name="l00120"></a>00120 <span class="preprocessor">#endif </span><span class="comment">/* LIBRESAMPLE_INCLUDED */</span> </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Mon Apr 11 2011 for libresample by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>