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