| 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.13"/> |
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 |
<title>TwoLAME: twolame.h File Reference</title> |
| 9 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 |
<script type="text/javascript" src="jquery.js"></script> |
| 11 |
<script type="text/javascript" src="dynsections.js"></script> |
| 12 |
<link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 16 |
<div id="titlearea"> |
| 17 |
<table cellspacing="0" cellpadding="0"> |
| 18 |
<tbody> |
| 19 |
<tr style="height: 56px;"> |
| 20 |
<td id="projectalign" style="padding-left: 0.5em;"> |
| 21 |
<div id="projectname">TwoLAME |
| 22 |
 <span id="projectnumber">0.4.0</span> |
| 23 |
</div> |
| 24 |
<div id="projectbrief">MPEG Audio Layer 2 encoder</div> |
| 25 |
</td> |
| 26 |
</tr> |
| 27 |
</tbody> |
| 28 |
</table> |
| 29 |
</div> |
| 30 |
<!-- end header part --> |
| 31 |
<!-- Generated by Doxygen 1.8.13 --> |
| 32 |
<div id="nav-path" class="navpath"> |
| 33 |
<ul> |
| 34 |
<li class="navelem"><a class="el" href="dir_1b4fac428bc971c65146f04e8e68f902.html">libtwolame</a></li> </ul> |
| 35 |
</div> |
| 36 |
</div><!-- top --> |
| 37 |
<div class="header"> |
| 38 |
<div class="summary"> |
| 39 |
<a href="#define-members">Macros</a> | |
| 40 |
<a href="#typedef-members">Typedefs</a> | |
| 41 |
<a href="#enum-members">Enumerations</a> | |
| 42 |
<a href="#func-members">Functions</a> </div> |
| 43 |
<div class="headertitle"> |
| 44 |
<div class="title">twolame.h File Reference</div> </div> |
| 45 |
</div><!--header--> |
| 46 |
<div class="contents"> |
| 47 |
|
| 48 |
<p><a href="twolame_8h_source.html">Go to the source code of this file.</a></p> |
| 49 |
<table class="memberdecls"> |
| 50 |
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> |
| 51 |
Macros</h2></td></tr> |
| 52 |
<tr class="memitem:a09bd4a4970ba3c49e9f1327daefeb8c1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a09bd4a4970ba3c49e9f1327daefeb8c1">TWOLAME_SAMPLES_PER_FRAME</a>   (1152)</td></tr> |
| 53 |
<tr class="separator:a09bd4a4970ba3c49e9f1327daefeb8c1"><td class="memSeparator" colspan="2"> </td></tr> |
| 54 |
</table><table class="memberdecls"> |
| 55 |
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> |
| 56 |
Typedefs</h2></td></tr> |
| 57 |
<tr class="memitem:a429c5c35b47d5d7cc34a07e48a82866d"><td class="memItemLeft" align="right" valign="top">typedef struct twolame_options_struct </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a></td></tr> |
| 58 |
<tr class="separator:a429c5c35b47d5d7cc34a07e48a82866d"><td class="memSeparator" colspan="2"> </td></tr> |
| 59 |
</table><table class="memberdecls"> |
| 60 |
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> |
| 61 |
Enumerations</h2></td></tr> |
| 62 |
<tr class="memitem:a91879045676d9146c9bfcb8b0a30b57f"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57f">TWOLAME_MPEG_mode</a> { <br /> |
| 63 |
  <a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57fab0b25df193c4be6b5c7bda71166df264">TWOLAME_AUTO_MODE</a> = -1, |
| 64 |
<br /> |
| 65 |
  <a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57fa785df1b22ebb296610b938793906f66d">TWOLAME_STEREO</a> = 0, |
| 66 |
<br /> |
| 67 |
  <a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57fa944018843ef67ac47d3e680c749b2967">TWOLAME_JOINT_STEREO</a>, |
| 68 |
<br /> |
| 69 |
  <a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57fae054f4dcb5762d5c58c3db92e5338601">TWOLAME_DUAL_CHANNEL</a>, |
| 70 |
<br /> |
| 71 |
  <a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57fa482d714be97e4cb21c223850ece06456">TWOLAME_MONO</a> |
| 72 |
<br /> |
| 73 |
}</td></tr> |
| 74 |
<tr class="separator:a91879045676d9146c9bfcb8b0a30b57f"><td class="memSeparator" colspan="2"> </td></tr> |
| 75 |
<tr class="memitem:a0f4e287fec57b8ba38e28395996eb6e3"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a0f4e287fec57b8ba38e28395996eb6e3">TWOLAME_MPEG_version</a> { , <br /> |
| 76 |
  <a class="el" href="twolame_8h.html#a0f4e287fec57b8ba38e28395996eb6e3a89b91170fa0bb8423f45ff7a1b45b1d8">TWOLAME_MPEG2</a> = 0, |
| 77 |
<br /> |
| 78 |
  <a class="el" href="twolame_8h.html#a0f4e287fec57b8ba38e28395996eb6e3ae8dc89cc37c6203400e64768eb6b59d5">TWOLAME_MPEG1</a> = 1 |
| 79 |
<br /> |
| 80 |
}</td></tr> |
| 81 |
<tr class="separator:a0f4e287fec57b8ba38e28395996eb6e3"><td class="memSeparator" colspan="2"> </td></tr> |
| 82 |
<tr class="memitem:af83f4f73e4c57db45269667b4421730e"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#af83f4f73e4c57db45269667b4421730e">TWOLAME_Padding</a> { <br /> |
| 83 |
  <a class="el" href="twolame_8h.html#af83f4f73e4c57db45269667b4421730eab2dd0f81e433f7f708622c96466dbff3">TWOLAME_PAD_NO</a> = 0, |
| 84 |
<br /> |
| 85 |
  <a class="el" href="twolame_8h.html#af83f4f73e4c57db45269667b4421730eaecf832eac6e75140fc9397b621e590a8">TWOLAME_PAD_ALL</a> |
| 86 |
<br /> |
| 87 |
}</td></tr> |
| 88 |
<tr class="separator:af83f4f73e4c57db45269667b4421730e"><td class="memSeparator" colspan="2"> </td></tr> |
| 89 |
<tr class="memitem:a50521fc75f96f949634f8f6536c1be1b"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a50521fc75f96f949634f8f6536c1be1b">TWOLAME_Emphasis</a> { <br /> |
| 90 |
  <a class="el" href="twolame_8h.html#a50521fc75f96f949634f8f6536c1be1ba73eced6173758db8e4186d07ee510dd1">TWOLAME_EMPHASIS_N</a> = 0, |
| 91 |
<br /> |
| 92 |
  <a class="el" href="twolame_8h.html#a50521fc75f96f949634f8f6536c1be1baeca80cfc79ece58fd01e06f974394c6e">TWOLAME_EMPHASIS_5</a> = 1, |
| 93 |
<br /> |
| 94 |
  <a class="el" href="twolame_8h.html#a50521fc75f96f949634f8f6536c1be1ba038be927e1993710372565262a73e62d">TWOLAME_EMPHASIS_C</a> = 3 |
