Нет описания

audiomanip_8h.html 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>My Project: audiomanip.h File Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td style="padding-left: 0.5em;">
  26. <div id="projectname">My Project
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li><a href="annotated.html"><span>Classes</span></a></li>
  42. <li class="current"><a href="files.html"><span>Files</span></a></li>
  43. <li>
  44. <div id="MSearchBox" class="MSearchBoxInactive">
  45. <span class="left">
  46. <img id="MSearchSelect" src="search/mag_sel.png"
  47. onmouseover="return searchBox.OnSearchSelectShow()"
  48. onmouseout="return searchBox.OnSearchSelectHide()"
  49. alt=""/>
  50. <input type="text" id="MSearchField" value="Search" accesskey="S"
  51. onfocus="searchBox.OnSearchFieldFocus(true)"
  52. onblur="searchBox.OnSearchFieldFocus(false)"
  53. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  54. </span><span class="right">
  55. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  56. </span>
  57. </div>
  58. </li>
  59. </ul>
  60. </div>
  61. <div id="navrow2" class="tabs2">
  62. <ul class="tablist">
  63. <li><a href="files.html"><span>File&#160;List</span></a></li>
  64. <li><a href="globals.html"><span>File&#160;Members</span></a></li>
  65. </ul>
  66. </div>
  67. <!-- window showing the filter options -->
  68. <div id="MSearchSelectWindow"
  69. onmouseover="return searchBox.OnSearchSelectShow()"
  70. onmouseout="return searchBox.OnSearchSelectHide()"
  71. onkeydown="return searchBox.OnSearchSelectKey(event)">
  72. </div>
  73. <!-- iframe showing the search results (closed by default) -->
  74. <div id="MSearchResultsWindow">
  75. <iframe src="javascript:void(0)" frameborder="0"
  76. name="MSearchResults" id="MSearchResults">
  77. </iframe>
  78. </div>
  79. </div><!-- top -->
  80. <div class="header">
  81. <div class="summary">
  82. <a href="#define-members">Macros</a> &#124;
  83. <a href="#func-members">Functions</a> </div>
  84. <div class="headertitle">
  85. <div class="title">audiomanip.h File Reference</div> </div>
  86. </div><!--header-->
  87. <div class="contents">
  88. <div class="textblock"><code>#include &lt;QAudioBuffer&gt;</code><br />
  89. </div>
  90. <p><a href="audiomanip_8h_source.html">Go to the source code of this file.</a></p>
  91. <table class="memberdecls">
  92. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
  93. Macros</h2></td></tr>
  94. <tr class="memitem:a03d94cc61b0c5794b5aeb0e8390e7e0d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="audiomanip_8h.html#a03d94cc61b0c5794b5aeb0e8390e7e0d">AudioBuffer</a>&#160;&#160;&#160;QAudioBuffer::S16S</td></tr>
  95. <tr class="separator:a03d94cc61b0c5794b5aeb0e8390e7e0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. </table><table class="memberdecls">
  97. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  98. Functions</h2></td></tr>
  99. <tr class="memitem:a3cd69c0b889169ee6625239ca35e9538"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="audiomanip_8h.html#a3cd69c0b889169ee6625239ca35e9538">RemoveVocals</a> (<a class="el" href="audiomanip_8h.html#a03d94cc61b0c5794b5aeb0e8390e7e0d">AudioBuffer</a> frames[], int N)</td></tr>
  100. <tr class="memdesc:a3cd69c0b889169ee6625239ca35e9538"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given the audio frames of the sound clip, remove the vocals from the clip. <a href="#a3cd69c0b889169ee6625239ca35e9538">More...</a><br /></td></tr>
  101. <tr class="separator:a3cd69c0b889169ee6625239ca35e9538"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a88857e657ef3840063e4ea5e9e898dba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="audiomanip_8h.html#a88857e657ef3840063e4ea5e9e898dba">AudioFadeIn</a> (<a class="el" href="audiomanip_8h.html#a03d94cc61b0c5794b5aeb0e8390e7e0d">AudioBuffer</a> frames[], int N, int fade_length)</td></tr>
  103. <tr class="memdesc:a88857e657ef3840063e4ea5e9e898dba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Perform an audio fade in of the sound clip. <a href="#a88857e657ef3840063e4ea5e9e898dba">More...</a><br /></td></tr>
  104. <tr class="separator:a88857e657ef3840063e4ea5e9e898dba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:a980252d21947f1aa1bd45d1ba3938121"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="audiomanip_8h.html#a980252d21947f1aa1bd45d1ba3938121">AudioFadeOut</a> (<a class="el" href="audiomanip_8h.html#a03d94cc61b0c5794b5aeb0e8390e7e0d">AudioBuffer</a> frames[], int N, int fade_length)</td></tr>
  106. <tr class="memdesc:a980252d21947f1aa1bd45d1ba3938121"><td class="mdescLeft">&#160;</td><td class="mdescRight">Perform an audio fade out of the sound clip. <a href="#a980252d21947f1aa1bd45d1ba3938121">More...</a><br /></td></tr>
  107. <tr class="separator:a980252d21947f1aa1bd45d1ba3938121"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:acdb38ec71647d81c81eeadf210a7800c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="audiomanip_8h.html#acdb38ec71647d81c81eeadf210a7800c">LeftToRight</a> (<a class="el" href="audiomanip_8h.html#a03d94cc61b0c5794b5aeb0e8390e7e0d">AudioBuffer</a> frames[], int N, int pan_length)</td></tr>
  109. <tr class="memdesc:acdb38ec71647d81c81eeadf210a7800c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs a panning effect from left to right. <a href="#acdb38ec71647d81c81eeadf210a7800c">More...</a><br /></td></tr>
  110. <tr class="separator:acdb38ec71647d81c81eeadf210a7800c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. </table>
  112. <h2 class="groupheader">Macro Definition Documentation</h2>
  113. <a class="anchor" id="a03d94cc61b0c5794b5aeb0e8390e7e0d"></a>
  114. <div class="memitem">
  115. <div class="memproto">
  116. <table class="memname">
  117. <tr>
  118. <td class="memname">#define AudioBuffer&#160;&#160;&#160;QAudioBuffer::S16S</td>
  119. </tr>
  120. </table>
  121. </div><div class="memdoc">
  122. <p>AudioBuffer is an object with left and right side of an stereo audio </p>
  123. </div>
  124. </div>
  125. <h2 class="groupheader">Function Documentation</h2>
  126. <a class="anchor" id="a88857e657ef3840063e4ea5e9e898dba"></a>
  127. <div class="memitem">
  128. <div class="memproto">
  129. <table class="memname">
  130. <tr>
  131. <td class="memname">void AudioFadeIn </td>
  132. <td>(</td>
  133. <td class="paramtype"><a class="el" href="audiomanip_8h.html#a03d94cc61b0c5794b5aeb0e8390e7e0d">AudioBuffer</a>&#160;</td>
  134. <td class="paramname"><em>frames</em>[], </td>
  135. </tr>
  136. <tr>
  137. <td class="paramkey"></td>
  138. <td></td>
  139. <td class="paramtype">int&#160;</td>
  140. <td class="paramname"><em>N</em>, </td>
  141. </tr>
  142. <tr>
  143. <td class="paramkey"></td>
  144. <td></td>
  145. <td class="paramtype">int&#160;</td>
  146. <td class="paramname"><em>fade_length</em>&#160;</td>
  147. </tr>
  148. <tr>
  149. <td></td>
  150. <td>)</td>
  151. <td></td><td></td>
  152. </tr>
  153. </table>
  154. </div><div class="memdoc">
  155. <p>Perform an audio fade in of the sound clip. </p>
  156. <dl class="params"><dt>Parameters</dt><dd>
  157. <table class="params">
  158. <tr><td class="paramname">frames</td><td>array that contains audio samples, it will modified this function. </td></tr>
  159. <tr><td class="paramname">N</td><td>number of audio samples (per channel) </td></tr>
  160. <tr><td class="paramname">fade_length</td><td>length of the fade in, in terms of audio samples </td></tr>
  161. </table>
  162. </dd>
  163. </dl>
  164. </div>
  165. </div>
  166. <a class="anchor" id="a980252d21947f1aa1bd45d1ba3938121"></a>
  167. <div class="memitem">
  168. <div class="memproto">
  169. <table class="memname">
  170. <tr>
  171. <td class="memname">void AudioFadeOut </td>
  172. <td>(</td>
  173. <td class="paramtype"><a class="el" href="audiomanip_8h.html#a03d94cc61b0c5794b5aeb0e8390e7e0d">AudioBuffer</a>&#160;</td>
  174. <td class="paramname"><em>frames</em>[], </td>
  175. </tr>
  176. <tr>
  177. <td class="paramkey"></td>
  178. <td></td>
  179. <td class="paramtype">int&#160;</td>
  180. <td class="paramname"><em>N</em>, </td>
  181. </tr>
  182. <tr>
  183. <td class="paramkey"></td>
  184. <td></td>
  185. <td class="paramtype">int&#160;</td>
  186. <td class="paramname"><em>fade_length</em>&#160;</td>
  187. </tr>
  188. <tr>
  189. <td></td>
  190. <td>)</td>
  191. <td></td><td></td>
  192. </tr>
  193. </table>
  194. </div><div class="memdoc">
  195. <p>Perform an audio fade out of the sound clip. </p>
  196. <dl class="params"><dt>Parameters</dt><dd>
  197. <table class="params">
  198. <tr><td class="paramname">frames</td><td>array that contains audio samples, it will modified this function. </td></tr>
  199. <tr><td class="paramname">N</td><td>number of audio samples (per channel) </td></tr>
  200. <tr><td class="paramname">fade_length</td><td>length of the fade out, in terms of audio samples </td></tr>
  201. </table>
  202. </dd>
  203. </dl>
  204. </div>
  205. </div>
  206. <a class="anchor" id="acdb38ec71647d81c81eeadf210a7800c"></a>
  207. <div class="memitem">
  208. <div class="memproto">
  209. <table class="memname">
  210. <tr>
  211. <td class="memname">void LeftToRight </td>
  212. <td>(</td>
  213. <td class="paramtype"><a class="el" href="audiomanip_8h.html#a03d94cc61b0c5794b5aeb0e8390e7e0d">AudioBuffer</a>&#160;</td>
  214. <td class="paramname"><em>frames</em>[], </td>
  215. </tr>
  216. <tr>
  217. <td class="paramkey"></td>
  218. <td></td>
  219. <td class="paramtype">int&#160;</td>
  220. <td class="paramname"><em>N</em>, </td>
  221. </tr>
  222. <tr>
  223. <td class="paramkey"></td>
  224. <td></td>
  225. <td class="paramtype">int&#160;</td>
  226. <td class="paramname"><em>pan_length</em>&#160;</td>
  227. </tr>
  228. <tr>
  229. <td></td>
  230. <td>)</td>
  231. <td></td><td></td>
  232. </tr>
  233. </table>
  234. </div><div class="memdoc">
  235. <p>Performs a panning effect from left to right. </p>
  236. <dl class="params"><dt>Parameters</dt><dd>
  237. <table class="params">
  238. <tr><td class="paramname">frames</td><td>array that contains audio samples, it will modified this function. </td></tr>
  239. <tr><td class="paramname">N</td><td>number of audio samples (per channel) </td></tr>
  240. <tr><td class="paramname">pan_length</td><td>length of the panning effect, in terms of audio samples </td></tr>
  241. </table>
  242. </dd>
  243. </dl>
  244. </div>
  245. </div>
  246. <a class="anchor" id="a3cd69c0b889169ee6625239ca35e9538"></a>
  247. <div class="memitem">
  248. <div class="memproto">
  249. <table class="memname">
  250. <tr>
  251. <td class="memname">void RemoveVocals </td>
  252. <td>(</td>
  253. <td class="paramtype"><a class="el" href="audiomanip_8h.html#a03d94cc61b0c5794b5aeb0e8390e7e0d">AudioBuffer</a>&#160;</td>
  254. <td class="paramname"><em>frames</em>[], </td>
  255. </tr>
  256. <tr>
  257. <td class="paramkey"></td>
  258. <td></td>
  259. <td class="paramtype">int&#160;</td>
  260. <td class="paramname"><em>N</em>&#160;</td>
  261. </tr>
  262. <tr>
  263. <td></td>
  264. <td>)</td>
  265. <td></td><td></td>
  266. </tr>
  267. </table>
  268. </div><div class="memdoc">
  269. <p>Given the audio frames of the sound clip, remove the vocals from the clip. </p>
  270. <dl class="params"><dt>Parameters</dt><dd>
  271. <table class="params">
  272. <tr><td class="paramname">frames</td><td>array that contains audio samples, it will be modified this function. </td></tr>
  273. <tr><td class="paramname">N</td><td>number of audio samples (per channel) </td></tr>
  274. </table>
  275. </dd>
  276. </dl>
  277. </div>
  278. </div>
  279. </div><!-- contents -->
  280. <!-- start footer part -->
  281. <hr class="footer"/><address class="footer"><small>
  282. Generated on Wed Jun 3 2015 09:11:49 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  283. <img class="footer" src="doxygen.png" alt="doxygen"/>
  284. </a> 1.8.9.1
  285. </small></address>
  286. </body>
  287. </html>