You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
3.9KB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>
  5. Secret Rabbit Code (aka libsamplerate)
  6. </TITLE>
  7. <META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
  8. <META NAME="Version" CONTENT="libsamplerate-0.1.8">
  9. <META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
  10. <META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
  11. <LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
  12. </HEAD>
  13. <BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
  14. <!-- pepper -->
  15. <CENTER>
  16. <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
  17. </CENTER>
  18. <!-- pepper -->
  19. <BR>
  20. <!-- pepper -->
  21. <TABLE ALIGN="center" WIDTH="98%">
  22. <TR>
  23. <TD VALIGN="top">
  24. <BR>
  25. <DIV CLASS="nav">
  26. <BR>
  27. <A HREF="index.html">Home</A><BR>
  28. <A HREF="license.html">License</A><BR>
  29. <A HREF="history.html">History</A><BR>
  30. <A HREF="download.html">Download</A><BR>
  31. <A HREF="quality.html">Quality</A><BR>
  32. <A HREF="api.html">API</A><BR>
  33. <A HREF="bugs.html">Bug Reporting</A><BR>
  34. <A HREF="win32.html">On Win32</A><BR>
  35. <A HREF="faq.html">FAQ</A><BR>
  36. <A HREF="lists.html">Mailing Lists</A><BR>
  37. <A HREF="ChangeLog">ChangeLog</A><BR>
  38. <BR>
  39. <DIV CLASS="block">
  40. Author :<BR>Erik de Castro Lopo
  41. <!-- pepper -->
  42. <BR><BR>
  43. <!-- pepper -->
  44. </DIV>
  45. <IMG SRC=
  46. "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_api.dat"
  47. HEIGHT=30 WIDTH=100 ALT="counter.gif">
  48. </DIV>
  49. </TD>
  50. <!-- pepper -->
  51. <!-- ######################################################################## -->
  52. <!-- pepper -->
  53. <TD VALIGN="top">
  54. <DIV CLASS="block">
  55. <H1><B>Applications Programming Interface</B></H1>
  56. <P>
  57. The publically callable functions of libsamplerate are all listed in the
  58. <B>&lt;samplerate.h&gt;</B> header file.
  59. In order to use any of the functionality of libsamplerate, you need to add
  60. </P>
  61. <PRE>
  62. #include &lt;samplerate.h&gt;
  63. </PRE>
  64. <P>
  65. to the top of any function that call any of the following functions.
  66. You will also need to link you binary with the libsamplerate library.
  67. </P>
  68. <P>
  69. The API allows three methods for accessing the capabilies of the library:
  70. </P>
  71. <UL>
  72. <LI>A <A HREF="api_simple.html">simple interface</A> which can sample rate convert
  73. a single block of samples (one or more channels) in one go.
  74. The simple API is less capable than the full API.
  75. <LI>A <A HREF="api_full.html">more fully featured interface</A> which allows time
  76. varying sample rate conversion on streaming data (again one or more
  77. channels).
  78. <LI>A <A HREF="api_callback.html">callback interface</A> which has the same
  79. functionality as the interface above but allows the details of input and
  80. output to be separated.
  81. The output is generated by call a read function and the library calls a user
  82. supplied callback function to obtain its input.
  83. This interface is particularly well suited to applications where the output
  84. sample rate is varied with time.
  85. </UL>
  86. <P>
  87. <b>NB :</b> All three access methods are able to process multi channel interleaved
  88. data.
  89. </P>
  90. <P>
  91. The parts of the API which are common to all three interfaces are:
  92. </P>
  93. <UL>
  94. <LI> The <A HREF="api_misc.html#ErrorReporting">error reporting</A> mechanisim.
  95. <LI> The available <A HREF="api_misc.html#Converters">converter</A> types.
  96. <LI> The <A HREF="api_misc.html#SRC_DATA">SRC_DATA</A> struct.
  97. </UL>
  98. <P>
  99. All three versions of the API are restricted to operating on buffers of ISO C
  100. Standard <B>float</B> data.
  101. However, there are two
  102. <A HREF="api_misc.html#Aux">auxillary functions</A>
  103. for converting arrays of float data to and from short data.
  104. </P>
  105. <P>
  106. <B>Note:</B> The <B>tests/</B> and <B>examples/</B> directories of the source code
  107. distribution contain numerous example programs showing the use of the library.
  108. </P>
  109. <!-- pepper -->
  110. <!-- <A HREF="mailto:aldel0305@mega-nerd.com">For the spam bots</A> -->
  111. <!-- pepper -->
  112. </DIV>
  113. </TD></TR>
  114. </TABLE>
  115. </BODY>
  116. </HTML>