| 95 |
<br /> |
| 96 |
}</td></tr> |
| 97 |
<tr class="separator:a50521fc75f96f949634f8f6536c1be1b"><td class="memSeparator" colspan="2"> </td></tr> |
| 98 |
</table><table class="memberdecls"> |
| 99 |
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 100 |
Functions</h2></td></tr> |
| 101 |
<tr class="memitem:ae45d2912ae385c433da7c6573b30605b"><td class="memItemLeft" align="right" valign="top">TL_API const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ae45d2912ae385c433da7c6573b30605b">get_twolame_version</a> (void)</td></tr> |
| 102 |
<tr class="separator:ae45d2912ae385c433da7c6573b30605b"><td class="memSeparator" colspan="2"> </td></tr> |
| 103 |
<tr class="memitem:a75cf66e050c8faa3715784a490412799"><td class="memItemLeft" align="right" valign="top">TL_API const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a75cf66e050c8faa3715784a490412799">get_twolame_url</a> (void)</td></tr> |
| 104 |
<tr class="separator:a75cf66e050c8faa3715784a490412799"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 |
<tr class="memitem:a4a7a14c45336eefa9070c9a7d1bfae0d"><td class="memItemLeft" align="right" valign="top">TL_API void </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a4a7a14c45336eefa9070c9a7d1bfae0d">twolame_print_config</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 106 |
<tr class="separator:a4a7a14c45336eefa9070c9a7d1bfae0d"><td class="memSeparator" colspan="2"> </td></tr> |
| 107 |
<tr class="memitem:aed720579294c2a8b740713e141042bcb"><td class="memItemLeft" align="right" valign="top">TL_API <a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#aed720579294c2a8b740713e141042bcb">twolame_init</a> (void)</td></tr> |
| 108 |
<tr class="separator:aed720579294c2a8b740713e141042bcb"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 |
<tr class="memitem:a16ee636b478e74287e3cda89c3a0e13c"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a16ee636b478e74287e3cda89c3a0e13c">twolame_init_params</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 110 |
<tr class="separator:a16ee636b478e74287e3cda89c3a0e13c"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 |
<tr class="memitem:a22e752d125aabda5d7f4bdbca5a58fdc"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a22e752d125aabda5d7f4bdbca5a58fdc">twolame_encode_buffer</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, const short int leftpcm[], const short int rightpcm[], int num_samples, unsigned char *mp2buffer, int mp2buffer_size)</td></tr> |
| 112 |
<tr class="separator:a22e752d125aabda5d7f4bdbca5a58fdc"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 |
<tr class="memitem:aceee290728b04b992b10406b5aa9859a"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#aceee290728b04b992b10406b5aa9859a">twolame_encode_buffer_interleaved</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, const short int pcm[], int num_samples, unsigned char *mp2buffer, int mp2buffer_size)</td></tr> |
| 114 |
<tr class="separator:aceee290728b04b992b10406b5aa9859a"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 |
<tr class="memitem:a8e5b343a27dddf9e5e285c878e8d0f61"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a8e5b343a27dddf9e5e285c878e8d0f61">twolame_encode_buffer_float32</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, const float leftpcm[], const float rightpcm[], int num_samples, unsigned char *mp2buffer, int mp2buffer_size)</td></tr> |
| 116 |
<tr class="separator:a8e5b343a27dddf9e5e285c878e8d0f61"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 |
<tr class="memitem:aca716bf42f767e889c0505206c3f1160"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#aca716bf42f767e889c0505206c3f1160">twolame_encode_buffer_float32_interleaved</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, const float pcm[], int num_samples, unsigned char *mp2buffer, int mp2buffer_size)</td></tr> |
| 118 |
<tr class="separator:aca716bf42f767e889c0505206c3f1160"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 |
<tr class="memitem:ad6b44a3ed9ded5c99ce271222390f1f0"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ad6b44a3ed9ded5c99ce271222390f1f0">twolame_encode_flush</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, unsigned char *mp2buffer, int mp2buffer_size)</td></tr> |
| 120 |
<tr class="separator:ad6b44a3ed9ded5c99ce271222390f1f0"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 |
<tr class="memitem:a1b867765cb97bdca2e77dd096eea1d33"><td class="memItemLeft" align="right" valign="top">TL_API void </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a1b867765cb97bdca2e77dd096eea1d33">twolame_close</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> **glopts)</td></tr> |
| 122 |
<tr class="separator:a1b867765cb97bdca2e77dd096eea1d33"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 |
<tr class="memitem:aa3dca72581428bde39b67164411e521a"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#aa3dca72581428bde39b67164411e521a">twolame_set_verbosity</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int verbosity)</td></tr> |
| 124 |
<tr class="separator:aa3dca72581428bde39b67164411e521a"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 |
<tr class="memitem:a1ee008e88959bdaa4a208dce75a17004"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a1ee008e88959bdaa4a208dce75a17004">twolame_get_verbosity</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 126 |
<tr class="separator:a1ee008e88959bdaa4a208dce75a17004"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 |
<tr class="memitem:a22aa4fc2035f5dc5a955eddaeb69397b"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a22aa4fc2035f5dc5a955eddaeb69397b">twolame_set_mode</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, <a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57f">TWOLAME_MPEG_mode</a> mode)</td></tr> |
| 128 |
<tr class="separator:a22aa4fc2035f5dc5a955eddaeb69397b"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 |
<tr class="memitem:a6bb05292abe96d545613afbfafc06905"><td class="memItemLeft" align="right" valign="top">TL_API <a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57f">TWOLAME_MPEG_mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a6bb05292abe96d545613afbfafc06905">twolame_get_mode</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 130 |
<tr class="separator:a6bb05292abe96d545613afbfafc06905"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 |
<tr class="memitem:a9d9b9d4ecf0dcf8c965a5bac5c29945c"><td class="memItemLeft" align="right" valign="top">TL_API const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a9d9b9d4ecf0dcf8c965a5bac5c29945c">twolame_get_mode_name</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 132 |
<tr class="separator:a9d9b9d4ecf0dcf8c965a5bac5c29945c"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 |
<tr class="memitem:adaf4b993427cb8e67cbe97b3ed1579a0"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#adaf4b993427cb8e67cbe97b3ed1579a0">twolame_set_version</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, <a class="el" href="twolame_8h.html#a0f4e287fec57b8ba38e28395996eb6e3">TWOLAME_MPEG_version</a> version)</td></tr> |
| 134 |
<tr class="separator:adaf4b993427cb8e67cbe97b3ed1579a0"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 |
<tr class="memitem:a8574928cd2f2ef579354710d7b8cc940"><td class="memItemLeft" align="right" valign="top">TL_API <a class="el" href="twolame_8h.html#a0f4e287fec57b8ba38e28395996eb6e3">TWOLAME_MPEG_version</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a8574928cd2f2ef579354710d7b8cc940">twolame_get_version</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 136 |
<tr class="separator:a8574928cd2f2ef579354710d7b8cc940"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 |
<tr class="memitem:a655e64fbc843745dfd5509e080549d5a"><td class="memItemLeft" align="right" valign="top">TL_API const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a655e64fbc843745dfd5509e080549d5a">twolame_get_version_name</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 138 |
<tr class="separator:a655e64fbc843745dfd5509e080549d5a"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 |
<tr class="memitem:a644d15efd6a04492975c63840ce2407d"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a644d15efd6a04492975c63840ce2407d">twolame_set_freeformat</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int freef)</td></tr> |
| 140 |
<tr class="separator:a644d15efd6a04492975c63840ce2407d"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 |
<tr class="memitem:a3fc61f1c2b4bab1928bdff09e452052c"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a3fc61f1c2b4bab1928bdff09e452052c">twolame_get_framelength</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 142 |
<tr class="separator:a3fc61f1c2b4bab1928bdff09e452052c"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 |
<tr class="memitem:a3bbe9229ae8a1e22eec3004fbcf09168"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a3bbe9229ae8a1e22eec3004fbcf09168">twolame_set_psymodel</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int psymodel)</td></tr> |
| 144 |
<tr class="separator:a3bbe9229ae8a1e22eec3004fbcf09168"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 |
<tr class="memitem:a55c829dbf510decf7f75625dd14c17f5"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a55c829dbf510decf7f75625dd14c17f5">twolame_get_psymodel</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 146 |
<tr class="separator:a55c829dbf510decf7f75625dd14c17f5"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 |
<tr class="memitem:aea2ac6ee873055c9230aa0e95f07870d"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#aea2ac6ee873055c9230aa0e95f07870d">twolame_set_num_channels</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int num_channels)</td></tr> |
| 148 |
<tr class="separator:aea2ac6ee873055c9230aa0e95f07870d"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 |
<tr class="memitem:a75f436244f8d6e985864d09a32debca0"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a75f436244f8d6e985864d09a32debca0">twolame_get_num_channels</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 150 |
<tr class="separator:a75f436244f8d6e985864d09a32debca0"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 |
<tr class="memitem:ab9aa5129202f3e6d4e26973ade3ed1ed"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ab9aa5129202f3e6d4e26973ade3ed1ed">twolame_set_scale</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, float scale)</td></tr> |
| 152 |
<tr class="separator:ab9aa5129202f3e6d4e26973ade3ed1ed"><td class="memSeparator" colspan="2"> </td></tr> |
| 153 |
<tr class="memitem:aa5e6b1e3e053f2431105cfecee0d7156"><td class="memItemLeft" align="right" valign="top">TL_API float </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#aa5e6b1e3e053f2431105cfecee0d7156">twolame_get_scale</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 154 |
<tr class="separator:aa5e6b1e3e053f2431105cfecee0d7156"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 |
<tr class="memitem:a610babaffe4b5442d6b534b494db55fe"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a610babaffe4b5442d6b534b494db55fe">twolame_set_scale_left</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, float scale)</td></tr> |
| 156 |
<tr class="separator:a610babaffe4b5442d6b534b494db55fe"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 |
<tr class="memitem:a0c112cfd7932683917fb8a71deed97a9"><td class="memItemLeft" align="right" valign="top">TL_API float </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a0c112cfd7932683917fb8a71deed97a9">twolame_get_scale_left</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 158 |
<tr class="separator:a0c112cfd7932683917fb8a71deed97a9"><td class="memSeparator" colspan="2"> </td></tr> |
| 159 |
<tr class="memitem:acf1282a8403a6ed8531a413649436b1f"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#acf1282a8403a6ed8531a413649436b1f">twolame_set_scale_right</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, float scale)</td></tr> |
| 160 |
<tr class="separator:acf1282a8403a6ed8531a413649436b1f"><td class="memSeparator" colspan="2"> </td></tr> |
| 161 |
<tr class="memitem:a1f64127a1935f7bddc26a58738dff4ce"><td class="memItemLeft" align="right" valign="top">TL_API float </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a1f64127a1935f7bddc26a58738dff4ce">twolame_get_scale_right</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 162 |
<tr class="separator:a1f64127a1935f7bddc26a58738dff4ce"><td class="memSeparator" colspan="2"> </td></tr> |
| 163 |
<tr class="memitem:afb2e3bd9d0eb90ae34b78d80b9b4b1a6"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#afb2e3bd9d0eb90ae34b78d80b9b4b1a6">twolame_set_in_samplerate</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int samplerate)</td></tr> |
| 164 |
<tr class="separator:afb2e3bd9d0eb90ae34b78d80b9b4b1a6"><td class="memSeparator" colspan="2"> </td></tr> |
| 165 |
<tr class="memitem:a740d7d472e9cdef9c4bd0b9004845cfb"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a740d7d472e9cdef9c4bd0b9004845cfb">twolame_get_in_samplerate</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 166 |
<tr class="separator:a740d7d472e9cdef9c4bd0b9004845cfb"><td class="memSeparator" colspan="2"> </td></tr> |
| 167 |
<tr class="memitem:a74a3e505b57739b013eb982f06c658e7"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a74a3e505b57739b013eb982f06c658e7">twolame_set_out_samplerate</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int samplerate)</td></tr> |
| 168 |
<tr class="separator:a74a3e505b57739b013eb982f06c658e7"><td class="memSeparator" colspan="2"> </td></tr> |
| 169 |
<tr class="memitem:ad55cabfd5f5a6e63413309eb048bcb0e"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ad55cabfd5f5a6e63413309eb048bcb0e">twolame_get_out_samplerate</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 170 |
<tr class="separator:ad55cabfd5f5a6e63413309eb048bcb0e"><td class="memSeparator" colspan="2"> </td></tr> |
| 171 |
<tr class="memitem:a74e1d153ff064584f83d8a4950ace879"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a74e1d153ff064584f83d8a4950ace879">twolame_set_bitrate</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int bitrate)</td></tr> |
| 172 |
<tr class="separator:a74e1d153ff064584f83d8a4950ace879"><td class="memSeparator" colspan="2"> </td></tr> |
| 173 |
<tr class="memitem:a4b5648ec054a041679087d8d4f4d1800"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a4b5648ec054a041679087d8d4f4d1800">twolame_get_bitrate</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 174 |
<tr class="separator:a4b5648ec054a041679087d8d4f4d1800"><td class="memSeparator" colspan="2"> </td></tr> |
| 175 |
<tr class="memitem:ad908e4e162bfa5bbc5544d8f9f555098"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ad908e4e162bfa5bbc5544d8f9f555098">twolame_set_brate</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int bitrate)</td></tr> |
| 176 |
<tr class="separator:ad908e4e162bfa5bbc5544d8f9f555098"><td class="memSeparator" colspan="2"> </td></tr> |
| 177 |
<tr class="memitem:ac0808742aecdb55da230db776816b063"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ac0808742aecdb55da230db776816b063">twolame_get_brate</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 178 |
<tr class="separator:ac0808742aecdb55da230db776816b063"><td class="memSeparator" colspan="2"> </td></tr> |
| 179 |
<tr class="memitem:a59ab89a073f49fbc371da9e58f9c0f60"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a59ab89a073f49fbc371da9e58f9c0f60">twolame_set_padding</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, <a class="el" href="twolame_8h.html#af83f4f73e4c57db45269667b4421730e">TWOLAME_Padding</a> padding)</td></tr> |
| 180 |
<tr class="separator:a59ab89a073f49fbc371da9e58f9c0f60"><td class="memSeparator" colspan="2"> </td></tr> |
| 181 |
<tr class="memitem:ac98d4fd8246bdece162969ac8a33a432"><td class="memItemLeft" align="right" valign="top">TL_API <a class="el" href="twolame_8h.html#af83f4f73e4c57db45269667b4421730e">TWOLAME_Padding</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ac98d4fd8246bdece162969ac8a33a432">twolame_get_padding</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 182 |
<tr class="separator:ac98d4fd8246bdece162969ac8a33a432"><td class="memSeparator" colspan="2"> </td></tr> |
| 183 |
<tr class="memitem:a5efa25f57dc40c4e5cccd4a7b0e792ae"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a5efa25f57dc40c4e5cccd4a7b0e792ae">twolame_set_energy_levels</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int energylevels)</td></tr> |
| 184 |
<tr class="separator:a5efa25f57dc40c4e5cccd4a7b0e792ae"><td class="memSeparator" colspan="2"> </td></tr> |
| 185 |
<tr class="memitem:a8e2ff690372f647aa398db063ae1c976"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a8e2ff690372f647aa398db063ae1c976">twolame_get_energy_levels</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 186 |
<tr class="separator:a8e2ff690372f647aa398db063ae1c976"><td class="memSeparator" colspan="2"> </td></tr> |
| 187 |
<tr class="memitem:a7443130bc6d361e0035a5a6e000c9bb1"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a7443130bc6d361e0035a5a6e000c9bb1">twolame_set_num_ancillary_bits</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int num)</td></tr> |
| 188 |
<tr class="separator:a7443130bc6d361e0035a5a6e000c9bb1"><td class="memSeparator" colspan="2"> </td></tr> |
| 189 |
<tr class="memitem:afc3ef1940610c3f79c226071935a402a"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#afc3ef1940610c3f79c226071935a402a">twolame_get_num_ancillary_bits</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 190 |
<tr class="separator:afc3ef1940610c3f79c226071935a402a"><td class="memSeparator" colspan="2"> </td></tr> |
| 191 |
<tr class="memitem:a4d07f1d68345166046e291ef8f749049"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a4d07f1d68345166046e291ef8f749049">twolame_set_emphasis</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, <a class="el" href="twolame_8h.html#a50521fc75f96f949634f8f6536c1be1b">TWOLAME_Emphasis</a> emphasis)</td></tr> |
| 192 |
<tr class="separator:a4d07f1d68345166046e291ef8f749049"><td class="memSeparator" colspan="2"> </td></tr> |
| 193 |
<tr class="memitem:a250d0ba0521f18e95760b49d95aaab4d"><td class="memItemLeft" align="right" valign="top">TL_API <a class="el" href="twolame_8h.html#a50521fc75f96f949634f8f6536c1be1b">TWOLAME_Emphasis</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a250d0ba0521f18e95760b49d95aaab4d">twolame_get_emphasis</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 194 |
<tr class="separator:a250d0ba0521f18e95760b49d95aaab4d"><td class="memSeparator" colspan="2"> </td></tr> |
| 195 |
<tr class="memitem:a8c91aa9cd2df99aaecb7f1b985bf906d"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a8c91aa9cd2df99aaecb7f1b985bf906d">twolame_set_error_protection</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int err_protection)</td></tr> |
| 196 |
<tr class="separator:a8c91aa9cd2df99aaecb7f1b985bf906d"><td class="memSeparator" colspan="2"> </td></tr> |
| 197 |
<tr class="memitem:ae89f74462e05c3e3036c0193edbb670d"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ae89f74462e05c3e3036c0193edbb670d">twolame_get_error_protection</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 198 |
<tr class="separator:ae89f74462e05c3e3036c0193edbb670d"><td class="memSeparator" colspan="2"> </td></tr> |
| 199 |
<tr class="memitem:aaf0f806569b58ee803095eb7fdcf3ac0"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#aaf0f806569b58ee803095eb7fdcf3ac0">twolame_set_copyright</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int copyright)</td></tr> |
| 200 |
<tr class="separator:aaf0f806569b58ee803095eb7fdcf3ac0"><td class="memSeparator" colspan="2"> </td></tr> |
| 201 |
<tr class="memitem:a2bc58ab13b098fd1d2aa1a181b03dbd1"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a2bc58ab13b098fd1d2aa1a181b03dbd1">twolame_get_copyright</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 202 |
<tr class="separator:a2bc58ab13b098fd1d2aa1a181b03dbd1"><td class="memSeparator" colspan="2"> </td></tr> |
| 203 |
<tr class="memitem:af9140ba124c6c1ecb584e0e3d922721e"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#af9140ba124c6c1ecb584e0e3d922721e">twolame_set_original</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int original)</td></tr> |
| 204 |
<tr class="separator:af9140ba124c6c1ecb584e0e3d922721e"><td class="memSeparator" colspan="2"> </td></tr> |
| 205 |
<tr class="memitem:a5499776e7bdf2b9c816624b48f64df31"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a5499776e7bdf2b9c816624b48f64df31">twolame_get_original</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 206 |
<tr class="separator:a5499776e7bdf2b9c816624b48f64df31"><td class="memSeparator" colspan="2"> </td></tr> |
| 207 |
<tr class="memitem:a8fb20f5bf8d96e6414b20d2e2b1f39b2"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a8fb20f5bf8d96e6414b20d2e2b1f39b2">twolame_set_extension</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int extension)</td></tr> |
| 208 |
<tr class="separator:a8fb20f5bf8d96e6414b20d2e2b1f39b2"><td class="memSeparator" colspan="2"> </td></tr> |
| 209 |
<tr class="memitem:a876255430b9e2eaa2241a060291be625"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a876255430b9e2eaa2241a060291be625">twolame_get_extension</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 210 |
<tr class="separator:a876255430b9e2eaa2241a060291be625"><td class="memSeparator" colspan="2"> </td></tr> |
| 211 |
<tr class="memitem:a53fe2e2703e890b9d89d94ac8c5290b1"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a53fe2e2703e890b9d89d94ac8c5290b1">twolame_set_VBR</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int vbr)</td></tr> |
| 212 |
<tr class="separator:a53fe2e2703e890b9d89d94ac8c5290b1"><td class="memSeparator" colspan="2"> </td></tr> |
| 213 |
<tr class="memitem:aec59ed0be1a4a2c1877b67adce3ec66c"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#aec59ed0be1a4a2c1877b67adce3ec66c">twolame_get_VBR</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 214 |
<tr class="separator:aec59ed0be1a4a2c1877b67adce3ec66c"><td class="memSeparator" colspan="2"> </td></tr> |
| 215 |
<tr class="memitem:a073690e3157951ab38c08268a91df023"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a073690e3157951ab38c08268a91df023">twolame_set_VBR_level</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, float level)</td></tr> |
| 216 |
<tr class="separator:a073690e3157951ab38c08268a91df023"><td class="memSeparator" colspan="2"> </td></tr> |
| 217 |
<tr class="memitem:a210261dfe18cf4d2095c9abac3a0fa46"><td class="memItemLeft" align="right" valign="top">TL_API float </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a210261dfe18cf4d2095c9abac3a0fa46">twolame_get_VBR_level</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 218 |
<tr class="separator:a210261dfe18cf4d2095c9abac3a0fa46"><td class="memSeparator" colspan="2"> </td></tr> |
| 219 |
<tr class="memitem:ae5168a0dcf9d237f8cb5320402e4fe50"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ae5168a0dcf9d237f8cb5320402e4fe50">twolame_set_ATH_level</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, float level)</td></tr> |
| 220 |
<tr class="separator:ae5168a0dcf9d237f8cb5320402e4fe50"><td class="memSeparator" colspan="2"> </td></tr> |
| 221 |
<tr class="memitem:ae6cbbefef65ef2b0d9eec99b080870fe"><td class="memItemLeft" align="right" valign="top">TL_API float </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ae6cbbefef65ef2b0d9eec99b080870fe">twolame_get_ATH_level</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 222 |
<tr class="separator:ae6cbbefef65ef2b0d9eec99b080870fe"><td class="memSeparator" colspan="2"> </td></tr> |
| 223 |
<tr class="memitem:ab231ca0f8e41edaff09edf9d8f5c6b00"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ab231ca0f8e41edaff09edf9d8f5c6b00">twolame_set_VBR_max_bitrate_kbps</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int bitrate)</td></tr> |
| 224 |
<tr class="separator:ab231ca0f8e41edaff09edf9d8f5c6b00"><td class="memSeparator" colspan="2"> </td></tr> |
| 225 |
<tr class="memitem:ab73a5613a87fcdcab4c51cf2ecadff5a"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ab73a5613a87fcdcab4c51cf2ecadff5a">twolame_get_VBR_max_bitrate_kbps</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 226 |
<tr class="separator:ab73a5613a87fcdcab4c51cf2ecadff5a"><td class="memSeparator" colspan="2"> </td></tr> |
| 227 |
<tr class="memitem:a4e525f54ce1a0879643ebbeaf0ea0c78"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a4e525f54ce1a0879643ebbeaf0ea0c78">twolame_set_quick_mode</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int quickmode)</td></tr> |
| 228 |
<tr class="separator:a4e525f54ce1a0879643ebbeaf0ea0c78"><td class="memSeparator" colspan="2"> </td></tr> |
| 229 |
<tr class="memitem:abc9873bc98728bc538194f9c087da04e"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#abc9873bc98728bc538194f9c087da04e">twolame_get_quick_mode</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 230 |
<tr class="separator:abc9873bc98728bc538194f9c087da04e"><td class="memSeparator" colspan="2"> </td></tr> |
| 231 |
<tr class="memitem:a732b58443b4a0a57f78aa0ceecafb375"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a732b58443b4a0a57f78aa0ceecafb375">twolame_set_quick_count</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int quickcount)</td></tr> |
| 232 |
<tr class="separator:a732b58443b4a0a57f78aa0ceecafb375"><td class="memSeparator" colspan="2"> </td></tr> |
| 233 |
<tr class="memitem:aa3684eec33a26ca90a76320e5ffc58c8"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#aa3684eec33a26ca90a76320e5ffc58c8">twolame_get_quick_count</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 234 |
<tr class="separator:aa3684eec33a26ca90a76320e5ffc58c8"><td class="memSeparator" colspan="2"> </td></tr> |
| 235 |
<tr class="memitem:a466dfdf7f2c102ffc9cdf44f573edae6"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a466dfdf7f2c102ffc9cdf44f573edae6">twolame_set_DAB</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int dab)</td></tr> |
| 236 |
<tr class="separator:a466dfdf7f2c102ffc9cdf44f573edae6"><td class="memSeparator" colspan="2"> </td></tr> |
| 237 |
<tr class="memitem:a49f097f4daa3bc9069f32d09a6bb3fda"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a49f097f4daa3bc9069f32d09a6bb3fda">twolame_get_DAB</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 238 |
<tr class="separator:a49f097f4daa3bc9069f32d09a6bb3fda"><td class="memSeparator" colspan="2"> </td></tr> |
| 239 |
<tr class="memitem:a8ae355d0418be8a756500bc95d59db9d"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a8ae355d0418be8a756500bc95d59db9d">twolame_set_DAB_xpad_length</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int length)</td></tr> |
| 240 |
<tr class="separator:a8ae355d0418be8a756500bc95d59db9d"><td class="memSeparator" colspan="2"> </td></tr> |
| 241 |
<tr class="memitem:ac67092f89ec7d42338d0ae12eba33408"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#ac67092f89ec7d42338d0ae12eba33408">twolame_get_DAB_xpad_length</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 242 |
<tr class="separator:ac67092f89ec7d42338d0ae12eba33408"><td class="memSeparator" colspan="2"> </td></tr> |
| 243 |
<tr class="memitem:af028694a6c67ef1114efaf11aef81c37"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#af028694a6c67ef1114efaf11aef81c37">twolame_set_DAB_crc_length</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, int length)</td></tr> |
| 244 |
<tr class="separator:af028694a6c67ef1114efaf11aef81c37"><td class="memSeparator" colspan="2"> </td></tr> |
| 245 |
<tr class="memitem:a033d490d604eefa64962620e2409ace3"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a033d490d604eefa64962620e2409ace3">twolame_set_DAB_scf_crc_length</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 246 |
<tr class="separator:a033d490d604eefa64962620e2409ace3"><td class="memSeparator" colspan="2"> </td></tr> |
| 247 |
<tr class="memitem:a31d534b1f4bd5bc1dbaa08a620ce8195"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a31d534b1f4bd5bc1dbaa08a620ce8195">twolame_get_DAB_crc_length</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts)</td></tr> |
| 248 |
<tr class="separator:a31d534b1f4bd5bc1dbaa08a620ce8195"><td class="memSeparator" colspan="2"> </td></tr> |
| 249 |
<tr class="memitem:a17b9061e60288c7cdea19bcfb1ed4d5e"><td class="memItemLeft" align="right" valign="top">TL_API int </td><td class="memItemRight" valign="bottom"><a class="el" href="twolame_8h.html#a17b9061e60288c7cdea19bcfb1ed4d5e">twolame_set_DAB_scf_crc</a> (<a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> *glopts, unsigned char *mp2buffer, int mp2buffer_size)</td></tr> |
| 250 |
<tr class="separator:a17b9061e60288c7cdea19bcfb1ed4d5e"><td class="memSeparator" colspan="2"> </td></tr> |
| 251 |
</table> |
| 252 |
<h2 class="groupheader">Macro Definition Documentation</h2> |
| 253 |
<a id="a09bd4a4970ba3c49e9f1327daefeb8c1"></a> |
| 254 |
<h2 class="memtitle"><span class="permalink"><a href="#a09bd4a4970ba3c49e9f1327daefeb8c1">◆ </a></span>TWOLAME_SAMPLES_PER_FRAME</h2> |
| 255 |
|
| 256 |
<div class="memitem"> |
| 257 |
<div class="memproto"> |
| 258 |
<table class="memname"> |
| 259 |
<tr> |
| 260 |
<td class="memname">#define TWOLAME_SAMPLES_PER_FRAME   (1152)</td> |
| 261 |
</tr> |
| 262 |
</table> |
| 263 |
</div><div class="memdoc"> |
| 264 |
<p>Number of samples per frame of Layer 2 MPEG Audio </p> |
| 265 |
|
| 266 |
</div> |
| 267 |
</div> |
| 268 |
<h2 class="groupheader">Typedef Documentation</h2> |
| 269 |
<a id="a429c5c35b47d5d7cc34a07e48a82866d"></a> |
| 270 |
<h2 class="memtitle"><span class="permalink"><a href="#a429c5c35b47d5d7cc34a07e48a82866d">◆ </a></span>twolame_options</h2> |
| 271 |
|
| 272 |
<div class="memitem"> |
| 273 |
<div class="memproto"> |
| 274 |
<table class="memname"> |
| 275 |
<tr> |
| 276 |
<td class="memname">typedef struct twolame_options_struct <a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a></td> |
| 277 |
</tr> |
| 278 |
</table> |
| 279 |
</div><div class="memdoc"> |
| 280 |
<p>Opaque data type for the twolame encoder options. </p> |
| 281 |
|
| 282 |
</div> |
| 283 |
</div> |
| 284 |
<h2 class="groupheader">Enumeration Type Documentation</h2> |
| 285 |
<a id="a91879045676d9146c9bfcb8b0a30b57f"></a> |
| 286 |
<h2 class="memtitle"><span class="permalink"><a href="#a91879045676d9146c9bfcb8b0a30b57f">◆ </a></span>TWOLAME_MPEG_mode</h2> |
| 287 |
|
| 288 |
<div class="memitem"> |
| 289 |
<div class="memproto"> |
| 290 |
<table class="memname"> |
| 291 |
<tr> |
| 292 |
<td class="memname">enum <a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57f">TWOLAME_MPEG_mode</a></td> |
| 293 |
</tr> |
| 294 |
</table> |
| 295 |
</div><div class="memdoc"> |
| 296 |
<p>MPEG modes </p> |
| 297 |
<table class="fieldtable"> |
| 298 |
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a91879045676d9146c9bfcb8b0a30b57fab0b25df193c4be6b5c7bda71166df264"></a>TWOLAME_AUTO_MODE </td><td class="fielddoc"><p>Choose Mode Automatically </p> |
| 299 |
</td></tr> |
| 300 |
<tr><td class="fieldname"><a id="a91879045676d9146c9bfcb8b0a30b57fa785df1b22ebb296610b938793906f66d"></a>TWOLAME_STEREO </td><td class="fielddoc"><p>Stereo </p> |
| 301 |
</td></tr> |
| 302 |
<tr><td class="fieldname"><a id="a91879045676d9146c9bfcb8b0a30b57fa944018843ef67ac47d3e680c749b2967"></a>TWOLAME_JOINT_STEREO </td><td class="fielddoc"><p>Joint Stereo </p> |
| 303 |
</td></tr> |
| 304 |
<tr><td class="fieldname"><a id="a91879045676d9146c9bfcb8b0a30b57fae054f4dcb5762d5c58c3db92e5338601"></a>TWOLAME_DUAL_CHANNEL </td><td class="fielddoc"><p>Dual Channel </p> |
| 305 |
</td></tr> |
| 306 |
<tr><td class="fieldname"><a id="a91879045676d9146c9bfcb8b0a30b57fa482d714be97e4cb21c223850ece06456"></a>TWOLAME_MONO </td><td class="fielddoc"><p>Mono </p> |
| 307 |
</td></tr> |
| 308 |
</table> |
| 309 |
|
| 310 |
</div> |
| 311 |
</div> |
| 312 |
<a id="a0f4e287fec57b8ba38e28395996eb6e3"></a> |
| 313 |
<h2 class="memtitle"><span class="permalink"><a href="#a0f4e287fec57b8ba38e28395996eb6e3">◆ </a></span>TWOLAME_MPEG_version</h2> |
| 314 |
|
| 315 |
<div class="memitem"> |
| 316 |
<div class="memproto"> |
| 317 |
<table class="memname"> |
| 318 |
<tr> |
| 319 |
<td class="memname">enum <a class="el" href="twolame_8h.html#a0f4e287fec57b8ba38e28395996eb6e3">TWOLAME_MPEG_version</a></td> |
| 320 |
</tr> |
| 321 |
</table> |
| 322 |
</div><div class="memdoc"> |
| 323 |
<p>MPEG Version.</p> |
| 324 |
<p>MPEG2 is for Lower Sampling Frequencies - LSF < 32000. </p> |
| 325 |
<table class="fieldtable"> |
| 326 |
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a0f4e287fec57b8ba38e28395996eb6e3a89b91170fa0bb8423f45ff7a1b45b1d8"></a>TWOLAME_MPEG2 </td><td class="fielddoc"><p>MPEG-2 - for sample rates less than 32k </p> |
| 327 |
</td></tr> |
| 328 |
<tr><td class="fieldname"><a id="a0f4e287fec57b8ba38e28395996eb6e3ae8dc89cc37c6203400e64768eb6b59d5"></a>TWOLAME_MPEG1 </td><td class="fielddoc"><p>MPEG-1 </p> |
| 329 |
</td></tr> |
| 330 |
</table> |
| 331 |
|
| 332 |
</div> |
| 333 |
</div> |
| 334 |
<a id="af83f4f73e4c57db45269667b4421730e"></a> |
| 335 |
<h2 class="memtitle"><span class="permalink"><a href="#af83f4f73e4c57db45269667b4421730e">◆ </a></span>TWOLAME_Padding</h2> |
| 336 |
|
| 337 |
<div class="memitem"> |
| 338 |
<div class="memproto"> |
| 339 |
<table class="memname"> |
| 340 |
<tr> |
| 341 |
<td class="memname">enum <a class="el" href="twolame_8h.html#af83f4f73e4c57db45269667b4421730e">TWOLAME_Padding</a></td> |
| 342 |
</tr> |
| 343 |
</table> |
| 344 |
</div><div class="memdoc"> |
| 345 |
<p>Padding types. </p> |
| 346 |
<table class="fieldtable"> |
| 347 |
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="af83f4f73e4c57db45269667b4421730eab2dd0f81e433f7f708622c96466dbff3"></a>TWOLAME_PAD_NO </td><td class="fielddoc"><p>No Padding </p> |
| 348 |
</td></tr> |
| 349 |
<tr><td class="fieldname"><a id="af83f4f73e4c57db45269667b4421730eaecf832eac6e75140fc9397b621e590a8"></a>TWOLAME_PAD_ALL </td><td class="fielddoc"><p>Pad all frames </p> |
| 350 |
</td></tr> |
| 351 |
</table> |
| 352 |
|
| 353 |
</div> |
| 354 |
</div> |
| 355 |
<a id="a50521fc75f96f949634f8f6536c1be1b"></a> |
| 356 |
<h2 class="memtitle"><span class="permalink"><a href="#a50521fc75f96f949634f8f6536c1be1b">◆ </a></span>TWOLAME_Emphasis</h2> |
| 357 |
|
| 358 |
<div class="memitem"> |
| 359 |
<div class="memproto"> |
| 360 |
<table class="memname"> |
| 361 |
<tr> |
| 362 |
<td class="memname">enum <a class="el" href="twolame_8h.html#a50521fc75f96f949634f8f6536c1be1b">TWOLAME_Emphasis</a></td> |
| 363 |
</tr> |
| 364 |
</table> |
| 365 |
</div><div class="memdoc"> |
| 366 |
<p>Emphasis types. </p> |
| 367 |
<table class="fieldtable"> |
| 368 |
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a50521fc75f96f949634f8f6536c1be1ba73eced6173758db8e4186d07ee510dd1"></a>TWOLAME_EMPHASIS_N </td><td class="fielddoc"><p>No Emphasis </p> |
| 369 |
</td></tr> |
| 370 |
<tr><td class="fieldname"><a id="a50521fc75f96f949634f8f6536c1be1baeca80cfc79ece58fd01e06f974394c6e"></a>TWOLAME_EMPHASIS_5 </td><td class="fielddoc"><p>50/15 ms </p> |
| 371 |
</td></tr> |
| 372 |
<tr><td class="fieldname"><a id="a50521fc75f96f949634f8f6536c1be1ba038be927e1993710372565262a73e62d"></a>TWOLAME_EMPHASIS_C </td><td class="fielddoc"><p>CCIT J.17 </p> |
| 373 |
</td></tr> |
| 374 |
</table> |
| 375 |
|
| 376 |
</div> |
| 377 |
</div> |
| 378 |
<h2 class="groupheader">Function Documentation</h2> |
| 379 |
<a id="ae45d2912ae385c433da7c6573b30605b"></a> |
| 380 |
<h2 class="memtitle"><span class="permalink"><a href="#ae45d2912ae385c433da7c6573b30605b">◆ </a></span>get_twolame_version()</h2> |
| 381 |
|
| 382 |
<div class="memitem"> |
| 383 |
<div class="memproto"> |
| 384 |
<table class="memname"> |
| 385 |
<tr> |
| 386 |
<td class="memname">TL_API const char* get_twolame_version </td> |
| 387 |
<td>(</td> |
| 388 |
<td class="paramtype">void </td> |
| 389 |
<td class="paramname"></td><td>)</td> |
| 390 |
<td></td> |
| 391 |
</tr> |
| 392 |
</table> |
| 393 |
</div><div class="memdoc"> |
| 394 |
<p>Get the version number of the TwoLAME library. eg "0.3.1".</p> |
| 395 |
<dl class="section return"><dt>Returns</dt><dd>The version number as a C string </dd></dl> |
| 396 |
|
| 397 |
</div> |
| 398 |
</div> |
| 399 |
<a id="a75cf66e050c8faa3715784a490412799"></a> |
| 400 |
<h2 class="memtitle"><span class="permalink"><a href="#a75cf66e050c8faa3715784a490412799">◆ </a></span>get_twolame_url()</h2> |
| 401 |
|
| 402 |
<div class="memitem"> |
| 403 |
<div class="memproto"> |
| 404 |
<table class="memname"> |
| 405 |
<tr> |
| 406 |
<td class="memname">TL_API const char* get_twolame_url </td> |
| 407 |
<td>(</td> |
| 408 |
<td class="paramtype">void </td> |
| 409 |
<td class="paramname"></td><td>)</td> |
| 410 |
<td></td> |
| 411 |
</tr> |
| 412 |
</table> |
| 413 |
</div><div class="memdoc"> |
| 414 |
<p>Get the URL of the TwoLAME homepage. eg "http://www.twolame.org/".</p> |
| 415 |
<dl class="section return"><dt>Returns</dt><dd>The url as a C string </dd></dl> |
| 416 |
|
| 417 |
</div> |
| 418 |
</div> |
| 419 |
<a id="a4a7a14c45336eefa9070c9a7d1bfae0d"></a> |
| 420 |
<h2 class="memtitle"><span class="permalink"><a href="#a4a7a14c45336eefa9070c9a7d1bfae0d">◆ </a></span>twolame_print_config()</h2> |
| 421 |
|
| 422 |
<div class="memitem"> |
| 423 |
<div class="memproto"> |
| 424 |
<table class="memname"> |
| 425 |
<tr> |
| 426 |
<td class="memname">TL_API void twolame_print_config </td> |
| 427 |
<td>(</td> |
| 428 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 429 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 430 |
<td></td> |
| 431 |
</tr> |
| 432 |
</table> |
| 433 |
</div><div class="memdoc"> |
| 434 |
<p>Print the library version and encoder parameter settings to STDERR.</p> |
| 435 |
<p>Will display differnent ammounts of information depending on the verbosity setting. If verbosity is set to 0 then no message will be displayed.</p> |
| 436 |
<dl class="params"><dt>Parameters</dt><dd> |
| 437 |
<table class="params"> |
| 438 |
<tr><td class="paramname">glopts</td><td>Options pointer created by <a class="el" href="twolame_8h.html#aed720579294c2a8b740713e141042bcb">twolame_init()</a> </td></tr> |
| 439 |
</table> |
| 440 |
</dd> |
| 441 |
</dl> |
| 442 |
|
| 443 |
</div> |
| 444 |
</div> |
| 445 |
<a id="aed720579294c2a8b740713e141042bcb"></a> |
| 446 |
<h2 class="memtitle"><span class="permalink"><a href="#aed720579294c2a8b740713e141042bcb">◆ </a></span>twolame_init()</h2> |
| 447 |
|
| 448 |
<div class="memitem"> |
| 449 |
<div class="memproto"> |
| 450 |
<table class="memname"> |
| 451 |
<tr> |
| 452 |
<td class="memname">TL_API <a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a>* twolame_init </td> |
| 453 |
<td>(</td> |
| 454 |
<td class="paramtype">void </td> |
| 455 |
<td class="paramname"></td><td>)</td> |
| 456 |
<td></td> |
| 457 |
</tr> |
| 458 |
</table> |
| 459 |
</div><div class="memdoc"> |
| 460 |
<p>Initialise the twolame encoder.</p> |
| 461 |
<p>Sets defaults for all parameters. Will return NULL if malloc() failed, otherwise returns a pointer which you then need to pass to all future API calls.</p> |
| 462 |
<dl class="section return"><dt>Returns</dt><dd>a pointer to your new options data structure </dd></dl> |
| 463 |
|
| 464 |
</div> |
| 465 |
</div> |
| 466 |
<a id="a16ee636b478e74287e3cda89c3a0e13c"></a> |
| 467 |
<h2 class="memtitle"><span class="permalink"><a href="#a16ee636b478e74287e3cda89c3a0e13c">◆ </a></span>twolame_init_params()</h2> |
| 468 |
|
| 469 |
<div class="memitem"> |
| 470 |
<div class="memproto"> |
| 471 |
<table class="memname"> |
| 472 |
<tr> |
| 473 |
<td class="memname">TL_API int twolame_init_params </td> |
| 474 |
<td>(</td> |
| 475 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 476 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 477 |
<td></td> |
| 478 |
</tr> |
| 479 |
</table> |
| 480 |
</div><div class="memdoc"> |
| 481 |
<p>Prepare to start encoding.</p> |
| 482 |
<p>You must call <a class="el" href="twolame_8h.html#a16ee636b478e74287e3cda89c3a0e13c">twolame_init_params()</a> before you start encoding. It will check call your parameters to make sure they are valid, as well as allocating buffers and initising internally used variables.</p> |
| 483 |
<dl class="params"><dt>Parameters</dt><dd> |
| 484 |
<table class="params"> |
| 485 |
<tr><td class="paramname">glopts</td><td>Options pointer created by <a class="el" href="twolame_8h.html#aed720579294c2a8b740713e141042bcb">twolame_init()</a> </td></tr> |
| 486 |
</table> |
| 487 |
</dd> |
| 488 |
</dl> |
| 489 |
<dl class="section return"><dt>Returns</dt><dd>0 if all patameters are valid, non-zero if something is invalid </dd></dl> |
| 490 |
|
| 491 |
</div> |
| 492 |
</div> |
| 493 |
<a id="a22e752d125aabda5d7f4bdbca5a58fdc"></a> |
| 494 |
<h2 class="memtitle"><span class="permalink"><a href="#a22e752d125aabda5d7f4bdbca5a58fdc">◆ </a></span>twolame_encode_buffer()</h2> |
| 495 |
|
| 496 |
<div class="memitem"> |
| 497 |
<div class="memproto"> |
| 498 |
<table class="memname"> |
| 499 |
<tr> |
| 500 |
<td class="memname">TL_API int twolame_encode_buffer </td> |
| 501 |
<td>(</td> |
| 502 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 503 |
<td class="paramname"><em>glopts</em>, </td> |
| 504 |
</tr> |
| 505 |
<tr> |
| 506 |
<td class="paramkey"></td> |
| 507 |
<td></td> |
| 508 |
<td class="paramtype">const short int </td> |
| 509 |
<td class="paramname"><em>leftpcm</em>[], </td> |
| 510 |
</tr> |
| 511 |
<tr> |
| 512 |
<td class="paramkey"></td> |
| 513 |
<td></td> |
| 514 |
<td class="paramtype">const short int </td> |
| 515 |
<td class="paramname"><em>rightpcm</em>[], </td> |
| 516 |
</tr> |
| 517 |
<tr> |
| 518 |
<td class="paramkey"></td> |
| 519 |
<td></td> |
| 520 |
<td class="paramtype">int </td> |
| 521 |
<td class="paramname"><em>num_samples</em>, </td> |
| 522 |
</tr> |
| 523 |
<tr> |
| 524 |
<td class="paramkey"></td> |
| 525 |
<td></td> |
| 526 |
<td class="paramtype">unsigned char * </td> |
| 527 |
<td class="paramname"><em>mp2buffer</em>, </td> |
| 528 |
</tr> |
| 529 |
<tr> |
| 530 |
<td class="paramkey"></td> |
| 531 |
<td></td> |
| 532 |
<td class="paramtype">int </td> |
| 533 |
<td class="paramname"><em>mp2buffer_size</em> </td> |
| 534 |
</tr> |
| 535 |
<tr> |
| 536 |
<td></td> |
| 537 |
<td>)</td> |
| 538 |
<td></td><td></td> |
| 539 |
</tr> |
| 540 |
</table> |
| 541 |
</div><div class="memdoc"> |
| 542 |
<p>Encode some 16-bit PCM audio to MP2.</p> |
| 543 |
<p>Takes 16-bit PCM audio samples from seperate left and right buffers and places encoded audio into mp2buffer.</p> |
| 544 |
<dl class="params"><dt>Parameters</dt><dd> |
| 545 |
<table class="params"> |
| 546 |
<tr><td class="paramname">glopts</td><td>twolame options pointer </td></tr> |
| 547 |
<tr><td class="paramname">leftpcm</td><td>Left channel audio samples </td></tr> |
| 548 |
<tr><td class="paramname">rightpcm</td><td>Right channel audio samples </td></tr> |
| 549 |
<tr><td class="paramname">num_samples</td><td>Number of samples per channel </td></tr> |
| 550 |
<tr><td class="paramname">mp2buffer</td><td>Buffer to place encoded audio into </td></tr> |
| 551 |
<tr><td class="paramname">mp2buffer_size</td><td>Size of the output buffer </td></tr> |
| 552 |
</table> |
| 553 |
</dd> |
| 554 |
</dl> |
| 555 |
<dl class="section return"><dt>Returns</dt><dd>The number of bytes put in output buffer or a negative value on error </dd></dl> |
| 556 |
|
| 557 |
</div> |
| 558 |
</div> |
| 559 |
<a id="aceee290728b04b992b10406b5aa9859a"></a> |
| 560 |
<h2 class="memtitle"><span class="permalink"><a href="#aceee290728b04b992b10406b5aa9859a">◆ </a></span>twolame_encode_buffer_interleaved()</h2> |
| 561 |
|
| 562 |
<div class="memitem"> |
| 563 |
<div class="memproto"> |
| 564 |
<table class="memname"> |
| 565 |
<tr> |
| 566 |
<td class="memname">TL_API int twolame_encode_buffer_interleaved </td> |
| 567 |
<td>(</td> |
| 568 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 569 |
<td class="paramname"><em>glopts</em>, </td> |
| 570 |
</tr> |
| 571 |
<tr> |
| 572 |
<td class="paramkey"></td> |
| 573 |
<td></td> |
| 574 |
<td class="paramtype">const short int </td> |
| 575 |
<td class="paramname"><em>pcm</em>[], </td> |
| 576 |
</tr> |
| 577 |
<tr> |
| 578 |
<td class="paramkey"></td> |
| 579 |
<td></td> |
| 580 |
<td class="paramtype">int </td> |
| 581 |
<td class="paramname"><em>num_samples</em>, </td> |
| 582 |
</tr> |
| 583 |
<tr> |
| 584 |
<td class="paramkey"></td> |
| 585 |
<td></td> |
| 586 |
<td class="paramtype">unsigned char * </td> |
| 587 |
<td class="paramname"><em>mp2buffer</em>, </td> |
| 588 |
</tr> |
| 589 |
<tr> |
| 590 |
<td class="paramkey"></td> |
| 591 |
<td></td> |
| 592 |
<td class="paramtype">int </td> |
| 593 |
<td class="paramname"><em>mp2buffer_size</em> </td> |
| 594 |
</tr> |
| 595 |
<tr> |
| 596 |
<td></td> |
| 597 |
<td>)</td> |
| 598 |
<td></td><td></td> |
| 599 |
</tr> |
| 600 |
</table> |
| 601 |
</div><div class="memdoc"> |
| 602 |
<p>Encode some 16-bit PCM audio to MP2.</p> |
| 603 |
<p>Takes interleaved 16-bit PCM audio samples from a single buffer and places encoded audio into mp2buffer.</p> |
| 604 |
<dl class="params"><dt>Parameters</dt><dd> |
| 605 |
<table class="params"> |
| 606 |
<tr><td class="paramname">glopts</td><td>twolame options pointer </td></tr> |
| 607 |
<tr><td class="paramname">pcm</td><td>Audio samples for left AND right channels </td></tr> |
| 608 |
<tr><td class="paramname">num_samples</td><td>Number of samples per channel </td></tr> |
| 609 |
<tr><td class="paramname">mp2buffer</td><td>Buffer to place encoded audio into </td></tr> |
| 610 |
<tr><td class="paramname">mp2buffer_size</td><td>Size of the output buffer </td></tr> |
| 611 |
</table> |
| 612 |
</dd> |
| 613 |
</dl> |
| 614 |
<dl class="section return"><dt>Returns</dt><dd>The number of bytes put in output buffer or a negative value on error </dd></dl> |
| 615 |
|
| 616 |
</div> |
| 617 |
</div> |
| 618 |
<a id="a8e5b343a27dddf9e5e285c878e8d0f61"></a> |
| 619 |
<h2 class="memtitle"><span class="permalink"><a href="#a8e5b343a27dddf9e5e285c878e8d0f61">◆ </a></span>twolame_encode_buffer_float32()</h2> |
| 620 |
|
| 621 |
<div class="memitem"> |
| 622 |
<div class="memproto"> |
| 623 |
<table class="memname"> |
| 624 |
<tr> |
| 625 |
<td class="memname">TL_API int twolame_encode_buffer_float32 </td> |
| 626 |
<td>(</td> |
| 627 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 628 |
<td class="paramname"><em>glopts</em>, </td> |
| 629 |
</tr> |
| 630 |
<tr> |
| 631 |
<td class="paramkey"></td> |
| 632 |
<td></td> |
| 633 |
<td class="paramtype">const float </td> |
| 634 |
<td class="paramname"><em>leftpcm</em>[], </td> |
| 635 |
</tr> |
| 636 |
<tr> |
| 637 |
<td class="paramkey"></td> |
| 638 |
<td></td> |
| 639 |
<td class="paramtype">const float </td> |
| 640 |
<td class="paramname"><em>rightpcm</em>[], </td> |
| 641 |
</tr> |
| 642 |
<tr> |
| 643 |
<td class="paramkey"></td> |
| 644 |
<td></td> |
| 645 |
<td class="paramtype">int </td> |
| 646 |
<td class="paramname"><em>num_samples</em>, </td> |
| 647 |
</tr> |
| 648 |
<tr> |
| 649 |
<td class="paramkey"></td> |
| 650 |
<td></td> |
| 651 |
<td class="paramtype">unsigned char * </td> |
| 652 |
<td class="paramname"><em>mp2buffer</em>, </td> |
| 653 |
</tr> |
| 654 |
<tr> |
| 655 |
<td class="paramkey"></td> |
| 656 |
<td></td> |
| 657 |
<td class="paramtype">int </td> |
| 658 |
<td class="paramname"><em>mp2buffer_size</em> </td> |
| 659 |
</tr> |
| 660 |
<tr> |
| 661 |
<td></td> |
| 662 |
<td>)</td> |
| 663 |
<td></td><td></td> |
| 664 |
</tr> |
| 665 |
</table> |
| 666 |
</div><div class="memdoc"> |
| 667 |
<p>Encode some 32-bit PCM audio to MP2.</p> |
| 668 |
<p>Takes 32-bit floating point PCM audio samples from seperate left and right buffers and places encoded audio into mp2buffer.</p> |
| 669 |
<p>Note: the 32-bit samples are currently scaled down to 16-bit samples internally.</p> |
| 670 |
<dl class="params"><dt>Parameters</dt><dd> |
| 671 |
<table class="params"> |
| 672 |
<tr><td class="paramname">glopts</td><td>twolame options pointer </td></tr> |
| 673 |
<tr><td class="paramname">leftpcm</td><td>Left channel audio samples </td></tr> |
| 674 |
<tr><td class="paramname">rightpcm</td><td>Right channel audio samples </td></tr> |
| 675 |
<tr><td class="paramname">num_samples</td><td>Number of samples per channel </td></tr> |
| 676 |
<tr><td class="paramname">mp2buffer</td><td>Buffer to place encoded audio into </td></tr> |
| 677 |
<tr><td class="paramname">mp2buffer_size</td><td>Size of the output buffer </td></tr> |
| 678 |
</table> |
| 679 |
</dd> |
| 680 |
</dl> |
| 681 |
<dl class="section return"><dt>Returns</dt><dd>The number of bytes put in output buffer or a negative value on error </dd></dl> |
| 682 |
|
| 683 |
</div> |
| 684 |
</div> |
| 685 |
<a id="aca716bf42f767e889c0505206c3f1160"></a> |
| 686 |
<h2 class="memtitle"><span class="permalink"><a href="#aca716bf42f767e889c0505206c3f1160">◆ </a></span>twolame_encode_buffer_float32_interleaved()</h2> |
| 687 |
|
| 688 |
<div class="memitem"> |
| 689 |
<div class="memproto"> |
| 690 |
<table class="memname"> |
| 691 |
<tr> |
| 692 |
<td class="memname">int twolame_encode_buffer_float32_interleaved </td> |
| 693 |
<td>(</td> |
| 694 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 695 |
<td class="paramname"><em>glopts</em>, </td> |
| 696 |
</tr> |
| 697 |
<tr> |
| 698 |
<td class="paramkey"></td> |
| 699 |
<td></td> |
| 700 |
<td class="paramtype">const float </td> |
| 701 |
<td class="paramname"><em>pcm</em>[], </td> |
| 702 |
</tr> |
| 703 |
<tr> |
| 704 |
<td class="paramkey"></td> |
| 705 |
<td></td> |
| 706 |
<td class="paramtype">int </td> |
| 707 |
<td class="paramname"><em>num_samples</em>, </td> |
| 708 |
</tr> |
| 709 |
<tr> |
| 710 |
<td class="paramkey"></td> |
| 711 |
<td></td> |
| 712 |
<td class="paramtype">unsigned char * </td> |
| 713 |
<td class="paramname"><em>mp2buffer</em>, </td> |
| 714 |
</tr> |
| 715 |
<tr> |
| 716 |
<td class="paramkey"></td> |
| 717 |
<td></td> |
| 718 |
<td class="paramtype">int </td> |
| 719 |
<td class="paramname"><em>mp2buffer_size</em> </td> |
| 720 |
</tr> |
| 721 |
<tr> |
| 722 |
<td></td> |
| 723 |
<td>)</td> |
| 724 |
<td></td><td></td> |
| 725 |
</tr> |
| 726 |
</table> |
| 727 |
</div><div class="memdoc"> |
| 728 |
<p>Encode some 32-bit PCM audio to MP2.</p> |
| 729 |
<p>Takes 32-bit floating point PCM audio samples from a single buffer and places encoded audio into mp2buffer.</p> |
| 730 |
<dl class="params"><dt>Parameters</dt><dd> |
| 731 |
<table class="params"> |
| 732 |
<tr><td class="paramname">glopts</td><td>twolame options pointer </td></tr> |
| 733 |
<tr><td class="paramname">pcm</td><td>Audio samples for left AND right channels </td></tr> |
| 734 |
<tr><td class="paramname">num_samples</td><td>Number of samples per channel </td></tr> |
| 735 |
<tr><td class="paramname">mp2buffer</td><td>Buffer to place encoded audio into </td></tr> |
| 736 |
<tr><td class="paramname">mp2buffer_size</td><td>Size of the output buffer </td></tr> |
| 737 |
</table> |
| 738 |
</dd> |
| 739 |
</dl> |
| 740 |
<dl class="section return"><dt>Returns</dt><dd>The number of bytes put in output buffer or a negative value on error </dd></dl> |
| 741 |
|
| 742 |
</div> |
| 743 |
</div> |
| 744 |
<a id="ad6b44a3ed9ded5c99ce271222390f1f0"></a> |
| 745 |
<h2 class="memtitle"><span class="permalink"><a href="#ad6b44a3ed9ded5c99ce271222390f1f0">◆ </a></span>twolame_encode_flush()</h2> |
| 746 |
|
| 747 |
<div class="memitem"> |
| 748 |
<div class="memproto"> |
| 749 |
<table class="memname"> |
| 750 |
<tr> |
| 751 |
<td class="memname">TL_API int twolame_encode_flush </td> |
| 752 |
<td>(</td> |
| 753 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 754 |
<td class="paramname"><em>glopts</em>, </td> |
| 755 |
</tr> |
| 756 |
<tr> |
| 757 |
<td class="paramkey"></td> |
| 758 |
<td></td> |
| 759 |
<td class="paramtype">unsigned char * </td> |
| 760 |
<td class="paramname"><em>mp2buffer</em>, </td> |
| 761 |
</tr> |
| 762 |
<tr> |
| 763 |
<td class="paramkey"></td> |
| 764 |
<td></td> |
| 765 |
<td class="paramtype">int </td> |
| 766 |
<td class="paramname"><em>mp2buffer_size</em> </td> |
| 767 |
</tr> |
| 768 |
<tr> |
| 769 |
<td></td> |
| 770 |
<td>)</td> |
| 771 |
<td></td><td></td> |
| 772 |
</tr> |
| 773 |
</table> |
| 774 |
</div><div class="memdoc"> |
| 775 |
<p>Encode any remains buffered PCM audio to MP2.</p> |
| 776 |
<p>Encodes any remaining audio samples in the libtwolame internal sample buffer. This function will return at most a single frame of MPEG Audio, and at least 0 frames.</p> |
| 777 |
<dl class="params"><dt>Parameters</dt><dd> |
| 778 |
<table class="params"> |
| 779 |
<tr><td class="paramname">glopts</td><td>twolame options pointer </td></tr> |
| 780 |
<tr><td class="paramname">mp2buffer</td><td>Buffer to place encoded audio into </td></tr> |
| 781 |
<tr><td class="paramname">mp2buffer_size</td><td>Size of the output buffer </td></tr> |
| 782 |
</table> |
| 783 |
</dd> |
| 784 |
</dl> |
| 785 |
<dl class="section return"><dt>Returns</dt><dd>The number of bytes put in output buffer or a negative value on error </dd></dl> |
| 786 |
|
| 787 |
</div> |
| 788 |
</div> |
| 789 |
<a id="a1b867765cb97bdca2e77dd096eea1d33"></a> |
| 790 |
<h2 class="memtitle"><span class="permalink"><a href="#a1b867765cb97bdca2e77dd096eea1d33">◆ </a></span>twolame_close()</h2> |
| 791 |
|
| 792 |
<div class="memitem"> |
| 793 |
<div class="memproto"> |
| 794 |
<table class="memname"> |
| 795 |
<tr> |
| 796 |
<td class="memname">TL_API void twolame_close </td> |
| 797 |
<td>(</td> |
| 798 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> ** </td> |
| 799 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 800 |
<td></td> |
| 801 |
</tr> |
| 802 |
</table> |
| 803 |
</div><div class="memdoc"> |
| 804 |
<p>Shut down the twolame encoder.</p> |
| 805 |
<p>Shuts down the twolame encoder and frees all memory that it previously allocated. You should call this once you have finished all your encoding. This function will set your glopts pointer to NULL for you.</p> |
| 806 |
<dl class="params"><dt>Parameters</dt><dd> |
| 807 |
<table class="params"> |
| 808 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 809 |
</table> |
| 810 |
</dd> |
| 811 |
</dl> |
| 812 |
|
| 813 |
</div> |
| 814 |
</div> |
| 815 |
<a id="aa3dca72581428bde39b67164411e521a"></a> |
| 816 |
<h2 class="memtitle"><span class="permalink"><a href="#aa3dca72581428bde39b67164411e521a">◆ </a></span>twolame_set_verbosity()</h2> |
| 817 |
|
| 818 |
<div class="memitem"> |
| 819 |
<div class="memproto"> |
| 820 |
<table class="memname"> |
| 821 |
<tr> |
| 822 |
<td class="memname">TL_API int twolame_set_verbosity </td> |
| 823 |
<td>(</td> |
| 824 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 825 |
<td class="paramname"><em>glopts</em>, </td> |
| 826 |
</tr> |
| 827 |
<tr> |
| 828 |
<td class="paramkey"></td> |
| 829 |
<td></td> |
| 830 |
<td class="paramtype">int </td> |
| 831 |
<td class="paramname"><em>verbosity</em> </td> |
| 832 |
</tr> |
| 833 |
<tr> |
| 834 |
<td></td> |
| 835 |
<td>)</td> |
| 836 |
<td></td><td></td> |
| 837 |
</tr> |
| 838 |
</table> |
| 839 |
</div><div class="memdoc"> |
| 840 |
<p>Set the verbosity of the encoder.</p> |
| 841 |
<p>Sets how verbose the encoder is with the debug and informational messages it displays. The higher the number, the more messages it will display. Set to 0 for no status messages to STDERR ( error messages will still be displayed ).</p> |
| 842 |
<p>Default: 1</p> |
| 843 |
<dl class="params"><dt>Parameters</dt><dd> |
| 844 |
<table class="params"> |
| 845 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 846 |
<tr><td class="paramname">verbosity</td><td>integer between 0 and 10 </td></tr> |
| 847 |
</table> |
| 848 |
</dd> |
| 849 |
</dl> |
| 850 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 851 |
|
| 852 |
</div> |
| 853 |
</div> |
| 854 |
<a id="a1ee008e88959bdaa4a208dce75a17004"></a> |
| 855 |
<h2 class="memtitle"><span class="permalink"><a href="#a1ee008e88959bdaa4a208dce75a17004">◆ </a></span>twolame_get_verbosity()</h2> |
| 856 |
|
| 857 |
<div class="memitem"> |
| 858 |
<div class="memproto"> |
| 859 |
<table class="memname"> |
| 860 |
<tr> |
| 861 |
<td class="memname">TL_API int twolame_get_verbosity </td> |
| 862 |
<td>(</td> |
| 863 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 864 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 865 |
<td></td> |
| 866 |
</tr> |
| 867 |
</table> |
| 868 |
</div><div class="memdoc"> |
| 869 |
<p>Get the verbosity of the encoder.</p> |
| 870 |
<dl class="params"><dt>Parameters</dt><dd> |
| 871 |
<table class="params"> |
| 872 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 873 |
</table> |
| 874 |
</dd> |
| 875 |
</dl> |
| 876 |
<dl class="section return"><dt>Returns</dt><dd>integer indicating the verbosity of the encoder (0-10) </dd></dl> |
| 877 |
|
| 878 |
</div> |
| 879 |
</div> |
| 880 |
<a id="a22aa4fc2035f5dc5a955eddaeb69397b"></a> |
| 881 |
<h2 class="memtitle"><span class="permalink"><a href="#a22aa4fc2035f5dc5a955eddaeb69397b">◆ </a></span>twolame_set_mode()</h2> |
| 882 |
|
| 883 |
<div class="memitem"> |
| 884 |
<div class="memproto"> |
| 885 |
<table class="memname"> |
| 886 |
<tr> |
| 887 |
<td class="memname">TL_API int twolame_set_mode </td> |
| 888 |
<td>(</td> |
| 889 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 890 |
<td class="paramname"><em>glopts</em>, </td> |
| 891 |
</tr> |
| 892 |
<tr> |
| 893 |
<td class="paramkey"></td> |
| 894 |
<td></td> |
| 895 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57f">TWOLAME_MPEG_mode</a> </td> |
| 896 |
<td class="paramname"><em>mode</em> </td> |
| 897 |
</tr> |
| 898 |
<tr> |
| 899 |
<td></td> |
| 900 |
<td>)</td> |
| 901 |
<td></td><td></td> |
| 902 |
</tr> |
| 903 |
</table> |
| 904 |
</div><div class="memdoc"> |
| 905 |
<p>Set the MPEG Audio Mode (Mono, Stereo, etc) for the output stream.</p> |
| 906 |
<p>Default: TWOLAME_AUTO_MODE</p> |
| 907 |
<dl class="params"><dt>Parameters</dt><dd> |
| 908 |
<table class="params"> |
| 909 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 910 |
<tr><td class="paramname">mode</td><td>the mode to set to </td></tr> |
| 911 |
</table> |
| 912 |
</dd> |
| 913 |
</dl> |
| 914 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 915 |
|
| 916 |
</div> |
| 917 |
</div> |
| 918 |
<a id="a6bb05292abe96d545613afbfafc06905"></a> |
| 919 |
<h2 class="memtitle"><span class="permalink"><a href="#a6bb05292abe96d545613afbfafc06905">◆ </a></span>twolame_get_mode()</h2> |
| 920 |
|
| 921 |
<div class="memitem"> |
| 922 |
<div class="memproto"> |
| 923 |
<table class="memname"> |
| 924 |
<tr> |
| 925 |
<td class="memname">TL_API <a class="el" href="twolame_8h.html#a91879045676d9146c9bfcb8b0a30b57f">TWOLAME_MPEG_mode</a> twolame_get_mode </td> |
| 926 |
<td>(</td> |
| 927 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 928 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 929 |
<td></td> |
| 930 |
</tr> |
| 931 |
</table> |
| 932 |
</div><div class="memdoc"> |
| 933 |
<p>Get the MPEG Audio mode of the output stream.</p> |
| 934 |
<dl class="params"><dt>Parameters</dt><dd> |
| 935 |
<table class="params"> |
| 936 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 937 |
</table> |
| 938 |
</dd> |
| 939 |
</dl> |
| 940 |
<dl class="section return"><dt>Returns</dt><dd>the MPEG audio mode </dd></dl> |
| 941 |
|
| 942 |
</div> |
| 943 |
</div> |
| 944 |
<a id="a9d9b9d4ecf0dcf8c965a5bac5c29945c"></a> |
| 945 |
<h2 class="memtitle"><span class="permalink"><a href="#a9d9b9d4ecf0dcf8c965a5bac5c29945c">◆ </a></span>twolame_get_mode_name()</h2> |
| 946 |
|
| 947 |
<div class="memitem"> |
| 948 |
<div class="memproto"> |
| 949 |
<table class="memname"> |
| 950 |
<tr> |
| 951 |
<td class="memname">TL_API const char* twolame_get_mode_name </td> |
| 952 |
<td>(</td> |
| 953 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 954 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 955 |
<td></td> |
| 956 |
</tr> |
| 957 |
</table> |
| 958 |
</div><div class="memdoc"> |
| 959 |
<p>Get a string name for the current MPEG Audio mode.</p> |
| 960 |
<dl class="params"><dt>Parameters</dt><dd> |
| 961 |
<table class="params"> |
| 962 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 963 |
</table> |
| 964 |
</dd> |
| 965 |
</dl> |
| 966 |
<dl class="section return"><dt>Returns</dt><dd>the name of the MPEG audio mode as a string </dd></dl> |
| 967 |
|
| 968 |
</div> |
| 969 |
</div> |
| 970 |
<a id="adaf4b993427cb8e67cbe97b3ed1579a0"></a> |
| 971 |
<h2 class="memtitle"><span class="permalink"><a href="#adaf4b993427cb8e67cbe97b3ed1579a0">◆ </a></span>twolame_set_version()</h2> |
| 972 |
|
| 973 |
<div class="memitem"> |
| 974 |
<div class="memproto"> |
| 975 |
<table class="memname"> |
| 976 |
<tr> |
| 977 |
<td class="memname">TL_API int twolame_set_version </td> |
| 978 |
<td>(</td> |
| 979 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 980 |
<td class="paramname"><em>glopts</em>, </td> |
| 981 |
</tr> |
| 982 |
<tr> |
| 983 |
<td class="paramkey"></td> |
| 984 |
<td></td> |
| 985 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a0f4e287fec57b8ba38e28395996eb6e3">TWOLAME_MPEG_version</a> </td> |
| 986 |
<td class="paramname"><em>version</em> </td> |
| 987 |
</tr> |
| 988 |
<tr> |
| 989 |
<td></td> |
| 990 |
<td>)</td> |
| 991 |
<td></td><td></td> |
| 992 |
</tr> |
| 993 |
</table> |
| 994 |
</div><div class="memdoc"> |
| 995 |
<p>Set the MPEG version of the MPEG audio stream.</p> |
| 996 |
<p>Default: TWOLAME_MPEG1</p> |
| 997 |
<dl class="params"><dt>Parameters</dt><dd> |
| 998 |
<table class="params"> |
| 999 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1000 |
<tr><td class="paramname">version</td><td>the version to set to </td></tr> |
| 1001 |
</table> |
| 1002 |
</dd> |
| 1003 |
</dl> |
| 1004 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1005 |
|
| 1006 |
</div> |
| 1007 |
</div> |
| 1008 |
<a id="a8574928cd2f2ef579354710d7b8cc940"></a> |
| 1009 |
<h2 class="memtitle"><span class="permalink"><a href="#a8574928cd2f2ef579354710d7b8cc940">◆ </a></span>twolame_get_version()</h2> |
| 1010 |
|
| 1011 |
<div class="memitem"> |
| 1012 |
<div class="memproto"> |
| 1013 |
<table class="memname"> |
| 1014 |
<tr> |
| 1015 |
<td class="memname">TL_API <a class="el" href="twolame_8h.html#a0f4e287fec57b8ba38e28395996eb6e3">TWOLAME_MPEG_version</a> twolame_get_version </td> |
| 1016 |
<td>(</td> |
| 1017 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1018 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1019 |
<td></td> |
| 1020 |
</tr> |
| 1021 |
</table> |
| 1022 |
</div><div class="memdoc"> |
| 1023 |
<p>Get the MPEG version of the output stream.</p> |
| 1024 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1025 |
<table class="params"> |
| 1026 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1027 |
</table> |
| 1028 |
</dd> |
| 1029 |
</dl> |
| 1030 |
<dl class="section return"><dt>Returns</dt><dd>the MPEG version </dd></dl> |
| 1031 |
|
| 1032 |
</div> |
| 1033 |
</div> |
| 1034 |
<a id="a655e64fbc843745dfd5509e080549d5a"></a> |
| 1035 |
<h2 class="memtitle"><span class="permalink"><a href="#a655e64fbc843745dfd5509e080549d5a">◆ </a></span>twolame_get_version_name()</h2> |
| 1036 |
|
| 1037 |
<div class="memitem"> |
| 1038 |
<div class="memproto"> |
| 1039 |
<table class="memname"> |
| 1040 |
<tr> |
| 1041 |
<td class="memname">TL_API const char* twolame_get_version_name </td> |
| 1042 |
<td>(</td> |
| 1043 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1044 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1045 |
<td></td> |
| 1046 |
</tr> |
| 1047 |
</table> |
| 1048 |
</div><div class="memdoc"> |
| 1049 |
<p>Get a string name for the current MPEG version.</p> |
| 1050 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1051 |
<table class="params"> |
| 1052 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1053 |
</table> |
| 1054 |
</dd> |
| 1055 |
</dl> |
| 1056 |
<dl class="section return"><dt>Returns</dt><dd>the name of the MPEG version as a string </dd></dl> |
| 1057 |
|
| 1058 |
</div> |
| 1059 |
</div> |
| 1060 |
<a id="a644d15efd6a04492975c63840ce2407d"></a> |
| 1061 |
<h2 class="memtitle"><span class="permalink"><a href="#a644d15efd6a04492975c63840ce2407d">◆ </a></span>twolame_set_freeformat()</h2> |
| 1062 |
|
| 1063 |
<div class="memitem"> |
| 1064 |
<div class="memproto"> |
| 1065 |
<table class="memname"> |
| 1066 |
<tr> |
| 1067 |
<td class="memname">TL_API int twolame_set_freeformat </td> |
| 1068 |
<td>(</td> |
| 1069 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1070 |
<td class="paramname"><em>glopts</em>, </td> |
| 1071 |
</tr> |
| 1072 |
<tr> |
| 1073 |
<td class="paramkey"></td> |
| 1074 |
<td></td> |
| 1075 |
<td class="paramtype">int </td> |
| 1076 |
<td class="paramname"><em>freef</em> </td> |
| 1077 |
</tr> |
| 1078 |
<tr> |
| 1079 |
<td></td> |
| 1080 |
<td>)</td> |
| 1081 |
<td></td><td></td> |
| 1082 |
</tr> |
| 1083 |
</table> |
| 1084 |
</div><div class="memdoc"> |
| 1085 |
<p>Set the freeformat strem mode.</p> |
| 1086 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1087 |
<table class="params"> |
| 1088 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1089 |
<tr><td class="paramname">freef</td><td>freeformat mode ( TRUE / FALSE ) </td></tr> |
| 1090 |
</table> |
| 1091 |
</dd> |
| 1092 |
</dl> |
| 1093 |
<dl class="section return"><dt>Returns</dt><dd>0 </dd></dl> |
| 1094 |
|
| 1095 |
</div> |
| 1096 |
</div> |
| 1097 |
<a id="a3fc61f1c2b4bab1928bdff09e452052c"></a> |
| 1098 |
<h2 class="memtitle"><span class="permalink"><a href="#a3fc61f1c2b4bab1928bdff09e452052c">◆ </a></span>twolame_get_framelength()</h2> |
| 1099 |
|
| 1100 |
<div class="memitem"> |
| 1101 |
<div class="memproto"> |
| 1102 |
<table class="memname"> |
| 1103 |
<tr> |
| 1104 |
<td class="memname">TL_API int twolame_get_framelength </td> |
| 1105 |
<td>(</td> |
| 1106 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1107 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1108 |
<td></td> |
| 1109 |
</tr> |
| 1110 |
</table> |
| 1111 |
</div><div class="memdoc"> |
| 1112 |
<p>Get the number of bytes per MPEG audio frame, for current settings.</p> |
| 1113 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1114 |
<table class="params"> |
| 1115 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1116 |
</table> |
| 1117 |
</dd> |
| 1118 |
</dl> |
| 1119 |
<dl class="section return"><dt>Returns</dt><dd>the number of bytes per frame </dd></dl> |
| 1120 |
|
| 1121 |
</div> |
| 1122 |
</div> |
| 1123 |
<a id="a3bbe9229ae8a1e22eec3004fbcf09168"></a> |
| 1124 |
<h2 class="memtitle"><span class="permalink"><a href="#a3bbe9229ae8a1e22eec3004fbcf09168">◆ </a></span>twolame_set_psymodel()</h2> |
| 1125 |
|
| 1126 |
<div class="memitem"> |
| 1127 |
<div class="memproto"> |
| 1128 |
<table class="memname"> |
| 1129 |
<tr> |
| 1130 |
<td class="memname">TL_API int twolame_set_psymodel </td> |
| 1131 |
<td>(</td> |
| 1132 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1133 |
<td class="paramname"><em>glopts</em>, </td> |
| 1134 |
</tr> |
| 1135 |
<tr> |
| 1136 |
<td class="paramkey"></td> |
| 1137 |
<td></td> |
| 1138 |
<td class="paramtype">int </td> |
| 1139 |
<td class="paramname"><em>psymodel</em> </td> |
| 1140 |
</tr> |
| 1141 |
<tr> |
| 1142 |
<td></td> |
| 1143 |
<td>)</td> |
| 1144 |
<td></td><td></td> |
| 1145 |
</tr> |
| 1146 |
</table> |
| 1147 |
</div><div class="memdoc"> |
| 1148 |
<p>Set the Psychoacoustic Model used to encode the audio.</p> |
| 1149 |
<p>Default: 3</p> |
| 1150 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1151 |
<table class="params"> |
| 1152 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1153 |
<tr><td class="paramname">psymodel</td><td>the psychoacoustic model number </td></tr> |
| 1154 |
</table> |
| 1155 |
</dd> |
| 1156 |
</dl> |
| 1157 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1158 |
|
| 1159 |
</div> |
| 1160 |
</div> |
| 1161 |
<a id="a55c829dbf510decf7f75625dd14c17f5"></a> |
| 1162 |
<h2 class="memtitle"><span class="permalink"><a href="#a55c829dbf510decf7f75625dd14c17f5">◆ </a></span>twolame_get_psymodel()</h2> |
| 1163 |
|
| 1164 |
<div class="memitem"> |
| 1165 |
<div class="memproto"> |
| 1166 |
<table class="memname"> |
| 1167 |
<tr> |
| 1168 |
<td class="memname">TL_API int twolame_get_psymodel </td> |
| 1169 |
<td>(</td> |
| 1170 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1171 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1172 |
<td></td> |
| 1173 |
</tr> |
| 1174 |
</table> |
| 1175 |
</div><div class="memdoc"> |
| 1176 |
<p>Get the Psychoacoustic Model used to encode the audio.</p> |
| 1177 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1178 |
<table class="params"> |
| 1179 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1180 |
</table> |
| 1181 |
</dd> |
| 1182 |
</dl> |
| 1183 |
<dl class="section return"><dt>Returns</dt><dd>the psychoacoustic model number </dd></dl> |
| 1184 |
|
| 1185 |
</div> |
| 1186 |
</div> |
| 1187 |
<a id="aea2ac6ee873055c9230aa0e95f07870d"></a> |
| 1188 |
<h2 class="memtitle"><span class="permalink"><a href="#aea2ac6ee873055c9230aa0e95f07870d">◆ </a></span>twolame_set_num_channels()</h2> |
| 1189 |
|
| 1190 |
<div class="memitem"> |
| 1191 |
<div class="memproto"> |
| 1192 |
<table class="memname"> |
| 1193 |
<tr> |
| 1194 |
<td class="memname">TL_API int twolame_set_num_channels </td> |
| 1195 |
<td>(</td> |
| 1196 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1197 |
<td class="paramname"><em>glopts</em>, </td> |
| 1198 |
</tr> |
| 1199 |
<tr> |
| 1200 |
<td class="paramkey"></td> |
| 1201 |
<td></td> |
| 1202 |
<td class="paramtype">int </td> |
| 1203 |
<td class="paramname"><em>num_channels</em> </td> |
| 1204 |
</tr> |
| 1205 |
<tr> |
| 1206 |
<td></td> |
| 1207 |
<td>)</td> |
| 1208 |
<td></td><td></td> |
| 1209 |
</tr> |
| 1210 |
</table> |
| 1211 |
</div><div class="memdoc"> |
| 1212 |
<p>Set the number of channels in the input stream.</p> |
| 1213 |
<p>If this is different the number of channels in the output stream (set by mode) then the encoder will automatically downmix/upmix the audio.</p> |
| 1214 |
<p>Default: 2</p> |
| 1215 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1216 |
<table class="params"> |
| 1217 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1218 |
<tr><td class="paramname">num_channels</td><td>the number of input channels </td></tr> |
| 1219 |
</table> |
| 1220 |
</dd> |
| 1221 |
</dl> |
| 1222 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1223 |
|
| 1224 |
</div> |
| 1225 |
</div> |
| 1226 |
<a id="a75f436244f8d6e985864d09a32debca0"></a> |
| 1227 |
<h2 class="memtitle"><span class="permalink"><a href="#a75f436244f8d6e985864d09a32debca0">◆ </a></span>twolame_get_num_channels()</h2> |
| 1228 |
|
| 1229 |
<div class="memitem"> |
| 1230 |
<div class="memproto"> |
| 1231 |
<table class="memname"> |
| 1232 |
<tr> |
| 1233 |
<td class="memname">TL_API int twolame_get_num_channels </td> |
| 1234 |
<td>(</td> |
| 1235 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1236 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1237 |
<td></td> |
| 1238 |
</tr> |
| 1239 |
</table> |
| 1240 |
</div><div class="memdoc"> |
| 1241 |
<p>Get the number of channels in the input stream.</p> |
| 1242 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1243 |
<table class="params"> |
| 1244 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1245 |
</table> |
| 1246 |
</dd> |
| 1247 |
</dl> |
| 1248 |
<dl class="section return"><dt>Returns</dt><dd>the number of channels </dd></dl> |
| 1249 |
|
| 1250 |
</div> |
| 1251 |
</div> |
| 1252 |
<a id="ab9aa5129202f3e6d4e26973ade3ed1ed"></a> |
| 1253 |
<h2 class="memtitle"><span class="permalink"><a href="#ab9aa5129202f3e6d4e26973ade3ed1ed">◆ </a></span>twolame_set_scale()</h2> |
| 1254 |
|
| 1255 |
<div class="memitem"> |
| 1256 |
<div class="memproto"> |
| 1257 |
<table class="memname"> |
| 1258 |
<tr> |
| 1259 |
<td class="memname">TL_API int twolame_set_scale </td> |
| 1260 |
<td>(</td> |
| 1261 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1262 |
<td class="paramname"><em>glopts</em>, </td> |
| 1263 |
</tr> |
| 1264 |
<tr> |
| 1265 |
<td class="paramkey"></td> |
| 1266 |
<td></td> |
| 1267 |
<td class="paramtype">float </td> |
| 1268 |
<td class="paramname"><em>scale</em> </td> |
| 1269 |
</tr> |
| 1270 |
<tr> |
| 1271 |
<td></td> |
| 1272 |
<td>)</td> |
| 1273 |
<td></td><td></td> |
| 1274 |
</tr> |
| 1275 |
</table> |
| 1276 |
</div><div class="memdoc"> |
| 1277 |
<p>Set the scaling level for audio before encoding.</p> |
| 1278 |
<p>Set to 0 to disable.</p> |
| 1279 |
<p>Default: 0</p> |
| 1280 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1281 |
<table class="params"> |
| 1282 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1283 |
<tr><td class="paramname">scale</td><td>the amount to scale by </td></tr> |
| 1284 |
</table> |
| 1285 |
</dd> |
| 1286 |
</dl> |
| 1287 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1288 |
|
| 1289 |
</div> |
| 1290 |
</div> |
| 1291 |
<a id="aa5e6b1e3e053f2431105cfecee0d7156"></a> |
| 1292 |
<h2 class="memtitle"><span class="permalink"><a href="#aa5e6b1e3e053f2431105cfecee0d7156">◆ </a></span>twolame_get_scale()</h2> |
| 1293 |
|
| 1294 |
<div class="memitem"> |
| 1295 |
<div class="memproto"> |
| 1296 |
<table class="memname"> |
| 1297 |
<tr> |
| 1298 |
<td class="memname">TL_API float twolame_get_scale </td> |
| 1299 |
<td>(</td> |
| 1300 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1301 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1302 |
<td></td> |
| 1303 |
</tr> |
| 1304 |
</table> |
| 1305 |
</div><div class="memdoc"> |
| 1306 |
<p>Get the scaling level for audio before encoding.</p> |
| 1307 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1308 |
<table class="params"> |
| 1309 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1310 |
</table> |
| 1311 |
</dd> |
| 1312 |
</dl> |
| 1313 |
<dl class="section return"><dt>Returns</dt><dd>the amount to scale audio sample by </dd></dl> |
| 1314 |
|
| 1315 |
</div> |
| 1316 |
</div> |
| 1317 |
<a id="a610babaffe4b5442d6b534b494db55fe"></a> |
| 1318 |
<h2 class="memtitle"><span class="permalink"><a href="#a610babaffe4b5442d6b534b494db55fe">◆ </a></span>twolame_set_scale_left()</h2> |
| 1319 |
|
| 1320 |
<div class="memitem"> |
| 1321 |
<div class="memproto"> |
| 1322 |
<table class="memname"> |
| 1323 |
<tr> |
| 1324 |
<td class="memname">TL_API int twolame_set_scale_left </td> |
| 1325 |
<td>(</td> |
| 1326 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1327 |
<td class="paramname"><em>glopts</em>, </td> |
| 1328 |
</tr> |
| 1329 |
<tr> |
| 1330 |
<td class="paramkey"></td> |
| 1331 |
<td></td> |
| 1332 |
<td class="paramtype">float </td> |
| 1333 |
<td class="paramname"><em>scale</em> </td> |
| 1334 |
</tr> |
| 1335 |
<tr> |
| 1336 |
<td></td> |
| 1337 |
<td>)</td> |
| 1338 |
<td></td><td></td> |
| 1339 |
</tr> |
| 1340 |
</table> |
| 1341 |
</div><div class="memdoc"> |
| 1342 |
<p>Set the scaling level for left channel audio before encoding.</p> |
| 1343 |
<p>Set to 0 to disable.</p> |
| 1344 |
<p>Default: 0</p> |
| 1345 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1346 |
<table class="params"> |
| 1347 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1348 |
<tr><td class="paramname">scale</td><td>the amount to scale by </td></tr> |
| 1349 |
</table> |
| 1350 |
</dd> |
| 1351 |
</dl> |
| 1352 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1353 |
|
| 1354 |
</div> |
| 1355 |
</div> |
| 1356 |
<a id="a0c112cfd7932683917fb8a71deed97a9"></a> |
| 1357 |
<h2 class="memtitle"><span class="permalink"><a href="#a0c112cfd7932683917fb8a71deed97a9">◆ </a></span>twolame_get_scale_left()</h2> |
| 1358 |
|
| 1359 |
<div class="memitem"> |
| 1360 |
<div class="memproto"> |
| 1361 |
<table class="memname"> |
| 1362 |
<tr> |
| 1363 |
<td class="memname">TL_API float twolame_get_scale_left </td> |
| 1364 |
<td>(</td> |
| 1365 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1366 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1367 |
<td></td> |
| 1368 |
</tr> |
| 1369 |
</table> |
| 1370 |
</div><div class="memdoc"> |
| 1371 |
<p>Get the scaling level for audio left channel before encoding.</p> |
| 1372 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1373 |
<table class="params"> |
| 1374 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1375 |
</table> |
| 1376 |
</dd> |
| 1377 |
</dl> |
| 1378 |
<dl class="section return"><dt>Returns</dt><dd>the amount to scale left channel audio samples by </dd></dl> |
| 1379 |
|
| 1380 |
</div> |
| 1381 |
</div> |
| 1382 |
<a id="acf1282a8403a6ed8531a413649436b1f"></a> |
| 1383 |
<h2 class="memtitle"><span class="permalink"><a href="#acf1282a8403a6ed8531a413649436b1f">◆ </a></span>twolame_set_scale_right()</h2> |
| 1384 |
|
| 1385 |
<div class="memitem"> |
| 1386 |
<div class="memproto"> |
| 1387 |
<table class="memname"> |
| 1388 |
<tr> |
| 1389 |
<td class="memname">TL_API int twolame_set_scale_right </td> |
| 1390 |
<td>(</td> |
| 1391 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1392 |
<td class="paramname"><em>glopts</em>, </td> |
| 1393 |
</tr> |
| 1394 |
<tr> |
| 1395 |
<td class="paramkey"></td> |
| 1396 |
<td></td> |
| 1397 |
<td class="paramtype">float </td> |
| 1398 |
<td class="paramname"><em>scale</em> </td> |
| 1399 |
</tr> |
| 1400 |
<tr> |
| 1401 |
<td></td> |
| 1402 |
<td>)</td> |
| 1403 |
<td></td><td></td> |
| 1404 |
</tr> |
| 1405 |
</table> |
| 1406 |
</div><div class="memdoc"> |
| 1407 |
<p>Set the scaling level for right channel audio before encoding.</p> |
| 1408 |
<p>Set to 0 to disable.</p> |
| 1409 |
<p>Default: 0</p> |
| 1410 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1411 |
<table class="params"> |
| 1412 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1413 |
<tr><td class="paramname">scale</td><td>the amount to scale by </td></tr> |
| 1414 |
</table> |
| 1415 |
</dd> |
| 1416 |
</dl> |
| 1417 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1418 |
|
| 1419 |
</div> |
| 1420 |
</div> |
| 1421 |
<a id="a1f64127a1935f7bddc26a58738dff4ce"></a> |
| 1422 |
<h2 class="memtitle"><span class="permalink"><a href="#a1f64127a1935f7bddc26a58738dff4ce">◆ </a></span>twolame_get_scale_right()</h2> |
| 1423 |
|
| 1424 |
<div class="memitem"> |
| 1425 |
<div class="memproto"> |
| 1426 |
<table class="memname"> |
| 1427 |
<tr> |
| 1428 |
<td class="memname">TL_API float twolame_get_scale_right </td> |
| 1429 |
<td>(</td> |
| 1430 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1431 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1432 |
<td></td> |
| 1433 |
</tr> |
| 1434 |
</table> |
| 1435 |
</div><div class="memdoc"> |
| 1436 |
<p>Get the scaling level for audio right channel before encoding.</p> |
| 1437 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1438 |
<table class="params"> |
| 1439 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1440 |
</table> |
| 1441 |
</dd> |
| 1442 |
</dl> |
| 1443 |
<dl class="section return"><dt>Returns</dt><dd>the amount to scale right channel audio samples by </dd></dl> |
| 1444 |
|
| 1445 |
</div> |
| 1446 |
</div> |
| 1447 |
<a id="afb2e3bd9d0eb90ae34b78d80b9b4b1a6"></a> |
| 1448 |
<h2 class="memtitle"><span class="permalink"><a href="#afb2e3bd9d0eb90ae34b78d80b9b4b1a6">◆ </a></span>twolame_set_in_samplerate()</h2> |
| 1449 |
|
| 1450 |
<div class="memitem"> |
| 1451 |
<div class="memproto"> |
| 1452 |
<table class="memname"> |
| 1453 |
<tr> |
| 1454 |
<td class="memname">TL_API int twolame_set_in_samplerate </td> |
| 1455 |
<td>(</td> |
| 1456 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1457 |
<td class="paramname"><em>glopts</em>, </td> |
| 1458 |
</tr> |
| 1459 |
<tr> |
| 1460 |
<td class="paramkey"></td> |
| 1461 |
<td></td> |
| 1462 |
<td class="paramtype">int </td> |
| 1463 |
<td class="paramname"><em>samplerate</em> </td> |
| 1464 |
</tr> |
| 1465 |
<tr> |
| 1466 |
<td></td> |
| 1467 |
<td>)</td> |
| 1468 |
<td></td><td></td> |
| 1469 |
</tr> |
| 1470 |
</table> |
| 1471 |
</div><div class="memdoc"> |
| 1472 |
<p>Set the samplerate of the PCM audio input.</p> |
| 1473 |
<p>Default: 44100</p> |
| 1474 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1475 |
<table class="params"> |
| 1476 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1477 |
<tr><td class="paramname">samplerate</td><td>the samplerate in Hz </td></tr> |
| 1478 |
</table> |
| 1479 |
</dd> |
| 1480 |
</dl> |
| 1481 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1482 |
|
| 1483 |
</div> |
| 1484 |
</div> |
| 1485 |
<a id="a740d7d472e9cdef9c4bd0b9004845cfb"></a> |
| 1486 |
<h2 class="memtitle"><span class="permalink"><a href="#a740d7d472e9cdef9c4bd0b9004845cfb">◆ </a></span>twolame_get_in_samplerate()</h2> |
| 1487 |
|
| 1488 |
<div class="memitem"> |
| 1489 |
<div class="memproto"> |
| 1490 |
<table class="memname"> |
| 1491 |
<tr> |
| 1492 |
<td class="memname">TL_API int twolame_get_in_samplerate </td> |
| 1493 |
<td>(</td> |
| 1494 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1495 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1496 |
<td></td> |
| 1497 |
</tr> |
| 1498 |
</table> |
| 1499 |
</div><div class="memdoc"> |
| 1500 |
<p>Get the samplerate of the PCM audio input.</p> |
| 1501 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1502 |
<table class="params"> |
| 1503 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1504 |
</table> |
| 1505 |
</dd> |
| 1506 |
</dl> |
| 1507 |
<dl class="section return"><dt>Returns</dt><dd>the input samplerate </dd></dl> |
| 1508 |
|
| 1509 |
</div> |
| 1510 |
</div> |
| 1511 |
<a id="a74a3e505b57739b013eb982f06c658e7"></a> |
| 1512 |
<h2 class="memtitle"><span class="permalink"><a href="#a74a3e505b57739b013eb982f06c658e7">◆ </a></span>twolame_set_out_samplerate()</h2> |
| 1513 |
|
| 1514 |
<div class="memitem"> |
| 1515 |
<div class="memproto"> |
| 1516 |
<table class="memname"> |
| 1517 |
<tr> |
| 1518 |
<td class="memname">TL_API int twolame_set_out_samplerate </td> |
| 1519 |
<td>(</td> |
| 1520 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1521 |
<td class="paramname"><em>glopts</em>, </td> |
| 1522 |
</tr> |
| 1523 |
<tr> |
| 1524 |
<td class="paramkey"></td> |
| 1525 |
<td></td> |
| 1526 |
<td class="paramtype">int </td> |
| 1527 |
<td class="paramname"><em>samplerate</em> </td> |
| 1528 |
</tr> |
| 1529 |
<tr> |
| 1530 |
<td></td> |
| 1531 |
<td>)</td> |
| 1532 |
<td></td><td></td> |
| 1533 |
</tr> |
| 1534 |
</table> |
| 1535 |
</div><div class="memdoc"> |
| 1536 |
<p>Set the samplerate of the MPEG audio output.</p> |
| 1537 |
<p>Default: 44100</p> |
| 1538 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1539 |
<table class="params"> |
| 1540 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1541 |
<tr><td class="paramname">samplerate</td><td>the samplerate in Hz </td></tr> |
| 1542 |
</table> |
| 1543 |
</dd> |
| 1544 |
</dl> |
| 1545 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1546 |
|
| 1547 |
</div> |
| 1548 |
</div> |
| 1549 |
<a id="ad55cabfd5f5a6e63413309eb048bcb0e"></a> |
| 1550 |
<h2 class="memtitle"><span class="permalink"><a href="#ad55cabfd5f5a6e63413309eb048bcb0e">◆ </a></span>twolame_get_out_samplerate()</h2> |
| 1551 |
|
| 1552 |
<div class="memitem"> |
| 1553 |
<div class="memproto"> |
| 1554 |
<table class="memname"> |
| 1555 |
<tr> |
| 1556 |
<td class="memname">TL_API int twolame_get_out_samplerate </td> |
| 1557 |
<td>(</td> |
| 1558 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1559 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1560 |
<td></td> |
| 1561 |
</tr> |
| 1562 |
</table> |
| 1563 |
</div><div class="memdoc"> |
| 1564 |
<p>Get the samplerate of the MPEG audio output.</p> |
| 1565 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1566 |
<table class="params"> |
| 1567 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1568 |
</table> |
| 1569 |
</dd> |
| 1570 |
</dl> |
| 1571 |
<dl class="section return"><dt>Returns</dt><dd>the output samplerate </dd></dl> |
| 1572 |
|
| 1573 |
</div> |
| 1574 |
</div> |
| 1575 |
<a id="a74e1d153ff064584f83d8a4950ace879"></a> |
| 1576 |
<h2 class="memtitle"><span class="permalink"><a href="#a74e1d153ff064584f83d8a4950ace879">◆ </a></span>twolame_set_bitrate()</h2> |
| 1577 |
|
| 1578 |
<div class="memitem"> |
| 1579 |
<div class="memproto"> |
| 1580 |
<table class="memname"> |
| 1581 |
<tr> |
| 1582 |
<td class="memname">TL_API int twolame_set_bitrate </td> |
| 1583 |
<td>(</td> |
| 1584 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1585 |
<td class="paramname"><em>glopts</em>, </td> |
| 1586 |
</tr> |
| 1587 |
<tr> |
| 1588 |
<td class="paramkey"></td> |
| 1589 |
<td></td> |
| 1590 |
<td class="paramtype">int </td> |
| 1591 |
<td class="paramname"><em>bitrate</em> </td> |
| 1592 |
</tr> |
| 1593 |
<tr> |
| 1594 |
<td></td> |
| 1595 |
<td>)</td> |
| 1596 |
<td></td><td></td> |
| 1597 |
</tr> |
| 1598 |
</table> |
| 1599 |
</div><div class="memdoc"> |
| 1600 |
<p>Set the bitrate of the MPEG audio output stream.</p> |
| 1601 |
<p>Default: 192</p> |
| 1602 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1603 |
<table class="params"> |
| 1604 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1605 |
<tr><td class="paramname">bitrate</td><td>the bitrate in kbps </td></tr> |
| 1606 |
</table> |
| 1607 |
</dd> |
| 1608 |
</dl> |
| 1609 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1610 |
|
| 1611 |
</div> |
| 1612 |
</div> |
| 1613 |
<a id="a4b5648ec054a041679087d8d4f4d1800"></a> |
| 1614 |
<h2 class="memtitle"><span class="permalink"><a href="#a4b5648ec054a041679087d8d4f4d1800">◆ </a></span>twolame_get_bitrate()</h2> |
| 1615 |
|
| 1616 |
<div class="memitem"> |
| 1617 |
<div class="memproto"> |
| 1618 |
<table class="memname"> |
| 1619 |
<tr> |
| 1620 |
<td class="memname">TL_API int twolame_get_bitrate </td> |
| 1621 |
<td>(</td> |
| 1622 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1623 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1624 |
<td></td> |
| 1625 |
</tr> |
| 1626 |
</table> |
| 1627 |
</div><div class="memdoc"> |
| 1628 |
<p>Get the bitrate of the MPEG audio output.</p> |
| 1629 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1630 |
<table class="params"> |
| 1631 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1632 |
</table> |
| 1633 |
</dd> |
| 1634 |
</dl> |
| 1635 |
<dl class="section return"><dt>Returns</dt><dd>the output bitrate in kbps </dd></dl> |
| 1636 |
|
| 1637 |
</div> |
| 1638 |
</div> |
| 1639 |
<a id="ad908e4e162bfa5bbc5544d8f9f555098"></a> |
| 1640 |
<h2 class="memtitle"><span class="permalink"><a href="#ad908e4e162bfa5bbc5544d8f9f555098">◆ </a></span>twolame_set_brate()</h2> |
| 1641 |
|
| 1642 |
<div class="memitem"> |
| 1643 |
<div class="memproto"> |
| 1644 |
<table class="memname"> |
| 1645 |
<tr> |
| 1646 |
<td class="memname">TL_API int twolame_set_brate </td> |
| 1647 |
<td>(</td> |
| 1648 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1649 |
<td class="paramname"><em>glopts</em>, </td> |
| 1650 |
</tr> |
| 1651 |
<tr> |
| 1652 |
<td class="paramkey"></td> |
| 1653 |
<td></td> |
| 1654 |
<td class="paramtype">int </td> |
| 1655 |
<td class="paramname"><em>bitrate</em> </td> |
| 1656 |
</tr> |
| 1657 |
<tr> |
| 1658 |
<td></td> |
| 1659 |
<td>)</td> |
| 1660 |
<td></td><td></td> |
| 1661 |
</tr> |
| 1662 |
</table> |
| 1663 |
</div><div class="memdoc"> |
| 1664 |
<p>Set the bitrate of the MPEG audio output stream (LAME style).</p> |
| 1665 |
<p>Same as <a class="el" href="twolame_8h.html#a74e1d153ff064584f83d8a4950ace879">twolame_set_bitrate()</a> </p> |
| 1666 |
|
| 1667 |
</div> |
| 1668 |
</div> |
| 1669 |
<a id="ac0808742aecdb55da230db776816b063"></a> |
| 1670 |
<h2 class="memtitle"><span class="permalink"><a href="#ac0808742aecdb55da230db776816b063">◆ </a></span>twolame_get_brate()</h2> |
| 1671 |
|
| 1672 |
<div class="memitem"> |
| 1673 |
<div class="memproto"> |
| 1674 |
<table class="memname"> |
| 1675 |
<tr> |
| 1676 |
<td class="memname">TL_API int twolame_get_brate </td> |
| 1677 |
<td>(</td> |
| 1678 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1679 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1680 |
<td></td> |
| 1681 |
</tr> |
| 1682 |
</table> |
| 1683 |
</div><div class="memdoc"> |
| 1684 |
<p>Get the bitrate of the MPEG audio output stream (LAME style).</p> |
| 1685 |
<p>Same as <a class="el" href="twolame_8h.html#a4b5648ec054a041679087d8d4f4d1800">twolame_get_bitrate()</a> </p> |
| 1686 |
|
| 1687 |
</div> |
| 1688 |
</div> |
| 1689 |
<a id="a59ab89a073f49fbc371da9e58f9c0f60"></a> |
| 1690 |
<h2 class="memtitle"><span class="permalink"><a href="#a59ab89a073f49fbc371da9e58f9c0f60">◆ </a></span>twolame_set_padding()</h2> |
| 1691 |
|
| 1692 |
<div class="memitem"> |
| 1693 |
<div class="memproto"> |
| 1694 |
<table class="memname"> |
| 1695 |
<tr> |
| 1696 |
<td class="memname">TL_API int twolame_set_padding </td> |
| 1697 |
<td>(</td> |
| 1698 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1699 |
<td class="paramname"><em>glopts</em>, </td> |
| 1700 |
</tr> |
| 1701 |
<tr> |
| 1702 |
<td class="paramkey"></td> |
| 1703 |
<td></td> |
| 1704 |
<td class="paramtype"><a class="el" href="twolame_8h.html#af83f4f73e4c57db45269667b4421730e">TWOLAME_Padding</a> </td> |
| 1705 |
<td class="paramname"><em>padding</em> </td> |
| 1706 |
</tr> |
| 1707 |
<tr> |
| 1708 |
<td></td> |
| 1709 |
<td>)</td> |
| 1710 |
<td></td><td></td> |
| 1711 |
</tr> |
| 1712 |
</table> |
| 1713 |
</div><div class="memdoc"> |
| 1714 |
<p>Set frame padding for the MPEG audio output stream.</p> |
| 1715 |
<p>i.e. adjust frame sizes to achieve overall target bitrate</p> |
| 1716 |
<p>Default: TWOLAME_PAD_NO</p> |
| 1717 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1718 |
<table class="params"> |
| 1719 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1720 |
<tr><td class="paramname">padding</td><td>the padding type </td></tr> |
| 1721 |
</table> |
| 1722 |
</dd> |
| 1723 |
</dl> |
| 1724 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1725 |
|
| 1726 |
</div> |
| 1727 |
</div> |
| 1728 |
<a id="ac98d4fd8246bdece162969ac8a33a432"></a> |
| 1729 |
<h2 class="memtitle"><span class="permalink"><a href="#ac98d4fd8246bdece162969ac8a33a432">◆ </a></span>twolame_get_padding()</h2> |
| 1730 |
|
| 1731 |
<div class="memitem"> |
| 1732 |
<div class="memproto"> |
| 1733 |
<table class="memname"> |
| 1734 |
<tr> |
| 1735 |
<td class="memname">TL_API <a class="el" href="twolame_8h.html#af83f4f73e4c57db45269667b4421730e">TWOLAME_Padding</a> twolame_get_padding </td> |
| 1736 |
<td>(</td> |
| 1737 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1738 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1739 |
<td></td> |
| 1740 |
</tr> |
| 1741 |
</table> |
| 1742 |
</div><div class="memdoc"> |
| 1743 |
<p>Get the padding type of the MPEG audio output.</p> |
| 1744 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1745 |
<table class="params"> |
| 1746 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1747 |
</table> |
| 1748 |
</dd> |
| 1749 |
</dl> |
| 1750 |
<dl class="section return"><dt>Returns</dt><dd>the output bitrate in kbps </dd></dl> |
| 1751 |
|
| 1752 |
</div> |
| 1753 |
</div> |
| 1754 |
<a id="a5efa25f57dc40c4e5cccd4a7b0e792ae"></a> |
| 1755 |
<h2 class="memtitle"><span class="permalink"><a href="#a5efa25f57dc40c4e5cccd4a7b0e792ae">◆ </a></span>twolame_set_energy_levels()</h2> |
| 1756 |
|
| 1757 |
<div class="memitem"> |
| 1758 |
<div class="memproto"> |
| 1759 |
<table class="memname"> |
| 1760 |
<tr> |
| 1761 |
<td class="memname">TL_API int twolame_set_energy_levels </td> |
| 1762 |
<td>(</td> |
| 1763 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1764 |
<td class="paramname"><em>glopts</em>, </td> |
| 1765 |
</tr> |
| 1766 |
<tr> |
| 1767 |
<td class="paramkey"></td> |
| 1768 |
<td></td> |
| 1769 |
<td class="paramtype">int </td> |
| 1770 |
<td class="paramname"><em>energylevels</em> </td> |
| 1771 |
</tr> |
| 1772 |
<tr> |
| 1773 |
<td></td> |
| 1774 |
<td>)</td> |
| 1775 |
<td></td><td></td> |
| 1776 |
</tr> |
| 1777 |
</table> |
| 1778 |
</div><div class="memdoc"> |
| 1779 |
<p>Enable/Disable Energy Level Extension.</p> |
| 1780 |
<p>Enable writing the peak PCM level (energy level) at the end of each MPEG audio frame (in the ancillary bits). This function will automatically call <a class="el" href="twolame_8h.html#a7443130bc6d361e0035a5a6e000c9bb1">twolame_set_num_ancillary_bits()</a> to set the required number of ancillary bits for this feature.</p> |
| 1781 |
<p>The energy level extension is commonly used in the broadcast industry for visualising the audio in editing applications without decoding.</p> |
| 1782 |
<p>Default: FALSE</p> |
| 1783 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1784 |
<table class="params"> |
| 1785 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1786 |
<tr><td class="paramname">energylevels</td><td>energy level extension state (TRUE/FALSE) </td></tr> |
| 1787 |
</table> |
| 1788 |
</dd> |
| 1789 |
</dl> |
| 1790 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1791 |
|
| 1792 |
</div> |
| 1793 |
</div> |
| 1794 |
<a id="a8e2ff690372f647aa398db063ae1c976"></a> |
| 1795 |
<h2 class="memtitle"><span class="permalink"><a href="#a8e2ff690372f647aa398db063ae1c976">◆ </a></span>twolame_get_energy_levels()</h2> |
| 1796 |
|
| 1797 |
<div class="memitem"> |
| 1798 |
<div class="memproto"> |
| 1799 |
<table class="memname"> |
| 1800 |
<tr> |
| 1801 |
<td class="memname">TL_API int twolame_get_energy_levels </td> |
| 1802 |
<td>(</td> |
| 1803 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1804 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1805 |
<td></td> |
| 1806 |
</tr> |
| 1807 |
</table> |
| 1808 |
</div><div class="memdoc"> |
| 1809 |
<p>Get the Energy Level Extension state.</p> |
| 1810 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1811 |
<table class="params"> |
| 1812 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1813 |
</table> |
| 1814 |
</dd> |
| 1815 |
</dl> |
| 1816 |
<dl class="section return"><dt>Returns</dt><dd>state of the Energy Level Extension (TRUE/FALSE) </dd></dl> |
| 1817 |
|
| 1818 |
</div> |
| 1819 |
</div> |
| 1820 |
<a id="a7443130bc6d361e0035a5a6e000c9bb1"></a> |
| 1821 |
<h2 class="memtitle"><span class="permalink"><a href="#a7443130bc6d361e0035a5a6e000c9bb1">◆ </a></span>twolame_set_num_ancillary_bits()</h2> |
| 1822 |
|
| 1823 |
<div class="memitem"> |
| 1824 |
<div class="memproto"> |
| 1825 |
<table class="memname"> |
| 1826 |
<tr> |
| 1827 |
<td class="memname">TL_API int twolame_set_num_ancillary_bits </td> |
| 1828 |
<td>(</td> |
| 1829 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1830 |
<td class="paramname"><em>glopts</em>, </td> |
| 1831 |
</tr> |
| 1832 |
<tr> |
| 1833 |
<td class="paramkey"></td> |
| 1834 |
<td></td> |
| 1835 |
<td class="paramtype">int </td> |
| 1836 |
<td class="paramname"><em>num</em> </td> |
| 1837 |
</tr> |
| 1838 |
<tr> |
| 1839 |
<td></td> |
| 1840 |
<td>)</td> |
| 1841 |
<td></td><td></td> |
| 1842 |
</tr> |
| 1843 |
</table> |
| 1844 |
</div><div class="memdoc"> |
| 1845 |
<p>Set number of Ancillary Bits at end of frame.</p> |
| 1846 |
<p>Default: 0</p> |
| 1847 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1848 |
<table class="params"> |
| 1849 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1850 |
<tr><td class="paramname">num</td><td>number of bits to reserve </td></tr> |
| 1851 |
</table> |
| 1852 |
</dd> |
| 1853 |
</dl> |
| 1854 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1855 |
|
| 1856 |
</div> |
| 1857 |
</div> |
| 1858 |
<a id="afc3ef1940610c3f79c226071935a402a"></a> |
| 1859 |
<h2 class="memtitle"><span class="permalink"><a href="#afc3ef1940610c3f79c226071935a402a">◆ </a></span>twolame_get_num_ancillary_bits()</h2> |
| 1860 |
|
| 1861 |
<div class="memitem"> |
| 1862 |
<div class="memproto"> |
| 1863 |
<table class="memname"> |
| 1864 |
<tr> |
| 1865 |
<td class="memname">TL_API int twolame_get_num_ancillary_bits </td> |
| 1866 |
<td>(</td> |
| 1867 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1868 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1869 |
<td></td> |
| 1870 |
</tr> |
| 1871 |
</table> |
| 1872 |
</div><div class="memdoc"> |
| 1873 |
<p>Get the number of Ancillary Bits at end of frame.</p> |
| 1874 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1875 |
<table class="params"> |
| 1876 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1877 |
</table> |
| 1878 |
</dd> |
| 1879 |
</dl> |
| 1880 |
<dl class="section return"><dt>Returns</dt><dd>number of Ancillary Bits at end of frame </dd></dl> |
| 1881 |
|
| 1882 |
</div> |
| 1883 |
</div> |
| 1884 |
<a id="a4d07f1d68345166046e291ef8f749049"></a> |
| 1885 |
<h2 class="memtitle"><span class="permalink"><a href="#a4d07f1d68345166046e291ef8f749049">◆ </a></span>twolame_set_emphasis()</h2> |
| 1886 |
|
| 1887 |
<div class="memitem"> |
| 1888 |
<div class="memproto"> |
| 1889 |
<table class="memname"> |
| 1890 |
<tr> |
| 1891 |
<td class="memname">TL_API int twolame_set_emphasis </td> |
| 1892 |
<td>(</td> |
| 1893 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1894 |
<td class="paramname"><em>glopts</em>, </td> |
| 1895 |
</tr> |
| 1896 |
<tr> |
| 1897 |
<td class="paramkey"></td> |
| 1898 |
<td></td> |
| 1899 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a50521fc75f96f949634f8f6536c1be1b">TWOLAME_Emphasis</a> </td> |
| 1900 |
<td class="paramname"><em>emphasis</em> </td> |
| 1901 |
</tr> |
| 1902 |
<tr> |
| 1903 |
<td></td> |
| 1904 |
<td>)</td> |
| 1905 |
<td></td><td></td> |
| 1906 |
</tr> |
| 1907 |
</table> |
| 1908 |
</div><div class="memdoc"> |
| 1909 |
<p>Set the type of pre-emphasis to be applied to the decoded audio.</p> |
| 1910 |
<p>Default: TWOLAME_EMPHASIS_N</p> |
| 1911 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1912 |
<table class="params"> |
| 1913 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1914 |
<tr><td class="paramname">emphasis</td><td>the type of pre-emphasis </td></tr> |
| 1915 |
</table> |
| 1916 |
</dd> |
| 1917 |
</dl> |
| 1918 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1919 |
|
| 1920 |
</div> |
| 1921 |
</div> |
| 1922 |
<a id="a250d0ba0521f18e95760b49d95aaab4d"></a> |
| 1923 |
<h2 class="memtitle"><span class="permalink"><a href="#a250d0ba0521f18e95760b49d95aaab4d">◆ </a></span>twolame_get_emphasis()</h2> |
| 1924 |
|
| 1925 |
<div class="memitem"> |
| 1926 |
<div class="memproto"> |
| 1927 |
<table class="memname"> |
| 1928 |
<tr> |
| 1929 |
<td class="memname">TL_API <a class="el" href="twolame_8h.html#a50521fc75f96f949634f8f6536c1be1b">TWOLAME_Emphasis</a> twolame_get_emphasis </td> |
| 1930 |
<td>(</td> |
| 1931 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1932 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1933 |
<td></td> |
| 1934 |
</tr> |
| 1935 |
</table> |
| 1936 |
</div><div class="memdoc"> |
| 1937 |
<p>Get the type of pre-emphasis to be applied to the decoded audio.</p> |
| 1938 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1939 |
<table class="params"> |
| 1940 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1941 |
</table> |
| 1942 |
</dd> |
| 1943 |
</dl> |
| 1944 |
<dl class="section return"><dt>Returns</dt><dd>the type of pre-emphasis </dd></dl> |
| 1945 |
|
| 1946 |
</div> |
| 1947 |
</div> |
| 1948 |
<a id="a8c91aa9cd2df99aaecb7f1b985bf906d"></a> |
| 1949 |
<h2 class="memtitle"><span class="permalink"><a href="#a8c91aa9cd2df99aaecb7f1b985bf906d">◆ </a></span>twolame_set_error_protection()</h2> |
| 1950 |
|
| 1951 |
<div class="memitem"> |
| 1952 |
<div class="memproto"> |
| 1953 |
<table class="memname"> |
| 1954 |
<tr> |
| 1955 |
<td class="memname">TL_API int twolame_set_error_protection </td> |
| 1956 |
<td>(</td> |
| 1957 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1958 |
<td class="paramname"><em>glopts</em>, </td> |
| 1959 |
</tr> |
| 1960 |
<tr> |
| 1961 |
<td class="paramkey"></td> |
| 1962 |
<td></td> |
| 1963 |
<td class="paramtype">int </td> |
| 1964 |
<td class="paramname"><em>err_protection</em> </td> |
| 1965 |
</tr> |
| 1966 |
<tr> |
| 1967 |
<td></td> |
| 1968 |
<td>)</td> |
| 1969 |
<td></td><td></td> |
| 1970 |
</tr> |
| 1971 |
</table> |
| 1972 |
</div><div class="memdoc"> |
| 1973 |
<p>Enable/Disable CRC Error Protection.</p> |
| 1974 |
<p>Default: FALSE</p> |
| 1975 |
<dl class="params"><dt>Parameters</dt><dd> |
| 1976 |
<table class="params"> |
| 1977 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 1978 |
<tr><td class="paramname">err_protection</td><td>error protection state (TRUE/FALSE) </td></tr> |
| 1979 |
</table> |
| 1980 |
</dd> |
| 1981 |
</dl> |
| 1982 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 1983 |
|
| 1984 |
</div> |
| 1985 |
</div> |
| 1986 |
<a id="ae89f74462e05c3e3036c0193edbb670d"></a> |
| 1987 |
<h2 class="memtitle"><span class="permalink"><a href="#ae89f74462e05c3e3036c0193edbb670d">◆ </a></span>twolame_get_error_protection()</h2> |
| 1988 |
|
| 1989 |
<div class="memitem"> |
| 1990 |
<div class="memproto"> |
| 1991 |
<table class="memname"> |
| 1992 |
<tr> |
| 1993 |
<td class="memname">TL_API int twolame_get_error_protection </td> |
| 1994 |
<td>(</td> |
| 1995 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 1996 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 1997 |
<td></td> |
| 1998 |
</tr> |
| 1999 |
</table> |
| 2000 |
</div><div class="memdoc"> |
| 2001 |
<p>Get the CRC Error Protection state.</p> |
| 2002 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2003 |
<table class="params"> |
| 2004 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2005 |
</table> |
| 2006 |
</dd> |
| 2007 |
</dl> |
| 2008 |
<dl class="section return"><dt>Returns</dt><dd>state of Error Protection (TRUE/FALSE) </dd></dl> |
| 2009 |
|
| 2010 |
</div> |
| 2011 |
</div> |
| 2012 |
<a id="aaf0f806569b58ee803095eb7fdcf3ac0"></a> |
| 2013 |
<h2 class="memtitle"><span class="permalink"><a href="#aaf0f806569b58ee803095eb7fdcf3ac0">◆ </a></span>twolame_set_copyright()</h2> |
| 2014 |
|
| 2015 |
<div class="memitem"> |
| 2016 |
<div class="memproto"> |
| 2017 |
<table class="memname"> |
| 2018 |
<tr> |
| 2019 |
<td class="memname">TL_API int twolame_set_copyright </td> |
| 2020 |
<td>(</td> |
| 2021 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2022 |
<td class="paramname"><em>glopts</em>, </td> |
| 2023 |
</tr> |
| 2024 |
<tr> |
| 2025 |
<td class="paramkey"></td> |
| 2026 |
<td></td> |
| 2027 |
<td class="paramtype">int </td> |
| 2028 |
<td class="paramname"><em>copyright</em> </td> |
| 2029 |
</tr> |
| 2030 |
<tr> |
| 2031 |
<td></td> |
| 2032 |
<td>)</td> |
| 2033 |
<td></td><td></td> |
| 2034 |
</tr> |
| 2035 |
</table> |
| 2036 |
</div><div class="memdoc"> |
| 2037 |
<p>Set the MPEG Audio Copyright flag.</p> |
| 2038 |
<p>Indicates that MPEG stream is copyrighted.</p> |
| 2039 |
<p>Default: FALSE</p> |
| 2040 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2041 |
<table class="params"> |
| 2042 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2043 |
<tr><td class="paramname">copyright</td><td>copyright flag state (TRUE/FALSE) </td></tr> |
| 2044 |
</table> |
| 2045 |
</dd> |
| 2046 |
</dl> |
| 2047 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2048 |
|
| 2049 |
</div> |
| 2050 |
</div> |
| 2051 |
<a id="a2bc58ab13b098fd1d2aa1a181b03dbd1"></a> |
| 2052 |
<h2 class="memtitle"><span class="permalink"><a href="#a2bc58ab13b098fd1d2aa1a181b03dbd1">◆ </a></span>twolame_get_copyright()</h2> |
| 2053 |
|
| 2054 |
<div class="memitem"> |
| 2055 |
<div class="memproto"> |
| 2056 |
<table class="memname"> |
| 2057 |
<tr> |
| 2058 |
<td class="memname">TL_API int twolame_get_copyright </td> |
| 2059 |
<td>(</td> |
| 2060 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2061 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2062 |
<td></td> |
| 2063 |
</tr> |
| 2064 |
</table> |
| 2065 |
</div><div class="memdoc"> |
| 2066 |
<p>Get the copright flag state</p> |
| 2067 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2068 |
<table class="params"> |
| 2069 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2070 |
</table> |
| 2071 |
</dd> |
| 2072 |
</dl> |
| 2073 |
<dl class="section return"><dt>Returns</dt><dd>state of the copyright flag (TRUE/FALSE) </dd></dl> |
| 2074 |
|
| 2075 |
</div> |
| 2076 |
</div> |
| 2077 |
<a id="af9140ba124c6c1ecb584e0e3d922721e"></a> |
| 2078 |
<h2 class="memtitle"><span class="permalink"><a href="#af9140ba124c6c1ecb584e0e3d922721e">◆ </a></span>twolame_set_original()</h2> |
| 2079 |
|
| 2080 |
<div class="memitem"> |
| 2081 |
<div class="memproto"> |
| 2082 |
<table class="memname"> |
| 2083 |
<tr> |
| 2084 |
<td class="memname">TL_API int twolame_set_original </td> |
| 2085 |
<td>(</td> |
| 2086 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2087 |
<td class="paramname"><em>glopts</em>, </td> |
| 2088 |
</tr> |
| 2089 |
<tr> |
| 2090 |
<td class="paramkey"></td> |
| 2091 |
<td></td> |
| 2092 |
<td class="paramtype">int </td> |
| 2093 |
<td class="paramname"><em>original</em> </td> |
| 2094 |
</tr> |
| 2095 |
<tr> |
| 2096 |
<td></td> |
| 2097 |
<td>)</td> |
| 2098 |
<td></td><td></td> |
| 2099 |
</tr> |
| 2100 |
</table> |
| 2101 |
</div><div class="memdoc"> |
| 2102 |
<p>Set the MPEG Audio Original flag.</p> |
| 2103 |
<p>Default: FALSE</p> |
| 2104 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2105 |
<table class="params"> |
| 2106 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2107 |
<tr><td class="paramname">original</td><td>original flag state (TRUE/FALSE) </td></tr> |
| 2108 |
</table> |
| 2109 |
</dd> |
| 2110 |
</dl> |
| 2111 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2112 |
|
| 2113 |
</div> |
| 2114 |
</div> |
| 2115 |
<a id="a5499776e7bdf2b9c816624b48f64df31"></a> |
| 2116 |
<h2 class="memtitle"><span class="permalink"><a href="#a5499776e7bdf2b9c816624b48f64df31">◆ </a></span>twolame_get_original()</h2> |
| 2117 |
|
| 2118 |
<div class="memitem"> |
| 2119 |
<div class="memproto"> |
| 2120 |
<table class="memname"> |
| 2121 |
<tr> |
| 2122 |
<td class="memname">TL_API int twolame_get_original </td> |
| 2123 |
<td>(</td> |
| 2124 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2125 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2126 |
<td></td> |
| 2127 |
</tr> |
| 2128 |
</table> |
| 2129 |
</div><div class="memdoc"> |
| 2130 |
<p>Get the MPEG Audio Original flag state.</p> |
| 2131 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2132 |
<table class="params"> |
| 2133 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2134 |
</table> |
| 2135 |
</dd> |
| 2136 |
</dl> |
| 2137 |
<dl class="section return"><dt>Returns</dt><dd>state of the original flag (TRUE/FALSE) </dd></dl> |
| 2138 |
|
| 2139 |
</div> |
| 2140 |
</div> |
| 2141 |
<a id="a8fb20f5bf8d96e6414b20d2e2b1f39b2"></a> |
| 2142 |
<h2 class="memtitle"><span class="permalink"><a href="#a8fb20f5bf8d96e6414b20d2e2b1f39b2">◆ </a></span>twolame_set_extension()</h2> |
| 2143 |
|
| 2144 |
<div class="memitem"> |
| 2145 |
<div class="memproto"> |
| 2146 |
<table class="memname"> |
| 2147 |
<tr> |
| 2148 |
<td class="memname">TL_API int twolame_set_extension </td> |
| 2149 |
<td>(</td> |
| 2150 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2151 |
<td class="paramname"><em>glopts</em>, </td> |
| 2152 |
</tr> |
| 2153 |
<tr> |
| 2154 |
<td class="paramkey"></td> |
| 2155 |
<td></td> |
| 2156 |
<td class="paramtype">int </td> |
| 2157 |
<td class="paramname"><em>extension</em> </td> |
| 2158 |
</tr> |
| 2159 |
<tr> |
| 2160 |
<td></td> |
| 2161 |
<td>)</td> |
| 2162 |
<td></td><td></td> |
| 2163 |
</tr> |
| 2164 |
</table> |
| 2165 |
</div><div class="memdoc"> |
| 2166 |
<p>Set the MPEG Audio Private Extension flag.</p> |
| 2167 |
<p>Default: FALSE</p> |
| 2168 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2169 |
<table class="params"> |
| 2170 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2171 |
<tr><td class="paramname">extension</td><td>extension flag state (TRUE/FALSE) </td></tr> |
| 2172 |
</table> |
| 2173 |
</dd> |
| 2174 |
</dl> |
| 2175 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2176 |
|
| 2177 |
</div> |
| 2178 |
</div> |
| 2179 |
<a id="a876255430b9e2eaa2241a060291be625"></a> |
| 2180 |
<h2 class="memtitle"><span class="permalink"><a href="#a876255430b9e2eaa2241a060291be625">◆ </a></span>twolame_get_extension()</h2> |
| 2181 |
|
| 2182 |
<div class="memitem"> |
| 2183 |
<div class="memproto"> |
| 2184 |
<table class="memname"> |
| 2185 |
<tr> |
| 2186 |
<td class="memname">TL_API int twolame_get_extension </td> |
| 2187 |
<td>(</td> |
| 2188 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2189 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2190 |
<td></td> |
| 2191 |
</tr> |
| 2192 |
</table> |
| 2193 |
</div><div class="memdoc"> |
| 2194 |
<p>Get the MPEG Audio Private Extension flag state.</p> |
| 2195 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2196 |
<table class="params"> |
| 2197 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2198 |
</table> |
| 2199 |
</dd> |
| 2200 |
</dl> |
| 2201 |
<dl class="section return"><dt>Returns</dt><dd>state of the extension flag (TRUE/FALSE) </dd></dl> |
| 2202 |
|
| 2203 |
</div> |
| 2204 |
</div> |
| 2205 |
<a id="a53fe2e2703e890b9d89d94ac8c5290b1"></a> |
| 2206 |
<h2 class="memtitle"><span class="permalink"><a href="#a53fe2e2703e890b9d89d94ac8c5290b1">◆ </a></span>twolame_set_VBR()</h2> |
| 2207 |
|
| 2208 |
<div class="memitem"> |
| 2209 |
<div class="memproto"> |
| 2210 |
<table class="memname"> |
| 2211 |
<tr> |
| 2212 |
<td class="memname">TL_API int twolame_set_VBR </td> |
| 2213 |
<td>(</td> |
| 2214 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2215 |
<td class="paramname"><em>glopts</em>, </td> |
| 2216 |
</tr> |
| 2217 |
<tr> |
| 2218 |
<td class="paramkey"></td> |
| 2219 |
<td></td> |
| 2220 |
<td class="paramtype">int </td> |
| 2221 |
<td class="paramname"><em>vbr</em> </td> |
| 2222 |
</tr> |
| 2223 |
<tr> |
| 2224 |
<td></td> |
| 2225 |
<td>)</td> |
| 2226 |
<td></td><td></td> |
| 2227 |
</tr> |
| 2228 |
</table> |
| 2229 |
</div><div class="memdoc"> |
| 2230 |
<p>Enable/Disable VBR (Variable Bit Rate) mode.</p> |
| 2231 |
<p>Default: FALSE</p> |
| 2232 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2233 |
<table class="params"> |
| 2234 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2235 |
<tr><td class="paramname">vbr</td><td>VBR state (TRUE/FALSE) </td></tr> |
| 2236 |
</table> |
| 2237 |
</dd> |
| 2238 |
</dl> |
| 2239 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2240 |
|
| 2241 |
</div> |
| 2242 |
</div> |
| 2243 |
<a id="aec59ed0be1a4a2c1877b67adce3ec66c"></a> |
| 2244 |
<h2 class="memtitle"><span class="permalink"><a href="#aec59ed0be1a4a2c1877b67adce3ec66c">◆ </a></span>twolame_get_VBR()</h2> |
| 2245 |
|
| 2246 |
<div class="memitem"> |
| 2247 |
<div class="memproto"> |
| 2248 |
<table class="memname"> |
| 2249 |
<tr> |
| 2250 |
<td class="memname">TL_API int twolame_get_VBR </td> |
| 2251 |
<td>(</td> |
| 2252 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2253 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2254 |
<td></td> |
| 2255 |
</tr> |
| 2256 |
</table> |
| 2257 |
</div><div class="memdoc"> |
| 2258 |
<p>Get the VBR state.</p> |
| 2259 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2260 |
<table class="params"> |
| 2261 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2262 |
</table> |
| 2263 |
</dd> |
| 2264 |
</dl> |
| 2265 |
<dl class="section return"><dt>Returns</dt><dd>state of VBR (TRUE/FALSE) </dd></dl> |
| 2266 |
|
| 2267 |
</div> |
| 2268 |
</div> |
| 2269 |
<a id="a073690e3157951ab38c08268a91df023"></a> |
| 2270 |
<h2 class="memtitle"><span class="permalink"><a href="#a073690e3157951ab38c08268a91df023">◆ </a></span>twolame_set_VBR_level()</h2> |
| 2271 |
|
| 2272 |
<div class="memitem"> |
| 2273 |
<div class="memproto"> |
| 2274 |
<table class="memname"> |
| 2275 |
<tr> |
| 2276 |
<td class="memname">TL_API int twolame_set_VBR_level </td> |
| 2277 |
<td>(</td> |
| 2278 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2279 |
<td class="paramname"><em>glopts</em>, </td> |
| 2280 |
</tr> |
| 2281 |
<tr> |
| 2282 |
<td class="paramkey"></td> |
| 2283 |
<td></td> |
| 2284 |
<td class="paramtype">float </td> |
| 2285 |
<td class="paramname"><em>level</em> </td> |
| 2286 |
</tr> |
| 2287 |
<tr> |
| 2288 |
<td></td> |
| 2289 |
<td>)</td> |
| 2290 |
<td></td><td></td> |
| 2291 |
</tr> |
| 2292 |
</table> |
| 2293 |
</div><div class="memdoc"> |
| 2294 |
<p>Set the level/quality of the VBR audio.</p> |
| 2295 |
<p>The level value can is a measurement of quality - the higher the level the higher the average bitrate of the resultant file.</p> |
| 2296 |
<p>Default: 5.0</p> |
| 2297 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2298 |
<table class="params"> |
| 2299 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2300 |
<tr><td class="paramname">level</td><td>quality level (-10 to 10) </td></tr> |
| 2301 |
</table> |
| 2302 |
</dd> |
| 2303 |
</dl> |
| 2304 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2305 |
|
| 2306 |
</div> |
| 2307 |
</div> |
| 2308 |
<a id="a210261dfe18cf4d2095c9abac3a0fa46"></a> |
| 2309 |
<h2 class="memtitle"><span class="permalink"><a href="#a210261dfe18cf4d2095c9abac3a0fa46">◆ </a></span>twolame_get_VBR_level()</h2> |
| 2310 |
|
| 2311 |
<div class="memitem"> |
| 2312 |
<div class="memproto"> |
| 2313 |
<table class="memname"> |
| 2314 |
<tr> |
| 2315 |
<td class="memname">TL_API float twolame_get_VBR_level </td> |
| 2316 |
<td>(</td> |
| 2317 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2318 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2319 |
<td></td> |
| 2320 |
</tr> |
| 2321 |
</table> |
| 2322 |
</div><div class="memdoc"> |
| 2323 |
<p>Get the level/quality of the VBR audio.</p> |
| 2324 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2325 |
<table class="params"> |
| 2326 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2327 |
</table> |
| 2328 |
</dd> |
| 2329 |
</dl> |
| 2330 |
<dl class="section return"><dt>Returns</dt><dd>quality value for VBR </dd></dl> |
| 2331 |
|
| 2332 |
</div> |
| 2333 |
</div> |
| 2334 |
<a id="ae5168a0dcf9d237f8cb5320402e4fe50"></a> |
| 2335 |
<h2 class="memtitle"><span class="permalink"><a href="#ae5168a0dcf9d237f8cb5320402e4fe50">◆ </a></span>twolame_set_ATH_level()</h2> |
| 2336 |
|
| 2337 |
<div class="memitem"> |
| 2338 |
<div class="memproto"> |
| 2339 |
<table class="memname"> |
| 2340 |
<tr> |
| 2341 |
<td class="memname">TL_API int twolame_set_ATH_level </td> |
| 2342 |
<td>(</td> |
| 2343 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2344 |
<td class="paramname"><em>glopts</em>, </td> |
| 2345 |
</tr> |
| 2346 |
<tr> |
| 2347 |
<td class="paramkey"></td> |
| 2348 |
<td></td> |
| 2349 |
<td class="paramtype">float </td> |
| 2350 |
<td class="paramname"><em>level</em> </td> |
| 2351 |
</tr> |
| 2352 |
<tr> |
| 2353 |
<td></td> |
| 2354 |
<td>)</td> |
| 2355 |
<td></td><td></td> |
| 2356 |
</tr> |
| 2357 |
</table> |
| 2358 |
</div><div class="memdoc"> |
| 2359 |
<p>Set the adjustment (in dB) applied to the ATH for Psycho models 3 and 4.</p> |
| 2360 |
<p>Default: 0.0</p> |
| 2361 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2362 |
<table class="params"> |
| 2363 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2364 |
<tr><td class="paramname">level</td><td>adjustment level in db </td></tr> |
| 2365 |
</table> |
| 2366 |
</dd> |
| 2367 |
</dl> |
| 2368 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2369 |
|
| 2370 |
</div> |
| 2371 |
</div> |
| 2372 |
<a id="ae6cbbefef65ef2b0d9eec99b080870fe"></a> |
| 2373 |
<h2 class="memtitle"><span class="permalink"><a href="#ae6cbbefef65ef2b0d9eec99b080870fe">◆ </a></span>twolame_get_ATH_level()</h2> |
| 2374 |
|
| 2375 |
<div class="memitem"> |
| 2376 |
<div class="memproto"> |
| 2377 |
<table class="memname"> |
| 2378 |
<tr> |
| 2379 |
<td class="memname">TL_API float twolame_get_ATH_level </td> |
| 2380 |
<td>(</td> |
| 2381 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2382 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2383 |
<td></td> |
| 2384 |
</tr> |
| 2385 |
</table> |
| 2386 |
</div><div class="memdoc"> |
| 2387 |
<p>Get the adjustment (in dB) applied to the ATH for Psycho models 3 and 4.</p> |
| 2388 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2389 |
<table class="params"> |
| 2390 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2391 |
</table> |
| 2392 |
</dd> |
| 2393 |
</dl> |
| 2394 |
<dl class="section return"><dt>Returns</dt><dd>adjustment level in db </dd></dl> |
| 2395 |
|
| 2396 |
</div> |
| 2397 |
</div> |
| 2398 |
<a id="ab231ca0f8e41edaff09edf9d8f5c6b00"></a> |
| 2399 |
<h2 class="memtitle"><span class="permalink"><a href="#ab231ca0f8e41edaff09edf9d8f5c6b00">◆ </a></span>twolame_set_VBR_max_bitrate_kbps()</h2> |
| 2400 |
|
| 2401 |
<div class="memitem"> |
| 2402 |
<div class="memproto"> |
| 2403 |
<table class="memname"> |
| 2404 |
<tr> |
| 2405 |
<td class="memname">TL_API int twolame_set_VBR_max_bitrate_kbps </td> |
| 2406 |
<td>(</td> |
| 2407 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2408 |
<td class="paramname"><em>glopts</em>, </td> |
| 2409 |
</tr> |
| 2410 |
<tr> |
| 2411 |
<td class="paramkey"></td> |
| 2412 |
<td></td> |
| 2413 |
<td class="paramtype">int </td> |
| 2414 |
<td class="paramname"><em>bitrate</em> </td> |
| 2415 |
</tr> |
| 2416 |
<tr> |
| 2417 |
<td></td> |
| 2418 |
<td>)</td> |
| 2419 |
<td></td><td></td> |
| 2420 |
</tr> |
| 2421 |
</table> |
| 2422 |
</div><div class="memdoc"> |
| 2423 |
<p>Set the upper bitrate for VBR</p> |
| 2424 |
<p>Default: 0 (off)</p> |
| 2425 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2426 |
<table class="params"> |
| 2427 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2428 |
<tr><td class="paramname">bitrate</td><td>upper bitrate for VBR </td></tr> |
| 2429 |
</table> |
| 2430 |
</dd> |
| 2431 |
</dl> |
| 2432 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2433 |
|
| 2434 |
</div> |
| 2435 |
</div> |
| 2436 |
<a id="ab73a5613a87fcdcab4c51cf2ecadff5a"></a> |
| 2437 |
<h2 class="memtitle"><span class="permalink"><a href="#ab73a5613a87fcdcab4c51cf2ecadff5a">◆ </a></span>twolame_get_VBR_max_bitrate_kbps()</h2> |
| 2438 |
|
| 2439 |
<div class="memitem"> |
| 2440 |
<div class="memproto"> |
| 2441 |
<table class="memname"> |
| 2442 |
<tr> |
| 2443 |
<td class="memname">TL_API int twolame_get_VBR_max_bitrate_kbps </td> |
| 2444 |
<td>(</td> |
| 2445 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2446 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2447 |
<td></td> |
| 2448 |
</tr> |
| 2449 |
</table> |
| 2450 |
</div><div class="memdoc"> |
| 2451 |
<p>Get the upper bitrate for VBR.</p> |
| 2452 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2453 |
<table class="params"> |
| 2454 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2455 |
</table> |
| 2456 |
</dd> |
| 2457 |
</dl> |
| 2458 |
<dl class="section return"><dt>Returns</dt><dd>the upper bitrate for VBR </dd></dl> |
| 2459 |
|
| 2460 |
</div> |
| 2461 |
</div> |
| 2462 |
<a id="a4e525f54ce1a0879643ebbeaf0ea0c78"></a> |
| 2463 |
<h2 class="memtitle"><span class="permalink"><a href="#a4e525f54ce1a0879643ebbeaf0ea0c78">◆ </a></span>twolame_set_quick_mode()</h2> |
| 2464 |
|
| 2465 |
<div class="memitem"> |
| 2466 |
<div class="memproto"> |
| 2467 |
<table class="memname"> |
| 2468 |
<tr> |
| 2469 |
<td class="memname">TL_API int twolame_set_quick_mode </td> |
| 2470 |
<td>(</td> |
| 2471 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2472 |
<td class="paramname"><em>glopts</em>, </td> |
| 2473 |
</tr> |
| 2474 |
<tr> |
| 2475 |
<td class="paramkey"></td> |
| 2476 |
<td></td> |
| 2477 |
<td class="paramtype">int </td> |
| 2478 |
<td class="paramname"><em>quickmode</em> </td> |
| 2479 |
</tr> |
| 2480 |
<tr> |
| 2481 |
<td></td> |
| 2482 |
<td>)</td> |
| 2483 |
<td></td><td></td> |
| 2484 |
</tr> |
| 2485 |
</table> |
| 2486 |
</div><div class="memdoc"> |
| 2487 |
<p>Enable/Disable the quick mode for psycho model calculation.</p> |
| 2488 |
<p>Default: FALSE</p> |
| 2489 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2490 |
<table class="params"> |
| 2491 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2492 |
<tr><td class="paramname">quickmode</td><td>the state of quick mode (TRUE/FALSE) </td></tr> |
| 2493 |
</table> |
| 2494 |
</dd> |
| 2495 |
</dl> |
| 2496 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2497 |
|
| 2498 |
</div> |
| 2499 |
</div> |
| 2500 |
<a id="abc9873bc98728bc538194f9c087da04e"></a> |
| 2501 |
<h2 class="memtitle"><span class="permalink"><a href="#abc9873bc98728bc538194f9c087da04e">◆ </a></span>twolame_get_quick_mode()</h2> |
| 2502 |
|
| 2503 |
<div class="memitem"> |
| 2504 |
<div class="memproto"> |
| 2505 |
<table class="memname"> |
| 2506 |
<tr> |
| 2507 |
<td class="memname">TL_API int twolame_get_quick_mode </td> |
| 2508 |
<td>(</td> |
| 2509 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2510 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2511 |
<td></td> |
| 2512 |
</tr> |
| 2513 |
</table> |
| 2514 |
</div><div class="memdoc"> |
| 2515 |
<p>Get the state of quick mode.</p> |
| 2516 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2517 |
<table class="params"> |
| 2518 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2519 |
</table> |
| 2520 |
</dd> |
| 2521 |
</dl> |
| 2522 |
<dl class="section return"><dt>Returns</dt><dd>the state of quick mode (TRUE/FALSE) </dd></dl> |
| 2523 |
|
| 2524 |
</div> |
| 2525 |
</div> |
| 2526 |
<a id="a732b58443b4a0a57f78aa0ceecafb375"></a> |
| 2527 |
<h2 class="memtitle"><span class="permalink"><a href="#a732b58443b4a0a57f78aa0ceecafb375">◆ </a></span>twolame_set_quick_count()</h2> |
| 2528 |
|
| 2529 |
<div class="memitem"> |
| 2530 |
<div class="memproto"> |
| 2531 |
<table class="memname"> |
| 2532 |
<tr> |
| 2533 |
<td class="memname">TL_API int twolame_set_quick_count </td> |
| 2534 |
<td>(</td> |
| 2535 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2536 |
<td class="paramname"><em>glopts</em>, </td> |
| 2537 |
</tr> |
| 2538 |
<tr> |
| 2539 |
<td class="paramkey"></td> |
| 2540 |
<td></td> |
| 2541 |
<td class="paramtype">int </td> |
| 2542 |
<td class="paramname"><em>quickcount</em> </td> |
| 2543 |
</tr> |
| 2544 |
<tr> |
| 2545 |
<td></td> |
| 2546 |
<td>)</td> |
| 2547 |
<td></td><td></td> |
| 2548 |
</tr> |
| 2549 |
</table> |
| 2550 |
</div><div class="memdoc"> |
| 2551 |
<p>Set how often the psy model is calculated.</p> |
| 2552 |
<p>Default: 10</p> |
| 2553 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2554 |
<table class="params"> |
| 2555 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2556 |
<tr><td class="paramname">quickcount</td><td>number of frames between calculations </td></tr> |
| 2557 |
</table> |
| 2558 |
</dd> |
| 2559 |
</dl> |
| 2560 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2561 |
|
| 2562 |
</div> |
| 2563 |
</div> |
| 2564 |
<a id="aa3684eec33a26ca90a76320e5ffc58c8"></a> |
| 2565 |
<h2 class="memtitle"><span class="permalink"><a href="#aa3684eec33a26ca90a76320e5ffc58c8">◆ </a></span>twolame_get_quick_count()</h2> |
| 2566 |
|
| 2567 |
<div class="memitem"> |
| 2568 |
<div class="memproto"> |
| 2569 |
<table class="memname"> |
| 2570 |
<tr> |
| 2571 |
<td class="memname">TL_API int twolame_get_quick_count </td> |
| 2572 |
<td>(</td> |
| 2573 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2574 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2575 |
<td></td> |
| 2576 |
</tr> |
| 2577 |
</table> |
| 2578 |
</div><div class="memdoc"> |
| 2579 |
<p>Get the how often the psy model is calculated.</p> |
| 2580 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2581 |
<table class="params"> |
| 2582 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2583 |
</table> |
| 2584 |
</dd> |
| 2585 |
</dl> |
| 2586 |
<dl class="section return"><dt>Returns</dt><dd>number of frames between calculations </dd></dl> |
| 2587 |
|
| 2588 |
</div> |
| 2589 |
</div> |
| 2590 |
<a id="a466dfdf7f2c102ffc9cdf44f573edae6"></a> |
| 2591 |
<h2 class="memtitle"><span class="permalink"><a href="#a466dfdf7f2c102ffc9cdf44f573edae6">◆ </a></span>twolame_set_DAB()</h2> |
| 2592 |
|
| 2593 |
<div class="memitem"> |
| 2594 |
<div class="memproto"> |
| 2595 |
<table class="memname"> |
| 2596 |
<tr> |
| 2597 |
<td class="memname">TL_API int twolame_set_DAB </td> |
| 2598 |
<td>(</td> |
| 2599 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2600 |
<td class="paramname"><em>glopts</em>, </td> |
| 2601 |
</tr> |
| 2602 |
<tr> |
| 2603 |
<td class="paramkey"></td> |
| 2604 |
<td></td> |
| 2605 |
<td class="paramtype">int </td> |
| 2606 |
<td class="paramname"><em>dab</em> </td> |
| 2607 |
</tr> |
| 2608 |
<tr> |
| 2609 |
<td></td> |
| 2610 |
<td>)</td> |
| 2611 |
<td></td><td></td> |
| 2612 |
</tr> |
| 2613 |
</table> |
| 2614 |
</div><div class="memdoc"> |
| 2615 |
<p>Enable/Disable the Eureka 147 DAB extensions for MP2.</p> |
| 2616 |
<p>Default: FALSE</p> |
| 2617 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2618 |
<table class="params"> |
| 2619 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2620 |
<tr><td class="paramname">dab</td><td>state of DAB extensions (TRUE/FALSE) </td></tr> |
| 2621 |
</table> |
| 2622 |
</dd> |
| 2623 |
</dl> |
| 2624 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2625 |
|
| 2626 |
</div> |
| 2627 |
</div> |
| 2628 |
<a id="a49f097f4daa3bc9069f32d09a6bb3fda"></a> |
| 2629 |
<h2 class="memtitle"><span class="permalink"><a href="#a49f097f4daa3bc9069f32d09a6bb3fda">◆ </a></span>twolame_get_DAB()</h2> |
| 2630 |
|
| 2631 |
<div class="memitem"> |
| 2632 |
<div class="memproto"> |
| 2633 |
<table class="memname"> |
| 2634 |
<tr> |
| 2635 |
<td class="memname">TL_API int twolame_get_DAB </td> |
| 2636 |
<td>(</td> |
| 2637 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2638 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2639 |
<td></td> |
| 2640 |
</tr> |
| 2641 |
</table> |
| 2642 |
</div><div class="memdoc"> |
| 2643 |
<p>Get the state of the DAB extensions</p> |
| 2644 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2645 |
<table class="params"> |
| 2646 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2647 |
</table> |
| 2648 |
</dd> |
| 2649 |
</dl> |
| 2650 |
<dl class="section return"><dt>Returns</dt><dd>the state of DAB (TRUE/FALSE) </dd></dl> |
| 2651 |
|
| 2652 |
</div> |
| 2653 |
</div> |
| 2654 |
<a id="a8ae355d0418be8a756500bc95d59db9d"></a> |
| 2655 |
<h2 class="memtitle"><span class="permalink"><a href="#a8ae355d0418be8a756500bc95d59db9d">◆ </a></span>twolame_set_DAB_xpad_length()</h2> |
| 2656 |
|
| 2657 |
<div class="memitem"> |
| 2658 |
<div class="memproto"> |
| 2659 |
<table class="memname"> |
| 2660 |
<tr> |
| 2661 |
<td class="memname">TL_API int twolame_set_DAB_xpad_length </td> |
| 2662 |
<td>(</td> |
| 2663 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2664 |
<td class="paramname"><em>glopts</em>, </td> |
| 2665 |
</tr> |
| 2666 |
<tr> |
| 2667 |
<td class="paramkey"></td> |
| 2668 |
<td></td> |
| 2669 |
<td class="paramtype">int </td> |
| 2670 |
<td class="paramname"><em>length</em> </td> |
| 2671 |
</tr> |
| 2672 |
<tr> |
| 2673 |
<td></td> |
| 2674 |
<td>)</td> |
| 2675 |
<td></td><td></td> |
| 2676 |
</tr> |
| 2677 |
</table> |
| 2678 |
</div><div class="memdoc"> |
| 2679 |
<p>Set the number of bytes to reserve for DAB XPAD data.</p> |
| 2680 |
<p>Default: 0</p> |
| 2681 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2682 |
<table class="params"> |
| 2683 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2684 |
<tr><td class="paramname">length</td><td>number of bytes to reserve </td></tr> |
| 2685 |
</table> |
| 2686 |
</dd> |
| 2687 |
</dl> |
| 2688 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2689 |
|
| 2690 |
</div> |
| 2691 |
</div> |
| 2692 |
<a id="ac67092f89ec7d42338d0ae12eba33408"></a> |
| 2693 |
<h2 class="memtitle"><span class="permalink"><a href="#ac67092f89ec7d42338d0ae12eba33408">◆ </a></span>twolame_get_DAB_xpad_length()</h2> |
| 2694 |
|
| 2695 |
<div class="memitem"> |
| 2696 |
<div class="memproto"> |
| 2697 |
<table class="memname"> |
| 2698 |
<tr> |
| 2699 |
<td class="memname">TL_API int twolame_get_DAB_xpad_length </td> |
| 2700 |
<td>(</td> |
| 2701 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2702 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2703 |
<td></td> |
| 2704 |
</tr> |
| 2705 |
</table> |
| 2706 |
</div><div class="memdoc"> |
| 2707 |
<p>Get the number of bytes reserved for DAB XPAD data.</p> |
| 2708 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2709 |
<table class="params"> |
| 2710 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2711 |
</table> |
| 2712 |
</dd> |
| 2713 |
</dl> |
| 2714 |
<dl class="section return"><dt>Returns</dt><dd>number of XPAD bytes </dd></dl> |
| 2715 |
|
| 2716 |
</div> |
| 2717 |
</div> |
| 2718 |
<a id="af028694a6c67ef1114efaf11aef81c37"></a> |
| 2719 |
<h2 class="memtitle"><span class="permalink"><a href="#af028694a6c67ef1114efaf11aef81c37">◆ </a></span>twolame_set_DAB_crc_length()</h2> |
| 2720 |
|
| 2721 |
<div class="memitem"> |
| 2722 |
<div class="memproto"> |
| 2723 |
<table class="memname"> |
| 2724 |
<tr> |
| 2725 |
<td class="memname">TL_API int twolame_set_DAB_crc_length </td> |
| 2726 |
<td>(</td> |
| 2727 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2728 |
<td class="paramname"><em>glopts</em>, </td> |
| 2729 |
</tr> |
| 2730 |
<tr> |
| 2731 |
<td class="paramkey"></td> |
| 2732 |
<td></td> |
| 2733 |
<td class="paramtype">int </td> |
| 2734 |
<td class="paramname"><em>length</em> </td> |
| 2735 |
</tr> |
| 2736 |
<tr> |
| 2737 |
<td></td> |
| 2738 |
<td>)</td> |
| 2739 |
<td></td><td></td> |
| 2740 |
</tr> |
| 2741 |
</table> |
| 2742 |
</div><div class="memdoc"> |
| 2743 |
<p>Set the CRC error protection length for DAB. Note: Alternative method is: twolame_set_DAB_scf_crc_length.</p> |
| 2744 |
<p>Default: 2</p> |
| 2745 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2746 |
<table class="params"> |
| 2747 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2748 |
<tr><td class="paramname">length</td><td>length of DAB CRC </td></tr> |
| 2749 |
</table> |
| 2750 |
</dd> |
| 2751 |
</dl> |
| 2752 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2753 |
|
| 2754 |
</div> |
| 2755 |
</div> |
| 2756 |
<a id="a033d490d604eefa64962620e2409ace3"></a> |
| 2757 |
<h2 class="memtitle"><span class="permalink"><a href="#a033d490d604eefa64962620e2409ace3">◆ </a></span>twolame_set_DAB_scf_crc_length()</h2> |
| 2758 |
|
| 2759 |
<div class="memitem"> |
| 2760 |
<div class="memproto"> |
| 2761 |
<table class="memname"> |
| 2762 |
<tr> |
| 2763 |
<td class="memname">TL_API int twolame_set_DAB_scf_crc_length </td> |
| 2764 |
<td>(</td> |
| 2765 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2766 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2767 |
<td></td> |
| 2768 |
</tr> |
| 2769 |
</table> |
| 2770 |
</div><div class="memdoc"> |
| 2771 |
<p>Method that calculates and sets the length of the ScF-CRC field. The method must be called after initialization of bitrate, mpeg version and mpeg mode. If these conditions are met, the method can be used instead of twolame_set_DAB_crc_length.</p> |
| 2772 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2773 |
<table class="params"> |
| 2774 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2775 |
</table> |
| 2776 |
</dd> |
| 2777 |
</dl> |
| 2778 |
|
| 2779 |
</div> |
| 2780 |
</div> |
| 2781 |
<a id="a31d534b1f4bd5bc1dbaa08a620ce8195"></a> |
| 2782 |
<h2 class="memtitle"><span class="permalink"><a href="#a31d534b1f4bd5bc1dbaa08a620ce8195">◆ </a></span>twolame_get_DAB_crc_length()</h2> |
| 2783 |
|
| 2784 |
<div class="memitem"> |
| 2785 |
<div class="memproto"> |
| 2786 |
<table class="memname"> |
| 2787 |
<tr> |
| 2788 |
<td class="memname">TL_API int twolame_get_DAB_crc_length </td> |
| 2789 |
<td>(</td> |
| 2790 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2791 |
<td class="paramname"><em>glopts</em></td><td>)</td> |
| 2792 |
<td></td> |
| 2793 |
</tr> |
| 2794 |
</table> |
| 2795 |
</div><div class="memdoc"> |
| 2796 |
<p>Get the CRC error protection length for DAB.</p> |
| 2797 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2798 |
<table class="params"> |
| 2799 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer </td></tr> |
| 2800 |
</table> |
| 2801 |
</dd> |
| 2802 |
</dl> |
| 2803 |
<dl class="section return"><dt>Returns</dt><dd>length of DAB CRC </dd></dl> |
| 2804 |
|
| 2805 |
</div> |
| 2806 |
</div> |
| 2807 |
<a id="a17b9061e60288c7cdea19bcfb1ed4d5e"></a> |
| 2808 |
<h2 class="memtitle"><span class="permalink"><a href="#a17b9061e60288c7cdea19bcfb1ed4d5e">◆ </a></span>twolame_set_DAB_scf_crc()</h2> |
| 2809 |
|
| 2810 |
<div class="memitem"> |
| 2811 |
<div class="memproto"> |
| 2812 |
<table class="memname"> |
| 2813 |
<tr> |
| 2814 |
<td class="memname">TL_API int twolame_set_DAB_scf_crc </td> |
| 2815 |
<td>(</td> |
| 2816 |
<td class="paramtype"><a class="el" href="twolame_8h.html#a429c5c35b47d5d7cc34a07e48a82866d">twolame_options</a> * </td> |
| 2817 |
<td class="paramname"><em>glopts</em>, </td> |
| 2818 |
</tr> |
| 2819 |
<tr> |
| 2820 |
<td class="paramkey"></td> |
| 2821 |
<td></td> |
| 2822 |
<td class="paramtype">unsigned char * </td> |
| 2823 |
<td class="paramname"><em>mp2buffer</em>, </td> |
| 2824 |
</tr> |
| 2825 |
<tr> |
| 2826 |
<td class="paramkey"></td> |
| 2827 |
<td></td> |
| 2828 |
<td class="paramtype">int </td> |
| 2829 |
<td class="paramname"><em>mp2buffer_size</em> </td> |
| 2830 |
</tr> |
| 2831 |
<tr> |
| 2832 |
<td></td> |
| 2833 |
<td>)</td> |
| 2834 |
<td></td><td></td> |
| 2835 |
</tr> |
| 2836 |
</table> |
| 2837 |
</div><div class="memdoc"> |
| 2838 |
<p>Set the DAB ScF-CRC error protection. The front-end is responsible for holding at least two mp2 frames in memory to invoke this method.</p> |
| 2839 |
<p>For DAB to work properly follow these steps: First: Reserve enough bits in ancillary data field (options->num_ancillary_bits). Second: Put the encoder into "single frame mode" i.e. only read 1152 samples per channel. Third: When you receive an mp2 frame back from the library, call this method to insert the options->dabCrc[i] values to the previous mp2 frame.</p> |
| 2840 |
<dl class="params"><dt>Parameters</dt><dd> |
| 2841 |
<table class="params"> |
| 2842 |
<tr><td class="paramname">glopts</td><td>pointer to twolame options pointer for the (N) encoded frame </td></tr> |
| 2843 |
<tr><td class="paramname">mp2buffer</td><td>buffer to the (N-1) encoded frame </td></tr> |
| 2844 |
<tr><td class="paramname">mp2buffer_size</td><td>the length (in bytes) of mp2buffer </td></tr> |
| 2845 |
</table> |
| 2846 |
</dd> |
| 2847 |
</dl> |
| 2848 |
<dl class="section return"><dt>Returns</dt><dd>0 if successful, non-zero on failure </dd></dl> |
| 2849 |
|
| 2850 |
</div> |
| 2851 |
</div> |
| 2852 |
</div><!-- contents --> |
| 2853 |
<!-- start footer part --> |
| 2854 |
<hr class="footer"/><address class="footer"><small> |
| 2855 |
Generated on Fri Oct 11 2019 17:27:13 for TwoLAME by  <a href="http://www.doxygen.org/index.html"> |
| 2856 |
<img class="footer" src="doxygen.png" alt="doxygen"/> |
| 2857 |
</a> 1.8.13 |
| 2858 |
</small></address> |
| 2859 |
</body> |
| 2860 |
</html> |