annotate code-docs/classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html @ 3:5c2683745b33 vamp-plugin-sdk-v2.4

Update for 2.4
author Chris Cannam
date Fri, 13 Jul 2012 13:30:27 +0100
parents 3c430ef1ed66
children 27319718b1f8
rev   line source
Chris@1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Chris@1 2 <html xmlns="http://www.w3.org/1999/xhtml">
Chris@1 3 <head>
Chris@1 4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
Chris@3 5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
Chris@1 6 <title>VampPluginSDK: Vamp::HostExt::PluginInputDomainAdapter Class Reference</title>
Chris@1 7
Chris@1 8 <link href="tabs.css" rel="stylesheet" type="text/css"/>
Chris@1 9 <link href="doxygen.css" rel="stylesheet" type="text/css" />
Chris@1 10 <link href="navtree.css" rel="stylesheet" type="text/css"/>
Chris@1 11 <script type="text/javascript" src="jquery.js"></script>
Chris@1 12 <script type="text/javascript" src="resize.js"></script>
Chris@1 13 <script type="text/javascript" src="navtree.js"></script>
Chris@1 14 <script type="text/javascript">
Chris@1 15 $(document).ready(initResizable);
Chris@1 16 </script>
Chris@1 17
Chris@1 18
Chris@1 19 </head>
Chris@1 20 <body>
Chris@1 21 <div id="top"><!-- do not remove this div! -->
Chris@1 22
Chris@1 23
Chris@1 24 <div id="titlearea">
Chris@1 25 <table cellspacing="0" cellpadding="0">
Chris@1 26 <tbody>
Chris@1 27 <tr style="height: 56px;">
Chris@1 28
Chris@1 29
Chris@1 30 <td style="padding-left: 0.5em;">
Chris@1 31 <div id="projectname">VampPluginSDK
Chris@3 32 &#160;<span id="projectnumber">2.4</span>
Chris@1 33 </div>
Chris@1 34
Chris@1 35 </td>
Chris@1 36
Chris@1 37
Chris@1 38
Chris@1 39 </tr>
Chris@1 40 </tbody>
Chris@1 41 </table>
Chris@1 42 </div>
Chris@1 43
Chris@3 44 <!-- Generated by Doxygen 1.8.0 -->
Chris@1 45 <div id="navrow1" class="tabs">
Chris@1 46 <ul class="tablist">
Chris@1 47 <li><a href="index.html"><span>Main&#160;Page</span></a></li>
Chris@1 48 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
Chris@1 49 <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
Chris@1 50 <li><a href="files.html"><span>Files</span></a></li>
Chris@1 51 <li><a href="dirs.html"><span>Directories</span></a></li>
Chris@1 52 </ul>
Chris@1 53 </div>
Chris@1 54 <div id="navrow2" class="tabs2">
Chris@1 55 <ul class="tablist">
Chris@1 56 <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
Chris@1 57 <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
Chris@1 58 <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
Chris@1 59 </ul>
Chris@1 60 </div>
Chris@1 61 </div>
Chris@1 62 <div id="side-nav" class="ui-resizable side-nav-resizable">
Chris@1 63 <div id="nav-tree">
Chris@1 64 <div id="nav-tree-contents">
Chris@1 65 </div>
Chris@1 66 </div>
Chris@1 67 <div id="splitbar" style="-moz-user-select:none;"
Chris@1 68 class="ui-resizable-handle">
Chris@1 69 </div>
Chris@1 70 </div>
Chris@1 71 <script type="text/javascript">
Chris@1 72 initNavTree('classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html','');
Chris@1 73 </script>
Chris@1 74 <div id="doc-content">
Chris@1 75 <div class="header">
Chris@1 76 <div class="summary">
Chris@1 77 <a href="#pub-types">Public Types</a> &#124;
Chris@1 78 <a href="#pub-methods">Public Member Functions</a> &#124;
Chris@1 79 <a href="#pro-attribs">Protected Attributes</a> </div>
Chris@1 80 <div class="headertitle">
Chris@1 81 <div class="title">Vamp::HostExt::PluginInputDomainAdapter Class Reference</div> </div>
Chris@3 82 </div><!--header-->
Chris@1 83 <div class="contents">
Chris@3 84
Chris@1 85 <p><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> is a <a class="el" href="namespaceVamp.html">Vamp</a> plugin adapter that converts time-domain input into frequency-domain input for plugins that need it.
Chris@1 86 <a href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#details">More...</a></p>
Chris@1 87
Chris@1 88 <p><code>#include &lt;<a class="el" href="PluginInputDomainAdapter_8h_source.html">vamp-hostsdk/PluginInputDomainAdapter.h</a>&gt;</code></p>
Chris@1 89 <div class="dynheader">
Chris@1 90 Inheritance diagram for Vamp::HostExt::PluginInputDomainAdapter:</div>
Chris@1 91 <div class="dyncontent">
Chris@1 92 <div class="center"><img src="classVamp_1_1HostExt_1_1PluginInputDomainAdapter__inherit__graph.png" border="0" usemap="#Vamp_1_1HostExt_1_1PluginInputDomainAdapter_inherit__map" alt="Inheritance graph"/></div>
Chris@1 93 <map name="Vamp_1_1HostExt_1_1PluginInputDomainAdapter_inherit__map" id="Vamp_1_1HostExt_1_1PluginInputDomainAdapter_inherit__map">
Chris@1 94 <area shape="rect" id="node2" href="classVamp_1_1HostExt_1_1PluginWrapper.html" title="PluginWrapper is a simple base class for adapter plugins." alt="" coords="40,155,224,181"/><area shape="rect" id="node4" href="classVamp_1_1Plugin.html" title="Vamp::Plugin is a base class for plugin instance classes that provide feature extraction from audio o..." alt="" coords="86,81,177,106"/><area shape="rect" id="node6" href="classVamp_1_1PluginBase.html" title="A base class for plugins with optional configurable parameters, programs, etc." alt="" coords="73,6,191,31"/></map>
Chris@1 95 <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
Chris@1 96
Chris@1 97 <p><a href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter-members.html">List of all members.</a></p>
Chris@1 98 <table class="memberdecls">
Chris@1 99 <tr><td colspan="2"><h2><a name="pub-types"></a>
Chris@1 100 Public Types</h2></td></tr>
Chris@3 101 <tr class="memitem:a2518e4922d77bc4e514d84cec9a0b577"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577">ProcessTimestampMethod</a> { <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577afcf39fe57ba29a908d4877c21de145dd">ShiftTimestamp</a>,
Chris@1 102 <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577a0838ff456d829e9096b5d968e6c55152">ShiftData</a>,
Chris@1 103 <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577ab06e8c6824802978d0be4074a556b297">NoShift</a>
Chris@1 104 }</td></tr>
Chris@3 105 <tr class="memdesc:a2518e4922d77bc4e514d84cec9a0b577"><td class="mdescLeft">&#160;</td><td class="mdescRight">ProcessTimestampMethod determines how the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> handles timestamps for the data passed to the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> function of the plugin it wraps, in the case where the plugin is expecting frequency-domain data. <a href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577">More...</a><br/></td></tr>
Chris@3 106 <tr class="memitem:a27e6a7c3f93f1618836792b588b767dc"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dc">WindowType</a> { <br/>
Chris@1 107 &#160;&#160;<a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dca99b08cf7a7f4a1b52a09044ea12c6324">RectangularWindow</a> = 0,
Chris@1 108 <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dca77fd88a7d94fcd9c6c4aef30b86f077d">BartlettWindow</a> = 1,
Chris@1 109 <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dcaae5133bd639336a5c31378f4c2939d42">TriangularWindow</a> = 1,
Chris@1 110 <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dca9d522bff8d5884a8ba57d5a8c7e113c8">HammingWindow</a> = 2,
Chris@1 111 <br/>
Chris@1 112 &#160;&#160;<a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dcacad78947b6c8db20feb5ddf208ac1108">HanningWindow</a> = 3,
Chris@1 113 <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dcadc87b20cfb5f1ddd23ebc281e3e47916">HannWindow</a> = 3,
Chris@1 114 <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dca2e298b1bee28272721953b2921891da6">BlackmanWindow</a> = 4,
Chris@1 115 <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dcaa6a2f46966a46cc7abdf2df74270999e">NuttallWindow</a> = 7,
Chris@1 116 <br/>
Chris@1 117 &#160;&#160;<a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dca7cbf5d8c58f33bcfa28e3a5863d6ac94">BlackmanHarrisWindow</a> = 8
Chris@1 118 <br/>
Chris@1 119 }</td></tr>
Chris@3 120 <tr class="memdesc:a27e6a7c3f93f1618836792b588b767dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">The set of supported window shapes. <a href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dc">More...</a><br/></td></tr>
Chris@3 121 <tr class="memitem:a39cb7649d6dcc20e4cb1640cd55907bc"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#a39cb7649d6dcc20e4cb1640cd55907bc">InputDomain</a> { <a class="el" href="classVamp_1_1Plugin.html#a39cb7649d6dcc20e4cb1640cd55907bcad4a9f31b958a43a9757af7893aa2e7ff">TimeDomain</a>,
Chris@1 122 <a class="el" href="classVamp_1_1Plugin.html#a39cb7649d6dcc20e4cb1640cd55907bcaa30e7877ab33f76acbdca28607e6ab53">FrequencyDomain</a>
Chris@1 123 }</td></tr>
Chris@3 124 <tr class="memitem:a30f531b8fb69fac41a24e3d2a6a08ed9"><td class="memItemLeft" align="right" valign="top">typedef std::vector<br class="typebreak"/>
Chris@1 125 &lt; <a class="el" href="structVamp_1_1Plugin_1_1OutputDescriptor.html">OutputDescriptor</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#a30f531b8fb69fac41a24e3d2a6a08ed9">OutputList</a></td></tr>
Chris@3 126 <tr class="memitem:a0730bc72c87fa02eb8d2854b233f7be1"><td class="memItemLeft" align="right" valign="top">typedef std::vector&lt; <a class="el" href="structVamp_1_1Plugin_1_1Feature.html">Feature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#a0730bc72c87fa02eb8d2854b233f7be1">FeatureList</a></td></tr>
Chris@3 127 <tr class="memitem:a448fb57dc245d47923ec9eeaf9856c5f"><td class="memItemLeft" align="right" valign="top">typedef std::map&lt; int, <br class="typebreak"/>
Chris@1 128 <a class="el" href="classVamp_1_1Plugin.html#a0730bc72c87fa02eb8d2854b233f7be1">FeatureList</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#a448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a></td></tr>
Chris@3 129 <tr class="memitem:a3b6bb4bbd86affe1ca9deceea1aad4f8"><td class="memItemLeft" align="right" valign="top">typedef std::vector<br class="typebreak"/>
Chris@1 130 &lt; <a class="el" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html">ParameterDescriptor</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1PluginBase.html#a3b6bb4bbd86affe1ca9deceea1aad4f8">ParameterList</a></td></tr>
Chris@3 131 <tr class="memitem:a7f66f00437b21e5f694fe02356b12f20"><td class="memItemLeft" align="right" valign="top">typedef std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1PluginBase.html#a7f66f00437b21e5f694fe02356b12f20">ProgramList</a></td></tr>
Chris@1 132 <tr><td colspan="2"><h2><a name="pub-methods"></a>
Chris@1 133 Public Member Functions</h2></td></tr>
Chris@3 134 <tr class="memitem:a878e7275acdb77efc7a802944305039d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a878e7275acdb77efc7a802944305039d">PluginInputDomainAdapter</a> (<a class="el" href="classVamp_1_1Plugin.html">Plugin</a> *plugin)</td></tr>
Chris@3 135 <tr class="memdesc:a878e7275acdb77efc7a802944305039d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> wrapping the given plugin. <a href="#a878e7275acdb77efc7a802944305039d"></a><br/></td></tr>
Chris@3 136 <tr class="memitem:aba2cbfa650d8a7c9181dbdb49b10aad0"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#aba2cbfa650d8a7c9181dbdb49b10aad0">~PluginInputDomainAdapter</a> ()</td></tr>
Chris@3 137 <tr class="memitem:a72d201eca10ec73bf16e07984f58f94c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a72d201eca10ec73bf16e07984f58f94c">initialise</a> (size_t channels, size_t stepSize, size_t blockSize)</td></tr>
Chris@3 138 <tr class="memdesc:a72d201eca10ec73bf16e07984f58f94c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames). <a href="#a72d201eca10ec73bf16e07984f58f94c"></a><br/></td></tr>
Chris@3 139 <tr class="memitem:a984a12b5b4cb0be1e2f7a0aa84106c4c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a984a12b5b4cb0be1e2f7a0aa84106c4c">reset</a> ()</td></tr>
Chris@3 140 <tr class="memdesc:a984a12b5b4cb0be1e2f7a0aa84106c4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the plugin after use, to prepare it for another clean run. <a href="#a984a12b5b4cb0be1e2f7a0aa84106c4c"></a><br/></td></tr>
Chris@3 141 <tr class="memitem:a47ff1ed72889f323da63f8abc9ea581a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVamp_1_1Plugin.html#a39cb7649d6dcc20e4cb1640cd55907bc">InputDomain</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a47ff1ed72889f323da63f8abc9ea581a">getInputDomain</a> () const </td></tr>
Chris@3 142 <tr class="memdesc:a47ff1ed72889f323da63f8abc9ea581a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the plugin's required input domain. <a href="#a47ff1ed72889f323da63f8abc9ea581a"></a><br/></td></tr>
Chris@3 143 <tr class="memitem:ad979af9f1cbf2eeb16f4eaedb4a4f565"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ad979af9f1cbf2eeb16f4eaedb4a4f565">getPreferredStepSize</a> () const </td></tr>
Chris@3 144 <tr class="memdesc:ad979af9f1cbf2eeb16f4eaedb4a4f565"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the preferred step size (window increment -- the distance in sample frames between the start frames of consecutive blocks passed to the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> function) for the plugin. <a href="#ad979af9f1cbf2eeb16f4eaedb4a4f565"></a><br/></td></tr>
Chris@3 145 <tr class="memitem:a4cf40d09d02022b1962ff17bb0324ea5"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a4cf40d09d02022b1962ff17bb0324ea5">getPreferredBlockSize</a> () const </td></tr>
Chris@3 146 <tr class="memdesc:a4cf40d09d02022b1962ff17bb0324ea5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the preferred block size (window size -- the number of sample frames passed in each block to the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> function). <a href="#a4cf40d09d02022b1962ff17bb0324ea5"></a><br/></td></tr>
Chris@3 147 <tr class="memitem:ab36a81ac9a0ded8d83c6b855263c0231"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVamp_1_1Plugin.html#a448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231">process</a> (const float *const *inputBuffers, <a class="el" href="structVamp_1_1RealTime.html">RealTime</a> timestamp)</td></tr>
Chris@3 148 <tr class="memdesc:ab36a81ac9a0ded8d83c6b855263c0231"><td class="mdescLeft">&#160;</td><td class="mdescRight">Process a single block of input data. <a href="#ab36a81ac9a0ded8d83c6b855263c0231"></a><br/></td></tr>
Chris@3 149 <tr class="memitem:a1d7366f8cab39abc01ebfc7bf7ca8089"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a1d7366f8cab39abc01ebfc7bf7ca8089">setProcessTimestampMethod</a> (<a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577">ProcessTimestampMethod</a>)</td></tr>
Chris@3 150 <tr class="memdesc:a1d7366f8cab39abc01ebfc7bf7ca8089"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the method used for timestamp adjustment in plugins taking frequency-domain input. <a href="#a1d7366f8cab39abc01ebfc7bf7ca8089"></a><br/></td></tr>
Chris@3 151 <tr class="memitem:acfc7a9121f678fd085448f68f15c9eae"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577">ProcessTimestampMethod</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#acfc7a9121f678fd085448f68f15c9eae">getProcessTimestampMethod</a> () const </td></tr>
Chris@3 152 <tr class="memdesc:acfc7a9121f678fd085448f68f15c9eae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the method used for timestamp adjustment in plugins taking frequency-domain input. <a href="#acfc7a9121f678fd085448f68f15c9eae"></a><br/></td></tr>
Chris@3 153 <tr class="memitem:ac1ab6af0fcda0a4c3f050c54b2db4769"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structVamp_1_1RealTime.html">RealTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ac1ab6af0fcda0a4c3f050c54b2db4769">getTimestampAdjustment</a> () const </td></tr>
Chris@3 154 <tr class="memdesc:ac1ab6af0fcda0a4c3f050c54b2db4769"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the amount by which the timestamps supplied to <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> are being incremented when they are passed to the plugin's own <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> implementation. <a href="#ac1ab6af0fcda0a4c3f050c54b2db4769"></a><br/></td></tr>
Chris@3 155 <tr class="memitem:ab143065e1a65f1d860cb26b32d5a9c1e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dc">WindowType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab143065e1a65f1d860cb26b32d5a9c1e">getWindowType</a> () const </td></tr>
Chris@3 156 <tr class="memdesc:ab143065e1a65f1d860cb26b32d5a9c1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current window shape. <a href="#ab143065e1a65f1d860cb26b32d5a9c1e"></a><br/></td></tr>
Chris@3 157 <tr class="memitem:a652bf9f25352a4fa89dd80ff816558d4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a652bf9f25352a4fa89dd80ff816558d4">setWindowType</a> (<a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dc">WindowType</a> type)</td></tr>
Chris@3 158 <tr class="memdesc:a652bf9f25352a4fa89dd80ff816558d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the current window shape. <a href="#a652bf9f25352a4fa89dd80ff816558d4"></a><br/></td></tr>
Chris@3 159 <tr class="memitem:a74147fda6b44ff2169bd4a1eea0d46ff"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a74147fda6b44ff2169bd4a1eea0d46ff">getVampApiVersion</a> () const </td></tr>
Chris@3 160 <tr class="memdesc:a74147fda6b44ff2169bd4a1eea0d46ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the <a class="el" href="namespaceVamp.html">Vamp</a> API compatibility level of the plugin. <a href="#a74147fda6b44ff2169bd4a1eea0d46ff"></a><br/></td></tr>
Chris@3 161 <tr class="memitem:a4baa9e48f717c2b3e7f92496aa39d904"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a4baa9e48f717c2b3e7f92496aa39d904">getIdentifier</a> () const </td></tr>
Chris@3 162 <tr class="memdesc:a4baa9e48f717c2b3e7f92496aa39d904"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the computer-usable name of the plugin. <a href="#a4baa9e48f717c2b3e7f92496aa39d904"></a><br/></td></tr>
Chris@3 163 <tr class="memitem:ac70a3265bb25aeb03f6dd8f8a0442088"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ac70a3265bb25aeb03f6dd8f8a0442088">getName</a> () const </td></tr>
Chris@3 164 <tr class="memdesc:ac70a3265bb25aeb03f6dd8f8a0442088"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a human-readable name or title of the plugin. <a href="#ac70a3265bb25aeb03f6dd8f8a0442088"></a><br/></td></tr>
Chris@3 165 <tr class="memitem:ac334f699c0996055942785410d8a065c"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ac334f699c0996055942785410d8a065c">getDescription</a> () const </td></tr>
Chris@3 166 <tr class="memdesc:ac334f699c0996055942785410d8a065c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a human-readable description for the plugin, typically a line of text that may optionally be displayed in addition to the plugin's "name". <a href="#ac334f699c0996055942785410d8a065c"></a><br/></td></tr>
Chris@3 167 <tr class="memitem:a59d5a2298951b317995675e664b1c7bb"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a59d5a2298951b317995675e664b1c7bb">getMaker</a> () const </td></tr>
Chris@3 168 <tr class="memdesc:a59d5a2298951b317995675e664b1c7bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the name of the author or vendor of the plugin in human-readable form. <a href="#a59d5a2298951b317995675e664b1c7bb"></a><br/></td></tr>
Chris@3 169 <tr class="memitem:a47e1acf1696813008324a915c9ba59c5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a47e1acf1696813008324a915c9ba59c5">getPluginVersion</a> () const </td></tr>
Chris@3 170 <tr class="memdesc:a47e1acf1696813008324a915c9ba59c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the version number of the plugin. <a href="#a47e1acf1696813008324a915c9ba59c5"></a><br/></td></tr>
Chris@3 171 <tr class="memitem:ae14f6ecb78be909c4cd5f0cdaed3c566"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ae14f6ecb78be909c4cd5f0cdaed3c566">getCopyright</a> () const </td></tr>
Chris@3 172 <tr class="memdesc:ae14f6ecb78be909c4cd5f0cdaed3c566"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the copyright statement or licensing summary for the plugin. <a href="#ae14f6ecb78be909c4cd5f0cdaed3c566"></a><br/></td></tr>
Chris@3 173 <tr class="memitem:a9be71561265c2e6e43b7feaddaa91f36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVamp_1_1PluginBase.html#a3b6bb4bbd86affe1ca9deceea1aad4f8">ParameterList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a9be71561265c2e6e43b7feaddaa91f36">getParameterDescriptors</a> () const </td></tr>
Chris@3 174 <tr class="memdesc:a9be71561265c2e6e43b7feaddaa91f36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the controllable parameters of this plugin. <a href="#a9be71561265c2e6e43b7feaddaa91f36"></a><br/></td></tr>
Chris@3 175 <tr class="memitem:a034920f56c8d7609a85447c42556048c"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a034920f56c8d7609a85447c42556048c">getParameter</a> (std::string) const </td></tr>
Chris@3 176 <tr class="memdesc:a034920f56c8d7609a85447c42556048c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the value of a named parameter. <a href="#a034920f56c8d7609a85447c42556048c"></a><br/></td></tr>
Chris@3 177 <tr class="memitem:a651b15a5dc4c27942ac0c87c6092bfe5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a651b15a5dc4c27942ac0c87c6092bfe5">setParameter</a> (std::string, float)</td></tr>
Chris@3 178 <tr class="memdesc:a651b15a5dc4c27942ac0c87c6092bfe5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a named parameter. <a href="#a651b15a5dc4c27942ac0c87c6092bfe5"></a><br/></td></tr>
Chris@3 179 <tr class="memitem:a131fbe1df81215020b9aa8cecef4c802"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVamp_1_1PluginBase.html#a7f66f00437b21e5f694fe02356b12f20">ProgramList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a131fbe1df81215020b9aa8cecef4c802">getPrograms</a> () const </td></tr>
Chris@3 180 <tr class="memdesc:a131fbe1df81215020b9aa8cecef4c802"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the program settings available in this plugin. <a href="#a131fbe1df81215020b9aa8cecef4c802"></a><br/></td></tr>
Chris@3 181 <tr class="memitem:a7a312dd42d161064b70afd7ff24c0651"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a7a312dd42d161064b70afd7ff24c0651">getCurrentProgram</a> () const </td></tr>
Chris@3 182 <tr class="memdesc:a7a312dd42d161064b70afd7ff24c0651"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current program. <a href="#a7a312dd42d161064b70afd7ff24c0651"></a><br/></td></tr>
Chris@3 183 <tr class="memitem:a074978333a74fdcf336a8a1d8ea20abf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a074978333a74fdcf336a8a1d8ea20abf">selectProgram</a> (std::string)</td></tr>
Chris@3 184 <tr class="memdesc:a074978333a74fdcf336a8a1d8ea20abf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Select a program. <a href="#a074978333a74fdcf336a8a1d8ea20abf"></a><br/></td></tr>
Chris@3 185 <tr class="memitem:a2b28f1cf37d46a514f1e1411a6037bf8"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a2b28f1cf37d46a514f1e1411a6037bf8">getMinChannelCount</a> () const </td></tr>
Chris@3 186 <tr class="memdesc:a2b28f1cf37d46a514f1e1411a6037bf8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the minimum supported number of input channels. <a href="#a2b28f1cf37d46a514f1e1411a6037bf8"></a><br/></td></tr>
Chris@3 187 <tr class="memitem:a985eb21f1827bfbc3950d6871b107a58"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a985eb21f1827bfbc3950d6871b107a58">getMaxChannelCount</a> () const </td></tr>
Chris@3 188 <tr class="memdesc:a985eb21f1827bfbc3950d6871b107a58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the maximum supported number of input channels. <a href="#a985eb21f1827bfbc3950d6871b107a58"></a><br/></td></tr>
Chris@3 189 <tr class="memitem:a5a9411305f713b4c9827844b89acd270"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVamp_1_1Plugin.html#a30f531b8fb69fac41a24e3d2a6a08ed9">OutputList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a5a9411305f713b4c9827844b89acd270">getOutputDescriptors</a> () const </td></tr>
Chris@3 190 <tr class="memdesc:a5a9411305f713b4c9827844b89acd270"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the outputs of this plugin. <a href="#a5a9411305f713b4c9827844b89acd270"></a><br/></td></tr>
Chris@3 191 <tr class="memitem:a2bc8c0992e64f06991fb7cf89f99857e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVamp_1_1Plugin.html#a448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a2bc8c0992e64f06991fb7cf89f99857e">getRemainingFeatures</a> ()</td></tr>
Chris@3 192 <tr class="memdesc:a2bc8c0992e64f06991fb7cf89f99857e"><td class="mdescLeft">&#160;</td><td class="mdescRight">After all blocks have been processed, calculate and return any remaining features derived from the complete input. <a href="#a2bc8c0992e64f06991fb7cf89f99857e"></a><br/></td></tr>
Chris@3 193 <tr class="memitem:a653d0308e8e34881a8749b7631d00f05"><td class="memTemplParams" colspan="2">template&lt;typename WrapperType &gt; </td></tr>
Chris@3 194 <tr class="memitem:a653d0308e8e34881a8749b7631d00f05"><td class="memTemplItemLeft" align="right" valign="top">WrapperType *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a653d0308e8e34881a8749b7631d00f05">getWrapper</a> ()</td></tr>
Chris@3 195 <tr class="memdesc:a653d0308e8e34881a8749b7631d00f05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a pointer to the plugin wrapper of type WrapperType surrounding this wrapper's plugin, if present. <a href="#a653d0308e8e34881a8749b7631d00f05"></a><br/></td></tr>
Chris@3 196 <tr class="memitem:abe13b3997a69fbcc09e2213faa352f91"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#abe13b3997a69fbcc09e2213faa352f91">getType</a> () const </td></tr>
Chris@3 197 <tr class="memdesc:abe13b3997a69fbcc09e2213faa352f91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to distinguish between <a class="el" href="classVamp_1_1Plugin.html" title="Vamp::Plugin is a base class for plugin instance classes that provide feature extraction from audio o...">Vamp::Plugin</a> and other potential sibling subclasses of <a class="el" href="classVamp_1_1PluginBase.html" title="A base class for plugins with optional configurable parameters, programs, etc.">PluginBase</a>. <a href="#abe13b3997a69fbcc09e2213faa352f91"></a><br/></td></tr>
Chris@1 198 <tr><td colspan="2"><h2><a name="pro-attribs"></a>
Chris@1 199 Protected Attributes</h2></td></tr>
Chris@3 200 <tr class="memitem:a9fa8a6b8a4e41b6e3f2fabc0d23678cc"><td class="memItemLeft" align="right" valign="top">Impl *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a9fa8a6b8a4e41b6e3f2fabc0d23678cc">m_impl</a></td></tr>
Chris@3 201 <tr class="memitem:ab4e40ecd98b445e1a2aa9e7baa280ea2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classVamp_1_1Plugin.html">Plugin</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ab4e40ecd98b445e1a2aa9e7baa280ea2">m_plugin</a></td></tr>
Chris@3 202 <tr class="memitem:a59b9dd82a4f4eb946cd0474cc81abc23"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVamp_1_1Plugin.html#a59b9dd82a4f4eb946cd0474cc81abc23">m_inputSampleRate</a></td></tr>
Chris@1 203 </table>
Chris@1 204 <hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
Chris@1 205 <div class="textblock"><p><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> is a <a class="el" href="namespaceVamp.html">Vamp</a> plugin adapter that converts time-domain input into frequency-domain input for plugins that need it. </p>
Chris@1 206 <p>This permits a host to use time- and frequency-domain plugins interchangeably without needing to handle the conversion itself.</p>
Chris@3 207 <p>This adapter uses a basic windowed <a class="el" href="classVamp_1_1FFT.html" title="A simple FFT implementation provided for convenience of plugin authors.">FFT</a> (using Hann window by default) that supports power-of-two block sizes only. If a frequency domain plugin requests a non-power-of-two blocksize, the adapter will adjust it to a nearby power of two instead. Thus, <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a4cf40d09d02022b1962ff17bb0324ea5" title="Get the preferred block size (window size -- the number of sample frames passed in each block to the ...">getPreferredBlockSize()</a> will always return a power of two if the wrapped plugin is a frequency domain one. If the plugin doesn't accept the adjusted power of two block size, <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a72d201eca10ec73bf16e07984f58f94c" title="Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames).">initialise()</a> will fail.</p>
Chris@1 208 <p>The adapter provides no way for the host to discover whether the underlying plugin is actually a time or frequency domain plugin (except that if the preferred block size is not a power of two, it must be a time domain plugin).</p>
Chris@3 209 <p>The <a class="el" href="classVamp_1_1FFT.html" title="A simple FFT implementation provided for convenience of plugin authors.">FFT</a> implementation is simple and self-contained, but unlikely to be the fastest available: a host can usually do better if it cares enough.</p>
Chris@3 210 <p>The window shape for the <a class="el" href="classVamp_1_1FFT.html" title="A simple FFT implementation provided for convenience of plugin authors.">FFT</a> frame can be set using setWindowType and the current shape retrieved using getWindowType. (This was added in v2.3 of the SDK.)</p>
Chris@1 211 <p>In every respect other than its input domain handling, the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> behaves identically to the plugin that it wraps. The wrapped plugin will be deleted when the wrapper is deleted.</p>
Chris@3 212 <dl class="section note"><dt>Note:</dt><dd>This class was introduced in version 1.1 of the <a class="el" href="namespaceVamp.html">Vamp</a> plugin SDK. </dd></dl>
Chris@1 213
Chris@1 214 <p>Definition at line <a class="el" href="PluginInputDomainAdapter_8h_source.html#l00087">87</a> of file <a class="el" href="PluginInputDomainAdapter_8h_source.html">PluginInputDomainAdapter.h</a>.</p>
Chris@1 215 </div><hr/><h2>Member Typedef Documentation</h2>
Chris@3 216 <a class="anchor" id="a30f531b8fb69fac41a24e3d2a6a08ed9"></a>
Chris@1 217 <div class="memitem">
Chris@1 218 <div class="memproto">
Chris@1 219 <table class="memname">
Chris@1 220 <tr>
Chris@1 221 <td class="memname">typedef std::vector&lt;<a class="el" href="structVamp_1_1Plugin_1_1OutputDescriptor.html">OutputDescriptor</a>&gt; <a class="el" href="classVamp_1_1Plugin.html#a30f531b8fb69fac41a24e3d2a6a08ed9">Vamp::Plugin::OutputList</a><code> [inherited]</code></td>
Chris@1 222 </tr>
Chris@1 223 </table>
Chris@1 224 </div>
Chris@1 225 <div class="memdoc">
Chris@1 226
Chris@1 227 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h_source.html#l00327">327</a> of file <a class="el" href="vamp-sdk_2Plugin_8h_source.html">vamp-sdk/Plugin.h</a>.</p>
Chris@1 228
Chris@1 229 </div>
Chris@1 230 </div>
Chris@3 231 <a class="anchor" id="a0730bc72c87fa02eb8d2854b233f7be1"></a>
Chris@1 232 <div class="memitem">
Chris@1 233 <div class="memproto">
Chris@1 234 <table class="memname">
Chris@1 235 <tr>
Chris@1 236 <td class="memname">typedef std::vector&lt;<a class="el" href="structVamp_1_1Plugin_1_1Feature.html">Feature</a>&gt; <a class="el" href="classVamp_1_1Plugin.html#a0730bc72c87fa02eb8d2854b233f7be1">Vamp::Plugin::FeatureList</a><code> [inherited]</code></td>
Chris@1 237 </tr>
Chris@1 238 </table>
Chris@1 239 </div>
Chris@1 240 <div class="memdoc">
Chris@1 241
Chris@1 242 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h_source.html#l00385">385</a> of file <a class="el" href="vamp-sdk_2Plugin_8h_source.html">vamp-sdk/Plugin.h</a>.</p>
Chris@1 243
Chris@1 244 </div>
Chris@1 245 </div>
Chris@3 246 <a class="anchor" id="a448fb57dc245d47923ec9eeaf9856c5f"></a>
Chris@1 247 <div class="memitem">
Chris@1 248 <div class="memproto">
Chris@1 249 <table class="memname">
Chris@1 250 <tr>
Chris@1 251 <td class="memname">typedef std::map&lt;int, <a class="el" href="classVamp_1_1Plugin.html#a0730bc72c87fa02eb8d2854b233f7be1">FeatureList</a>&gt; <a class="el" href="classVamp_1_1Plugin.html#a448fb57dc245d47923ec9eeaf9856c5f">Vamp::Plugin::FeatureSet</a><code> [inherited]</code></td>
Chris@1 252 </tr>
Chris@1 253 </table>
Chris@1 254 </div>
Chris@1 255 <div class="memdoc">
Chris@1 256
Chris@1 257 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h_source.html#l00387">387</a> of file <a class="el" href="vamp-sdk_2Plugin_8h_source.html">vamp-sdk/Plugin.h</a>.</p>
Chris@1 258
Chris@1 259 </div>
Chris@1 260 </div>
Chris@3 261 <a class="anchor" id="a3b6bb4bbd86affe1ca9deceea1aad4f8"></a>
Chris@1 262 <div class="memitem">
Chris@1 263 <div class="memproto">
Chris@1 264 <table class="memname">
Chris@1 265 <tr>
Chris@1 266 <td class="memname">typedef std::vector&lt;<a class="el" href="structVamp_1_1PluginBase_1_1ParameterDescriptor.html">ParameterDescriptor</a>&gt; <a class="el" href="classVamp_1_1PluginBase.html#a3b6bb4bbd86affe1ca9deceea1aad4f8">Vamp::PluginBase::ParameterList</a><code> [inherited]</code></td>
Chris@1 267 </tr>
Chris@1 268 </table>
Chris@1 269 </div>
Chris@1 270 <div class="memdoc">
Chris@1 271
Chris@3 272 <p>Definition at line <a class="el" href="vamp-sdk_2PluginBase_8h_source.html#l00199">199</a> of file <a class="el" href="vamp-sdk_2PluginBase_8h_source.html">vamp-sdk/PluginBase.h</a>.</p>
Chris@1 273
Chris@1 274 </div>
Chris@1 275 </div>
Chris@3 276 <a class="anchor" id="a7f66f00437b21e5f694fe02356b12f20"></a>
Chris@1 277 <div class="memitem">
Chris@1 278 <div class="memproto">
Chris@1 279 <table class="memname">
Chris@1 280 <tr>
Chris@1 281 <td class="memname">typedef std::vector&lt;std::string&gt; <a class="el" href="classVamp_1_1PluginBase.html#a7f66f00437b21e5f694fe02356b12f20">Vamp::PluginBase::ProgramList</a><code> [inherited]</code></td>
Chris@1 282 </tr>
Chris@1 283 </table>
Chris@1 284 </div>
Chris@1 285 <div class="memdoc">
Chris@1 286
Chris@3 287 <p>Definition at line <a class="el" href="vamp-sdk_2PluginBase_8h_source.html#l00221">221</a> of file <a class="el" href="vamp-sdk_2PluginBase_8h_source.html">vamp-sdk/PluginBase.h</a>.</p>
Chris@1 288
Chris@1 289 </div>
Chris@1 290 </div>
Chris@1 291 <hr/><h2>Member Enumeration Documentation</h2>
Chris@3 292 <a class="anchor" id="a2518e4922d77bc4e514d84cec9a0b577"></a>
Chris@1 293 <div class="memitem">
Chris@1 294 <div class="memproto">
Chris@1 295 <table class="memname">
Chris@1 296 <tr>
Chris@1 297 <td class="memname">enum <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577">Vamp::HostExt::PluginInputDomainAdapter::ProcessTimestampMethod</a></td>
Chris@1 298 </tr>
Chris@1 299 </table>
Chris@1 300 </div>
Chris@1 301 <div class="memdoc">
Chris@1 302
Chris@1 303 <p>ProcessTimestampMethod determines how the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> handles timestamps for the data passed to the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> function of the plugin it wraps, in the case where the plugin is expecting frequency-domain data. </p>
Chris@1 304 <p>The <a class="el" href="namespaceVamp.html">Vamp</a> specification requires that the timestamp passed to the plugin for frequency-domain input should be that of the centre of the processing block, rather than the start as is the case for time-domain input.</p>
Chris@1 305 <p>Since <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> aims to be transparent in use, it needs to handle this timestamp adjustment itself. However, some control is available over the method used for adjustment, by means of the ProcessTimestampMethod setting.</p>
Chris@1 306 <p>If ProcessTimestampMethod is set to ShiftTimestamp (the default), then the data passed to the wrapped plugin will be calculated from the same input data block as passed to the wrapper, but the timestamp passed to the plugin will be advanced by half of the window size.</p>
Chris@1 307 <p>If ProcessTimestampMethod is set to ShiftData, then the timestamp passed to the wrapped plugin will be the same as that passed to the process call of the wrapper, but the data block used to calculate the input will be shifted back (earlier) by half of the window size, with half a block of zero padding at the start of the first process call. This has the advantage of preserving the first half block of audio without any deterioration from window shaping.</p>
Chris@1 308 <p>If ProcessTimestampMethod is set to NoShift, then no adjustment will be made and the timestamps will be incorrect. </p>
Chris@1 309 <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
Chris@3 310 <tr><td valign="top"><em><a class="anchor" id="a2518e4922d77bc4e514d84cec9a0b577afcf39fe57ba29a908d4877c21de145dd"></a>ShiftTimestamp</em>&nbsp;</td><td>
Chris@1 311 </td></tr>
Chris@3 312 <tr><td valign="top"><em><a class="anchor" id="a2518e4922d77bc4e514d84cec9a0b577a0838ff456d829e9096b5d968e6c55152"></a>ShiftData</em>&nbsp;</td><td>
Chris@1 313 </td></tr>
Chris@3 314 <tr><td valign="top"><em><a class="anchor" id="a2518e4922d77bc4e514d84cec9a0b577ab06e8c6824802978d0be4074a556b297"></a>NoShift</em>&nbsp;</td><td>
Chris@1 315 </td></tr>
Chris@1 316 </table>
Chris@1 317 </dd>
Chris@1 318 </dl>
Chris@1 319
Chris@1 320 <p>Definition at line <a class="el" href="PluginInputDomainAdapter_8h_source.html#l00142">142</a> of file <a class="el" href="PluginInputDomainAdapter_8h_source.html">PluginInputDomainAdapter.h</a>.</p>
Chris@1 321
Chris@1 322 </div>
Chris@1 323 </div>
Chris@3 324 <a class="anchor" id="a27e6a7c3f93f1618836792b588b767dc"></a>
Chris@1 325 <div class="memitem">
Chris@1 326 <div class="memproto">
Chris@1 327 <table class="memname">
Chris@1 328 <tr>
Chris@1 329 <td class="memname">enum <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dc">Vamp::HostExt::PluginInputDomainAdapter::WindowType</a></td>
Chris@1 330 </tr>
Chris@1 331 </table>
Chris@1 332 </div>
Chris@1 333 <div class="memdoc">
Chris@1 334
Chris@1 335 <p>The set of supported window shapes. </p>
Chris@1 336 <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
Chris@3 337 <tr><td valign="top"><em><a class="anchor" id="a27e6a7c3f93f1618836792b588b767dca99b08cf7a7f4a1b52a09044ea12c6324"></a>RectangularWindow</em>&nbsp;</td><td>
Chris@1 338 </td></tr>
Chris@3 339 <tr><td valign="top"><em><a class="anchor" id="a27e6a7c3f93f1618836792b588b767dca77fd88a7d94fcd9c6c4aef30b86f077d"></a>BartlettWindow</em>&nbsp;</td><td>
Chris@1 340 </td></tr>
Chris@3 341 <tr><td valign="top"><em><a class="anchor" id="a27e6a7c3f93f1618836792b588b767dcaae5133bd639336a5c31378f4c2939d42"></a>TriangularWindow</em>&nbsp;</td><td>
Chris@1 342 <p>synonym for RectangularWindow </p>
Chris@1 343 </td></tr>
Chris@3 344 <tr><td valign="top"><em><a class="anchor" id="a27e6a7c3f93f1618836792b588b767dca9d522bff8d5884a8ba57d5a8c7e113c8"></a>HammingWindow</em>&nbsp;</td><td>
Chris@1 345 <p>synonym for BartlettWindow </p>
Chris@1 346 </td></tr>
Chris@3 347 <tr><td valign="top"><em><a class="anchor" id="a27e6a7c3f93f1618836792b588b767dcacad78947b6c8db20feb5ddf208ac1108"></a>HanningWindow</em>&nbsp;</td><td>
Chris@1 348 </td></tr>
Chris@3 349 <tr><td valign="top"><em><a class="anchor" id="a27e6a7c3f93f1618836792b588b767dcadc87b20cfb5f1ddd23ebc281e3e47916"></a>HannWindow</em>&nbsp;</td><td>
Chris@1 350 <p>synonym for HannWindow </p>
Chris@1 351 </td></tr>
Chris@3 352 <tr><td valign="top"><em><a class="anchor" id="a27e6a7c3f93f1618836792b588b767dca2e298b1bee28272721953b2921891da6"></a>BlackmanWindow</em>&nbsp;</td><td>
Chris@1 353 <p>synonym for HanningWindow </p>
Chris@1 354 </td></tr>
Chris@3 355 <tr><td valign="top"><em><a class="anchor" id="a27e6a7c3f93f1618836792b588b767dcaa6a2f46966a46cc7abdf2df74270999e"></a>NuttallWindow</em>&nbsp;</td><td>
Chris@1 356 </td></tr>
Chris@3 357 <tr><td valign="top"><em><a class="anchor" id="a27e6a7c3f93f1618836792b588b767dca7cbf5d8c58f33bcfa28e3a5863d6ac94"></a>BlackmanHarrisWindow</em>&nbsp;</td><td>
Chris@1 358 </td></tr>
Chris@1 359 </table>
Chris@1 360 </dd>
Chris@1 361 </dl>
Chris@1 362
Chris@1 363 <p>Definition at line <a class="el" href="PluginInputDomainAdapter_8h_source.html#l00195">195</a> of file <a class="el" href="PluginInputDomainAdapter_8h_source.html">PluginInputDomainAdapter.h</a>.</p>
Chris@1 364
Chris@1 365 </div>
Chris@1 366 </div>
Chris@3 367 <a class="anchor" id="a39cb7649d6dcc20e4cb1640cd55907bc"></a>
Chris@1 368 <div class="memitem">
Chris@1 369 <div class="memproto">
Chris@1 370 <table class="memname">
Chris@1 371 <tr>
Chris@1 372 <td class="memname">enum <a class="el" href="classVamp_1_1Plugin.html#a39cb7649d6dcc20e4cb1640cd55907bc">Vamp::Plugin::InputDomain</a><code> [inherited]</code></td>
Chris@1 373 </tr>
Chris@1 374 </table>
Chris@1 375 </div>
Chris@1 376 <div class="memdoc">
Chris@1 377 <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
Chris@3 378 <tr><td valign="top"><em><a class="anchor" id="a39cb7649d6dcc20e4cb1640cd55907bcad4a9f31b958a43a9757af7893aa2e7ff"></a>TimeDomain</em>&nbsp;</td><td>
Chris@1 379 </td></tr>
Chris@3 380 <tr><td valign="top"><em><a class="anchor" id="a39cb7649d6dcc20e4cb1640cd55907bcaa30e7877ab33f76acbdca28607e6ab53"></a>FrequencyDomain</em>&nbsp;</td><td>
Chris@1 381 </td></tr>
Chris@1 382 </table>
Chris@1 383 </dd>
Chris@1 384 </dl>
Chris@1 385
Chris@1 386 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h_source.html#l00152">152</a> of file <a class="el" href="vamp-sdk_2Plugin_8h_source.html">vamp-sdk/Plugin.h</a>.</p>
Chris@1 387
Chris@1 388 </div>
Chris@1 389 </div>
Chris@1 390 <hr/><h2>Constructor &amp; Destructor Documentation</h2>
Chris@3 391 <a class="anchor" id="a878e7275acdb77efc7a802944305039d"></a>
Chris@1 392 <div class="memitem">
Chris@1 393 <div class="memproto">
Chris@1 394 <table class="memname">
Chris@1 395 <tr>
Chris@3 396 <td class="memname"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a878e7275acdb77efc7a802944305039d">Vamp::HostExt::PluginInputDomainAdapter::PluginInputDomainAdapter</a> </td>
Chris@1 397 <td>(</td>
Chris@1 398 <td class="paramtype"><a class="el" href="classVamp_1_1Plugin.html">Plugin</a> *&#160;</td>
Chris@1 399 <td class="paramname"><em>plugin</em></td><td>)</td>
Chris@1 400 <td></td>
Chris@1 401 </tr>
Chris@1 402 </table>
Chris@1 403 </div>
Chris@1 404 <div class="memdoc">
Chris@1 405
Chris@1 406 <p>Construct a <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> wrapping the given plugin. </p>
Chris@1 407 <p>The adapter takes ownership of the plugin, which will be deleted when the adapter is deleted. </p>
Chris@1 408
Chris@1 409 </div>
Chris@1 410 </div>
Chris@3 411 <a class="anchor" id="aba2cbfa650d8a7c9181dbdb49b10aad0"></a>
Chris@1 412 <div class="memitem">
Chris@1 413 <div class="memproto">
Chris@1 414 <table class="memname">
Chris@1 415 <tr>
Chris@3 416 <td class="memname">virtual <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#aba2cbfa650d8a7c9181dbdb49b10aad0">Vamp::HostExt::PluginInputDomainAdapter::~PluginInputDomainAdapter</a> </td>
Chris@1 417 <td>(</td>
Chris@1 418 <td class="paramname"></td><td>)</td>
Chris@1 419 <td><code> [virtual]</code></td>
Chris@1 420 </tr>
Chris@1 421 </table>
Chris@1 422 </div>
Chris@1 423 <div class="memdoc">
Chris@1 424
Chris@1 425 </div>
Chris@1 426 </div>
Chris@1 427 <hr/><h2>Member Function Documentation</h2>
Chris@3 428 <a class="anchor" id="a72d201eca10ec73bf16e07984f58f94c"></a>
Chris@1 429 <div class="memitem">
Chris@1 430 <div class="memproto">
Chris@1 431 <table class="memname">
Chris@1 432 <tr>
Chris@3 433 <td class="memname">bool <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a72d201eca10ec73bf16e07984f58f94c">Vamp::HostExt::PluginInputDomainAdapter::initialise</a> </td>
Chris@1 434 <td>(</td>
Chris@1 435 <td class="paramtype">size_t&#160;</td>
Chris@1 436 <td class="paramname"><em>inputChannels</em>, </td>
Chris@1 437 </tr>
Chris@1 438 <tr>
Chris@1 439 <td class="paramkey"></td>
Chris@1 440 <td></td>
Chris@1 441 <td class="paramtype">size_t&#160;</td>
Chris@1 442 <td class="paramname"><em>stepSize</em>, </td>
Chris@1 443 </tr>
Chris@1 444 <tr>
Chris@1 445 <td class="paramkey"></td>
Chris@1 446 <td></td>
Chris@1 447 <td class="paramtype">size_t&#160;</td>
Chris@1 448 <td class="paramname"><em>blockSize</em>&#160;</td>
Chris@1 449 </tr>
Chris@1 450 <tr>
Chris@1 451 <td></td>
Chris@1 452 <td>)</td>
Chris@1 453 <td></td><td><code> [virtual]</code></td>
Chris@1 454 </tr>
Chris@1 455 </table>
Chris@1 456 </div>
Chris@1 457 <div class="memdoc">
Chris@1 458
Chris@1 459 <p>Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames). </p>
Chris@1 460 <p>The input sample rate should have been already specified at construction time.</p>
Chris@1 461 <p>Return true for successful initialisation, false if the number of input channels, step size and/or block size cannot be supported. </p>
Chris@1 462
Chris@1 463 <p>Reimplemented from <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#aa5a1f8290d8e9a315695584dcb3ad137">Vamp::HostExt::PluginWrapper</a>.</p>
Chris@1 464
Chris@1 465 </div>
Chris@1 466 </div>
Chris@3 467 <a class="anchor" id="a984a12b5b4cb0be1e2f7a0aa84106c4c"></a>
Chris@1 468 <div class="memitem">
Chris@1 469 <div class="memproto">
Chris@1 470 <table class="memname">
Chris@1 471 <tr>
Chris@3 472 <td class="memname">void <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a984a12b5b4cb0be1e2f7a0aa84106c4c">Vamp::HostExt::PluginInputDomainAdapter::reset</a> </td>
Chris@1 473 <td>(</td>
Chris@1 474 <td class="paramname"></td><td>)</td>
Chris@1 475 <td><code> [virtual]</code></td>
Chris@1 476 </tr>
Chris@1 477 </table>
Chris@1 478 </div>
Chris@1 479 <div class="memdoc">
Chris@1 480
Chris@1 481 <p>Reset the plugin after use, to prepare it for another clean run. </p>
Chris@1 482 <p>Not called for the first initialisation (i.e. initialise must also do a reset). </p>
Chris@1 483
Chris@1 484 <p>Reimplemented from <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ad19cc0614ba41cdc26ef3394c5146fe6">Vamp::HostExt::PluginWrapper</a>.</p>
Chris@1 485
Chris@1 486 </div>
Chris@1 487 </div>
Chris@3 488 <a class="anchor" id="a47ff1ed72889f323da63f8abc9ea581a"></a>
Chris@1 489 <div class="memitem">
Chris@1 490 <div class="memproto">
Chris@1 491 <table class="memname">
Chris@1 492 <tr>
Chris@3 493 <td class="memname"><a class="el" href="classVamp_1_1Plugin.html#a39cb7649d6dcc20e4cb1640cd55907bc">InputDomain</a> <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a47ff1ed72889f323da63f8abc9ea581a">Vamp::HostExt::PluginInputDomainAdapter::getInputDomain</a> </td>
Chris@1 494 <td>(</td>
Chris@1 495 <td class="paramname"></td><td>)</td>
Chris@1 496 <td> const<code> [virtual]</code></td>
Chris@1 497 </tr>
Chris@1 498 </table>
Chris@1 499 </div>
Chris@1 500 <div class="memdoc">
Chris@1 501
Chris@1 502 <p>Get the plugin's required input domain. </p>
Chris@1 503 <p>If this is TimeDomain, the samples provided to the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> function (below) will be in the time domain, as for a traditional audio processing plugin.</p>
Chris@3 504 <p>If this is FrequencyDomain, the host will carry out a windowed <a class="el" href="classVamp_1_1FFT.html" title="A simple FFT implementation provided for convenience of plugin authors.">FFT</a> of size equal to the negotiated block size on the data before passing the frequency bin data in to <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a>. The input data for the <a class="el" href="classVamp_1_1FFT.html" title="A simple FFT implementation provided for convenience of plugin authors.">FFT</a> will be rotated so as to place the origin in the centre of the block. The plugin does not get to choose the window type -- the host will either let the user do so, or will use a Hanning window. </p>
Chris@1 505
Chris@1 506 <p>Reimplemented from <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ae203faf8384c9e1fddc381409aa8a214">Vamp::HostExt::PluginWrapper</a>.</p>
Chris@1 507
Chris@1 508 </div>
Chris@1 509 </div>
Chris@3 510 <a class="anchor" id="ad979af9f1cbf2eeb16f4eaedb4a4f565"></a>
Chris@1 511 <div class="memitem">
Chris@1 512 <div class="memproto">
Chris@1 513 <table class="memname">
Chris@1 514 <tr>
Chris@3 515 <td class="memname">size_t <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ad979af9f1cbf2eeb16f4eaedb4a4f565">Vamp::HostExt::PluginInputDomainAdapter::getPreferredStepSize</a> </td>
Chris@1 516 <td>(</td>
Chris@1 517 <td class="paramname"></td><td>)</td>
Chris@1 518 <td> const<code> [virtual]</code></td>
Chris@1 519 </tr>
Chris@1 520 </table>
Chris@1 521 </div>
Chris@1 522 <div class="memdoc">
Chris@1 523
Chris@1 524 <p>Get the preferred step size (window increment -- the distance in sample frames between the start frames of consecutive blocks passed to the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> function) for the plugin. </p>
Chris@1 525 <p>This should be called before <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a72d201eca10ec73bf16e07984f58f94c" title="Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames).">initialise()</a>.</p>
Chris@1 526 <p>A plugin may return 0 if it has no particular interest in the step size. In this case, the host should make the step size equal to the block size if the plugin is accepting input in the time domain. If the plugin is accepting input in the frequency domain, the host may use any step size. The final step size will be set in the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a72d201eca10ec73bf16e07984f58f94c" title="Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames).">initialise()</a> call. </p>
Chris@1 527
Chris@1 528 <p>Reimplemented from <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a0137d93d7019bacc31104836fb4d352e">Vamp::HostExt::PluginWrapper</a>.</p>
Chris@1 529
Chris@1 530 </div>
Chris@1 531 </div>
Chris@3 532 <a class="anchor" id="a4cf40d09d02022b1962ff17bb0324ea5"></a>
Chris@1 533 <div class="memitem">
Chris@1 534 <div class="memproto">
Chris@1 535 <table class="memname">
Chris@1 536 <tr>
Chris@3 537 <td class="memname">size_t <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a4cf40d09d02022b1962ff17bb0324ea5">Vamp::HostExt::PluginInputDomainAdapter::getPreferredBlockSize</a> </td>
Chris@1 538 <td>(</td>
Chris@1 539 <td class="paramname"></td><td>)</td>
Chris@1 540 <td> const<code> [virtual]</code></td>
Chris@1 541 </tr>
Chris@1 542 </table>
Chris@1 543 </div>
Chris@1 544 <div class="memdoc">
Chris@1 545
Chris@1 546 <p>Get the preferred block size (window size -- the number of sample frames passed in each block to the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> function). </p>
Chris@1 547 <p>This should be called before <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a72d201eca10ec73bf16e07984f58f94c" title="Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames).">initialise()</a>.</p>
Chris@1 548 <p>A plugin that can handle any block size may return 0. The final block size will be set in the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a72d201eca10ec73bf16e07984f58f94c" title="Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames).">initialise()</a> call. </p>
Chris@1 549
Chris@1 550 <p>Reimplemented from <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a2c62a656313a819650656643a867ad01">Vamp::HostExt::PluginWrapper</a>.</p>
Chris@1 551
Chris@1 552 </div>
Chris@1 553 </div>
Chris@3 554 <a class="anchor" id="ab36a81ac9a0ded8d83c6b855263c0231"></a>
Chris@1 555 <div class="memitem">
Chris@1 556 <div class="memproto">
Chris@1 557 <table class="memname">
Chris@1 558 <tr>
Chris@3 559 <td class="memname"><a class="el" href="classVamp_1_1Plugin.html#a448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a> <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231">Vamp::HostExt::PluginInputDomainAdapter::process</a> </td>
Chris@1 560 <td>(</td>
Chris@1 561 <td class="paramtype">const float *const *&#160;</td>
Chris@1 562 <td class="paramname"><em>inputBuffers</em>, </td>
Chris@1 563 </tr>
Chris@1 564 <tr>
Chris@1 565 <td class="paramkey"></td>
Chris@1 566 <td></td>
Chris@1 567 <td class="paramtype"><a class="el" href="structVamp_1_1RealTime.html">RealTime</a>&#160;</td>
Chris@1 568 <td class="paramname"><em>timestamp</em>&#160;</td>
Chris@1 569 </tr>
Chris@1 570 <tr>
Chris@1 571 <td></td>
Chris@1 572 <td>)</td>
Chris@1 573 <td></td><td><code> [virtual]</code></td>
Chris@1 574 </tr>
Chris@1 575 </table>
Chris@1 576 </div>
Chris@1 577 <div class="memdoc">
Chris@1 578
Chris@1 579 <p>Process a single block of input data. </p>
Chris@1 580 <p>If the plugin's inputDomain is TimeDomain, inputBuffers will point to one array of floats per input channel, and each of these arrays will contain blockSize consecutive audio samples (the host will zero-pad as necessary). The timestamp in this case will be the real time in seconds of the start of the supplied block of samples.</p>
Chris@3 581 <p>If the plugin's inputDomain is FrequencyDomain, inputBuffers will point to one array of floats per input channel, and each of these arrays will contain blockSize/2+1 consecutive pairs of real and imaginary component floats corresponding to bins 0..(blockSize/2) of the <a class="el" href="classVamp_1_1FFT.html" title="A simple FFT implementation provided for convenience of plugin authors.">FFT</a> output. That is, bin 0 (the first pair of floats) contains the DC output, up to bin blockSize/2 which contains the Nyquist-frequency output. There will therefore be blockSize+2 floats per channel in total. The timestamp will be the real time in seconds of the centre of the <a class="el" href="classVamp_1_1FFT.html" title="A simple FFT implementation provided for convenience of plugin authors.">FFT</a> input window (i.e. the very first block passed to process might contain the <a class="el" href="classVamp_1_1FFT.html" title="A simple FFT implementation provided for convenience of plugin authors.">FFT</a> of half a block of zero samples and the first half-block of the actual data, with a timestamp of zero).</p>
Chris@1 582 <p>Return any features that have become available after this process call. (These do not necessarily have to fall within the process block, except for OneSamplePerStep outputs.) </p>
Chris@1 583
Chris@1 584 <p>Reimplemented from <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a6bd72d6dfb3047524dbe8ae3294527cf">Vamp::HostExt::PluginWrapper</a>.</p>
Chris@1 585
Chris@1 586 </div>
Chris@1 587 </div>
Chris@3 588 <a class="anchor" id="a1d7366f8cab39abc01ebfc7bf7ca8089"></a>
Chris@1 589 <div class="memitem">
Chris@1 590 <div class="memproto">
Chris@1 591 <table class="memname">
Chris@1 592 <tr>
Chris@3 593 <td class="memname">void <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a1d7366f8cab39abc01ebfc7bf7ca8089">Vamp::HostExt::PluginInputDomainAdapter::setProcessTimestampMethod</a> </td>
Chris@1 594 <td>(</td>
Chris@1 595 <td class="paramtype"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577">ProcessTimestampMethod</a>&#160;</td>
Chris@1 596 <td class="paramname"></td><td>)</td>
Chris@1 597 <td></td>
Chris@1 598 </tr>
Chris@1 599 </table>
Chris@1 600 </div>
Chris@1 601 <div class="memdoc">
Chris@1 602
Chris@1 603 <p>Set the method used for timestamp adjustment in plugins taking frequency-domain input. </p>
Chris@1 604 <p>See the ProcessTimestampMethod documentation for details.</p>
Chris@1 605 <p>This function must be called before the first call to <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a>. </p>
Chris@1 606
Chris@1 607 </div>
Chris@1 608 </div>
Chris@3 609 <a class="anchor" id="acfc7a9121f678fd085448f68f15c9eae"></a>
Chris@1 610 <div class="memitem">
Chris@1 611 <div class="memproto">
Chris@1 612 <table class="memname">
Chris@1 613 <tr>
Chris@3 614 <td class="memname"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a2518e4922d77bc4e514d84cec9a0b577">ProcessTimestampMethod</a> <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#acfc7a9121f678fd085448f68f15c9eae">Vamp::HostExt::PluginInputDomainAdapter::getProcessTimestampMethod</a> </td>
Chris@1 615 <td>(</td>
Chris@1 616 <td class="paramname"></td><td>)</td>
Chris@1 617 <td> const</td>
Chris@1 618 </tr>
Chris@1 619 </table>
Chris@1 620 </div>
Chris@1 621 <div class="memdoc">
Chris@1 622
Chris@1 623 <p>Retrieve the method used for timestamp adjustment in plugins taking frequency-domain input. </p>
Chris@1 624 <p>See the ProcessTimestampMethod documentation for details. </p>
Chris@1 625
Chris@1 626 </div>
Chris@1 627 </div>
Chris@3 628 <a class="anchor" id="ac1ab6af0fcda0a4c3f050c54b2db4769"></a>
Chris@1 629 <div class="memitem">
Chris@1 630 <div class="memproto">
Chris@1 631 <table class="memname">
Chris@1 632 <tr>
Chris@3 633 <td class="memname"><a class="el" href="structVamp_1_1RealTime.html">RealTime</a> <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ac1ab6af0fcda0a4c3f050c54b2db4769">Vamp::HostExt::PluginInputDomainAdapter::getTimestampAdjustment</a> </td>
Chris@1 634 <td>(</td>
Chris@1 635 <td class="paramname"></td><td>)</td>
Chris@1 636 <td> const</td>
Chris@1 637 </tr>
Chris@1 638 </table>
Chris@1 639 </div>
Chris@1 640 <div class="memdoc">
Chris@1 641
Chris@1 642 <p>Return the amount by which the timestamps supplied to <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> are being incremented when they are passed to the plugin's own <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab36a81ac9a0ded8d83c6b855263c0231" title="Process a single block of input data.">process()</a> implementation. </p>
Chris@1 643 <p>The <a class="el" href="namespaceVamp.html">Vamp</a> API mandates that the timestamp passed to the plugin for time-domain input should be the time of the first sample in the block, but the timestamp passed for frequency-domain input should be the timestamp of the centre of the block.</p>
Chris@1 644 <p>The <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> adjusts its timestamps properly so that the plugin receives correct times, but in some circumstances (such as for establishing the correct timing of implicitly-timed features, i.e. features without their own timestamps) the host may need to be aware that this adjustment is taking place.</p>
Chris@1 645 <p>If the plugin requires time-domain input or the <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">PluginInputDomainAdapter</a> is configured with its ProcessTimestampMethod set to ShiftData instead of ShiftTimestamp, then this function will return zero.</p>
Chris@1 646 <p>The result of calling this function before <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a72d201eca10ec73bf16e07984f58f94c" title="Initialise a plugin to prepare it for use with the given number of input channels, step size (window increment, in sample frames) and block size (window size, in sample frames).">initialise()</a> has been called is undefined. </p>
Chris@1 647
Chris@1 648 <p>Referenced by <a class="el" href="vamp-simple-host_8cpp_source.html#l00265">runPlugin()</a>.</p>
Chris@1 649
Chris@1 650 </div>
Chris@1 651 </div>
Chris@3 652 <a class="anchor" id="ab143065e1a65f1d860cb26b32d5a9c1e"></a>
Chris@1 653 <div class="memitem">
Chris@1 654 <div class="memproto">
Chris@1 655 <table class="memname">
Chris@1 656 <tr>
Chris@3 657 <td class="memname"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dc">WindowType</a> <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#ab143065e1a65f1d860cb26b32d5a9c1e">Vamp::HostExt::PluginInputDomainAdapter::getWindowType</a> </td>
Chris@1 658 <td>(</td>
Chris@1 659 <td class="paramname"></td><td>)</td>
Chris@1 660 <td> const</td>
Chris@1 661 </tr>
Chris@1 662 </table>
Chris@1 663 </div>
Chris@1 664 <div class="memdoc">
Chris@1 665
Chris@1 666 <p>Return the current window shape. </p>
Chris@1 667 <p>The default is HanningWindow. </p>
Chris@1 668
Chris@1 669 </div>
Chris@1 670 </div>
Chris@3 671 <a class="anchor" id="a652bf9f25352a4fa89dd80ff816558d4"></a>
Chris@1 672 <div class="memitem">
Chris@1 673 <div class="memproto">
Chris@1 674 <table class="memname">
Chris@1 675 <tr>
Chris@3 676 <td class="memname">void <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a652bf9f25352a4fa89dd80ff816558d4">Vamp::HostExt::PluginInputDomainAdapter::setWindowType</a> </td>
Chris@1 677 <td>(</td>
Chris@1 678 <td class="paramtype"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a27e6a7c3f93f1618836792b588b767dc">WindowType</a>&#160;</td>
Chris@1 679 <td class="paramname"><em>type</em></td><td>)</td>
Chris@1 680 <td></td>
Chris@1 681 </tr>
Chris@1 682 </table>
Chris@1 683 </div>
Chris@1 684 <div class="memdoc">
Chris@1 685
Chris@1 686 <p>Set the current window shape. </p>
Chris@1 687
Chris@1 688 </div>
Chris@1 689 </div>
Chris@3 690 <a class="anchor" id="a74147fda6b44ff2169bd4a1eea0d46ff"></a>
Chris@1 691 <div class="memitem">
Chris@1 692 <div class="memproto">
Chris@1 693 <table class="memname">
Chris@1 694 <tr>
Chris@3 695 <td class="memname">unsigned int <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a74147fda6b44ff2169bd4a1eea0d46ff">Vamp::HostExt::PluginWrapper::getVampApiVersion</a> </td>
Chris@1 696 <td>(</td>
Chris@1 697 <td class="paramname"></td><td>)</td>
Chris@1 698 <td> const<code> [virtual, inherited]</code></td>
Chris@1 699 </tr>
Chris@1 700 </table>
Chris@1 701 </div>
Chris@1 702 <div class="memdoc">
Chris@1 703
Chris@1 704 <p>Get the <a class="el" href="namespaceVamp.html">Vamp</a> API compatibility level of the plugin. </p>
Chris@1 705
Chris@1 706 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#a8fd2c48291c64b790f0efb8948508dcf">Vamp::PluginBase</a>.</p>
Chris@1 707
Chris@1 708 </div>
Chris@1 709 </div>
Chris@3 710 <a class="anchor" id="a4baa9e48f717c2b3e7f92496aa39d904"></a>
Chris@1 711 <div class="memitem">
Chris@1 712 <div class="memproto">
Chris@1 713 <table class="memname">
Chris@1 714 <tr>
Chris@3 715 <td class="memname">std::string <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a4baa9e48f717c2b3e7f92496aa39d904">Vamp::HostExt::PluginWrapper::getIdentifier</a> </td>
Chris@1 716 <td>(</td>
Chris@1 717 <td class="paramname"></td><td>)</td>
Chris@1 718 <td> const<code> [virtual, inherited]</code></td>
Chris@1 719 </tr>
Chris@1 720 </table>
Chris@1 721 </div>
Chris@1 722 <div class="memdoc">
Chris@1 723
Chris@1 724 <p>Get the computer-usable name of the plugin. </p>
Chris@1 725 <p>This should be reasonably short and contain no whitespace or punctuation characters. It may only contain the characters [a-zA-Z0-9_-]. This is the authoritative way for a program to identify a plugin within a given library.</p>
Chris@1 726 <p>This text may be visible to the user, but it should not be the main text used to identify a plugin to the user (that will be the name, below).</p>
Chris@1 727 <p>Example: "zero_crossings" </p>
Chris@1 728
Chris@1 729 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#ad1c6dfc77aa03d937a885b7f08258f4a">Vamp::PluginBase</a>.</p>
Chris@1 730
Chris@1 731 </div>
Chris@1 732 </div>
Chris@3 733 <a class="anchor" id="ac70a3265bb25aeb03f6dd8f8a0442088"></a>
Chris@1 734 <div class="memitem">
Chris@1 735 <div class="memproto">
Chris@1 736 <table class="memname">
Chris@1 737 <tr>
Chris@3 738 <td class="memname">std::string <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ac70a3265bb25aeb03f6dd8f8a0442088">Vamp::HostExt::PluginWrapper::getName</a> </td>
Chris@1 739 <td>(</td>
Chris@1 740 <td class="paramname"></td><td>)</td>
Chris@1 741 <td> const<code> [virtual, inherited]</code></td>
Chris@1 742 </tr>
Chris@1 743 </table>
Chris@1 744 </div>
Chris@1 745 <div class="memdoc">
Chris@1 746
Chris@1 747 <p>Get a human-readable name or title of the plugin. </p>
Chris@1 748 <p>This should be brief and self-contained, as it may be used to identify the plugin to the user in isolation (i.e. without also showing the plugin's "identifier").</p>
Chris@1 749 <p>Example: "Zero Crossings" </p>
Chris@1 750
Chris@1 751 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#a18619d5097e444ecefee0c359da53232">Vamp::PluginBase</a>.</p>
Chris@1 752
Chris@1 753 </div>
Chris@1 754 </div>
Chris@3 755 <a class="anchor" id="ac334f699c0996055942785410d8a065c"></a>
Chris@1 756 <div class="memitem">
Chris@1 757 <div class="memproto">
Chris@1 758 <table class="memname">
Chris@1 759 <tr>
Chris@3 760 <td class="memname">std::string <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ac334f699c0996055942785410d8a065c">Vamp::HostExt::PluginWrapper::getDescription</a> </td>
Chris@1 761 <td>(</td>
Chris@1 762 <td class="paramname"></td><td>)</td>
Chris@1 763 <td> const<code> [virtual, inherited]</code></td>
Chris@1 764 </tr>
Chris@1 765 </table>
Chris@1 766 </div>
Chris@1 767 <div class="memdoc">
Chris@1 768
Chris@1 769 <p>Get a human-readable description for the plugin, typically a line of text that may optionally be displayed in addition to the plugin's "name". </p>
Chris@1 770 <p>May be empty if the name has said it all already.</p>
Chris@1 771 <p>Example: "Detect and count zero crossing points" </p>
Chris@1 772
Chris@1 773 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#a59153a02364f75fff46973b2072e9e5a">Vamp::PluginBase</a>.</p>
Chris@1 774
Chris@1 775 </div>
Chris@1 776 </div>
Chris@3 777 <a class="anchor" id="a59d5a2298951b317995675e664b1c7bb"></a>
Chris@1 778 <div class="memitem">
Chris@1 779 <div class="memproto">
Chris@1 780 <table class="memname">
Chris@1 781 <tr>
Chris@3 782 <td class="memname">std::string <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a59d5a2298951b317995675e664b1c7bb">Vamp::HostExt::PluginWrapper::getMaker</a> </td>
Chris@1 783 <td>(</td>
Chris@1 784 <td class="paramname"></td><td>)</td>
Chris@1 785 <td> const<code> [virtual, inherited]</code></td>
Chris@1 786 </tr>
Chris@1 787 </table>
Chris@1 788 </div>
Chris@1 789 <div class="memdoc">
Chris@1 790
Chris@1 791 <p>Get the name of the author or vendor of the plugin in human-readable form. </p>
Chris@1 792 <p>This should be a short identifying text, as it may be used to label plugins from the same source in a menu or similar. </p>
Chris@1 793
Chris@1 794 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#a53d9918bf9ef4d12feedf66b2b26c637">Vamp::PluginBase</a>.</p>
Chris@1 795
Chris@1 796 </div>
Chris@1 797 </div>
Chris@3 798 <a class="anchor" id="a47e1acf1696813008324a915c9ba59c5"></a>
Chris@1 799 <div class="memitem">
Chris@1 800 <div class="memproto">
Chris@1 801 <table class="memname">
Chris@1 802 <tr>
Chris@3 803 <td class="memname">int <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a47e1acf1696813008324a915c9ba59c5">Vamp::HostExt::PluginWrapper::getPluginVersion</a> </td>
Chris@1 804 <td>(</td>
Chris@1 805 <td class="paramname"></td><td>)</td>
Chris@1 806 <td> const<code> [virtual, inherited]</code></td>
Chris@1 807 </tr>
Chris@1 808 </table>
Chris@1 809 </div>
Chris@1 810 <div class="memdoc">
Chris@1 811
Chris@1 812 <p>Get the version number of the plugin. </p>
Chris@1 813
Chris@1 814 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#a63f686d77bc3d6b807e7944cdde83151">Vamp::PluginBase</a>.</p>
Chris@1 815
Chris@1 816 </div>
Chris@1 817 </div>
Chris@3 818 <a class="anchor" id="ae14f6ecb78be909c4cd5f0cdaed3c566"></a>
Chris@1 819 <div class="memitem">
Chris@1 820 <div class="memproto">
Chris@1 821 <table class="memname">
Chris@1 822 <tr>
Chris@3 823 <td class="memname">std::string <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ae14f6ecb78be909c4cd5f0cdaed3c566">Vamp::HostExt::PluginWrapper::getCopyright</a> </td>
Chris@1 824 <td>(</td>
Chris@1 825 <td class="paramname"></td><td>)</td>
Chris@1 826 <td> const<code> [virtual, inherited]</code></td>
Chris@1 827 </tr>
Chris@1 828 </table>
Chris@1 829 </div>
Chris@1 830 <div class="memdoc">
Chris@1 831
Chris@1 832 <p>Get the copyright statement or licensing summary for the plugin. </p>
Chris@1 833 <p>This can be an informative text, without the same presentation constraints as mentioned for getMaker above. </p>
Chris@1 834
Chris@1 835 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#ab7e9dedbe965f5ab9018b72920fe7661">Vamp::PluginBase</a>.</p>
Chris@1 836
Chris@1 837 </div>
Chris@1 838 </div>
Chris@3 839 <a class="anchor" id="a9be71561265c2e6e43b7feaddaa91f36"></a>
Chris@1 840 <div class="memitem">
Chris@1 841 <div class="memproto">
Chris@1 842 <table class="memname">
Chris@1 843 <tr>
Chris@3 844 <td class="memname"><a class="el" href="classVamp_1_1PluginBase.html#a3b6bb4bbd86affe1ca9deceea1aad4f8">ParameterList</a> <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a9be71561265c2e6e43b7feaddaa91f36">Vamp::HostExt::PluginWrapper::getParameterDescriptors</a> </td>
Chris@1 845 <td>(</td>
Chris@1 846 <td class="paramname"></td><td>)</td>
Chris@1 847 <td> const<code> [virtual, inherited]</code></td>
Chris@1 848 </tr>
Chris@1 849 </table>
Chris@1 850 </div>
Chris@1 851 <div class="memdoc">
Chris@1 852
Chris@1 853 <p>Get the controllable parameters of this plugin. </p>
Chris@1 854
Chris@1 855 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#aac3e49b3b66cacfbb768dfdf07444f21">Vamp::PluginBase</a>.</p>
Chris@1 856
Chris@1 857 </div>
Chris@1 858 </div>
Chris@3 859 <a class="anchor" id="a034920f56c8d7609a85447c42556048c"></a>
Chris@1 860 <div class="memitem">
Chris@1 861 <div class="memproto">
Chris@1 862 <table class="memname">
Chris@1 863 <tr>
Chris@3 864 <td class="memname">float <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a034920f56c8d7609a85447c42556048c">Vamp::HostExt::PluginWrapper::getParameter</a> </td>
Chris@1 865 <td>(</td>
Chris@1 866 <td class="paramtype">std::string&#160;</td>
Chris@1 867 <td class="paramname"></td><td>)</td>
Chris@1 868 <td> const<code> [virtual, inherited]</code></td>
Chris@1 869 </tr>
Chris@1 870 </table>
Chris@1 871 </div>
Chris@1 872 <div class="memdoc">
Chris@1 873
Chris@1 874 <p>Get the value of a named parameter. </p>
Chris@1 875 <p>The argument is the identifier field from that parameter's descriptor. </p>
Chris@1 876
Chris@1 877 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#a97ababcd45348ceec998d0f8e0f38bf7">Vamp::PluginBase</a>.</p>
Chris@1 878
Chris@1 879 </div>
Chris@1 880 </div>
Chris@3 881 <a class="anchor" id="a651b15a5dc4c27942ac0c87c6092bfe5"></a>
Chris@1 882 <div class="memitem">
Chris@1 883 <div class="memproto">
Chris@1 884 <table class="memname">
Chris@1 885 <tr>
Chris@3 886 <td class="memname">void <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a651b15a5dc4c27942ac0c87c6092bfe5">Vamp::HostExt::PluginWrapper::setParameter</a> </td>
Chris@1 887 <td>(</td>
Chris@1 888 <td class="paramtype">std::string&#160;</td>
Chris@1 889 <td class="paramname">, </td>
Chris@1 890 </tr>
Chris@1 891 <tr>
Chris@1 892 <td class="paramkey"></td>
Chris@1 893 <td></td>
Chris@1 894 <td class="paramtype">float&#160;</td>
Chris@1 895 <td class="paramname">&#160;</td>
Chris@1 896 </tr>
Chris@1 897 <tr>
Chris@1 898 <td></td>
Chris@1 899 <td>)</td>
Chris@1 900 <td></td><td><code> [virtual, inherited]</code></td>
Chris@1 901 </tr>
Chris@1 902 </table>
Chris@1 903 </div>
Chris@1 904 <div class="memdoc">
Chris@1 905
Chris@1 906 <p>Set a named parameter. </p>
Chris@1 907 <p>The first argument is the identifier field from that parameter's descriptor. </p>
Chris@1 908
Chris@1 909 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#a6c718ce822f7b73b98940d59dcaa9366">Vamp::PluginBase</a>.</p>
Chris@1 910
Chris@1 911 <p>Reimplemented in <a class="el" href="classVamp_1_1HostExt_1_1PluginBufferingAdapter.html#a7a979b20c169d37adbd7b7d8b8a077b3">Vamp::HostExt::PluginBufferingAdapter</a>.</p>
Chris@1 912
Chris@1 913 </div>
Chris@1 914 </div>
Chris@3 915 <a class="anchor" id="a131fbe1df81215020b9aa8cecef4c802"></a>
Chris@1 916 <div class="memitem">
Chris@1 917 <div class="memproto">
Chris@1 918 <table class="memname">
Chris@1 919 <tr>
Chris@3 920 <td class="memname"><a class="el" href="classVamp_1_1PluginBase.html#a7f66f00437b21e5f694fe02356b12f20">ProgramList</a> <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a131fbe1df81215020b9aa8cecef4c802">Vamp::HostExt::PluginWrapper::getPrograms</a> </td>
Chris@1 921 <td>(</td>
Chris@1 922 <td class="paramname"></td><td>)</td>
Chris@1 923 <td> const<code> [virtual, inherited]</code></td>
Chris@1 924 </tr>
Chris@1 925 </table>
Chris@1 926 </div>
Chris@1 927 <div class="memdoc">
Chris@1 928
Chris@1 929 <p>Get the program settings available in this plugin. </p>
Chris@1 930 <p>A program is a named shorthand for a set of parameter values; changing the program may cause the plugin to alter the values of its published parameters (and/or non-public internal processing parameters). The host should re-read the plugin's parameter values after setting a new program.</p>
Chris@1 931 <p>The programs must have unique names. </p>
Chris@1 932
Chris@1 933 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#abb307c60bdb981d5f5af50c3c4ae84af">Vamp::PluginBase</a>.</p>
Chris@1 934
Chris@1 935 </div>
Chris@1 936 </div>
Chris@3 937 <a class="anchor" id="a7a312dd42d161064b70afd7ff24c0651"></a>
Chris@1 938 <div class="memitem">
Chris@1 939 <div class="memproto">
Chris@1 940 <table class="memname">
Chris@1 941 <tr>
Chris@3 942 <td class="memname">std::string <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a7a312dd42d161064b70afd7ff24c0651">Vamp::HostExt::PluginWrapper::getCurrentProgram</a> </td>
Chris@1 943 <td>(</td>
Chris@1 944 <td class="paramname"></td><td>)</td>
Chris@1 945 <td> const<code> [virtual, inherited]</code></td>
Chris@1 946 </tr>
Chris@1 947 </table>
Chris@1 948 </div>
Chris@1 949 <div class="memdoc">
Chris@1 950
Chris@1 951 <p>Get the current program. </p>
Chris@1 952
Chris@1 953 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#a24e77eccf1bdfbbca3c79bb25e8799b3">Vamp::PluginBase</a>.</p>
Chris@1 954
Chris@1 955 </div>
Chris@1 956 </div>
Chris@3 957 <a class="anchor" id="a074978333a74fdcf336a8a1d8ea20abf"></a>
Chris@1 958 <div class="memitem">
Chris@1 959 <div class="memproto">
Chris@1 960 <table class="memname">
Chris@1 961 <tr>
Chris@3 962 <td class="memname">void <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a074978333a74fdcf336a8a1d8ea20abf">Vamp::HostExt::PluginWrapper::selectProgram</a> </td>
Chris@1 963 <td>(</td>
Chris@1 964 <td class="paramtype">std::string&#160;</td>
Chris@1 965 <td class="paramname"></td><td>)</td>
Chris@1 966 <td><code> [virtual, inherited]</code></td>
Chris@1 967 </tr>
Chris@1 968 </table>
Chris@1 969 </div>
Chris@1 970 <div class="memdoc">
Chris@1 971
Chris@1 972 <p>Select a program. </p>
Chris@1 973 <p>(If the given program name is not one of the available programs, do nothing.) </p>
Chris@1 974
Chris@1 975 <p>Reimplemented from <a class="el" href="classVamp_1_1PluginBase.html#aadd3a547ef140bae200473a9518e3353">Vamp::PluginBase</a>.</p>
Chris@1 976
Chris@1 977 <p>Reimplemented in <a class="el" href="classVamp_1_1HostExt_1_1PluginBufferingAdapter.html#a3cc7000e0aff525950e0a286b87f8927">Vamp::HostExt::PluginBufferingAdapter</a>.</p>
Chris@1 978
Chris@1 979 </div>
Chris@1 980 </div>
Chris@3 981 <a class="anchor" id="a2b28f1cf37d46a514f1e1411a6037bf8"></a>
Chris@1 982 <div class="memitem">
Chris@1 983 <div class="memproto">
Chris@1 984 <table class="memname">
Chris@1 985 <tr>
Chris@3 986 <td class="memname">size_t <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a2b28f1cf37d46a514f1e1411a6037bf8">Vamp::HostExt::PluginWrapper::getMinChannelCount</a> </td>
Chris@1 987 <td>(</td>
Chris@1 988 <td class="paramname"></td><td>)</td>
Chris@1 989 <td> const<code> [virtual, inherited]</code></td>
Chris@1 990 </tr>
Chris@1 991 </table>
Chris@1 992 </div>
Chris@1 993 <div class="memdoc">
Chris@1 994
Chris@1 995 <p>Get the minimum supported number of input channels. </p>
Chris@1 996
Chris@1 997 <p>Reimplemented from <a class="el" href="classVamp_1_1Plugin.html#a267b42e866df3cf0d190893e8096f525">Vamp::Plugin</a>.</p>
Chris@1 998
Chris@1 999 </div>
Chris@1 1000 </div>
Chris@3 1001 <a class="anchor" id="a985eb21f1827bfbc3950d6871b107a58"></a>
Chris@1 1002 <div class="memitem">
Chris@1 1003 <div class="memproto">
Chris@1 1004 <table class="memname">
Chris@1 1005 <tr>
Chris@3 1006 <td class="memname">size_t <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a985eb21f1827bfbc3950d6871b107a58">Vamp::HostExt::PluginWrapper::getMaxChannelCount</a> </td>
Chris@1 1007 <td>(</td>
Chris@1 1008 <td class="paramname"></td><td>)</td>
Chris@1 1009 <td> const<code> [virtual, inherited]</code></td>
Chris@1 1010 </tr>
Chris@1 1011 </table>
Chris@1 1012 </div>
Chris@1 1013 <div class="memdoc">
Chris@1 1014
Chris@1 1015 <p>Get the maximum supported number of input channels. </p>
Chris@1 1016
Chris@1 1017 <p>Reimplemented from <a class="el" href="classVamp_1_1Plugin.html#a2c5ab12b6fa4847cb244bd1e9cb3ae5e">Vamp::Plugin</a>.</p>
Chris@1 1018
Chris@1 1019 </div>
Chris@1 1020 </div>
Chris@3 1021 <a class="anchor" id="a5a9411305f713b4c9827844b89acd270"></a>
Chris@1 1022 <div class="memitem">
Chris@1 1023 <div class="memproto">
Chris@1 1024 <table class="memname">
Chris@1 1025 <tr>
Chris@3 1026 <td class="memname"><a class="el" href="classVamp_1_1Plugin.html#a30f531b8fb69fac41a24e3d2a6a08ed9">OutputList</a> <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a5a9411305f713b4c9827844b89acd270">Vamp::HostExt::PluginWrapper::getOutputDescriptors</a> </td>
Chris@1 1027 <td>(</td>
Chris@1 1028 <td class="paramname"></td><td>)</td>
Chris@1 1029 <td> const<code> [virtual, inherited]</code></td>
Chris@1 1030 </tr>
Chris@1 1031 </table>
Chris@1 1032 </div>
Chris@1 1033 <div class="memdoc">
Chris@1 1034
Chris@1 1035 <p>Get the outputs of this plugin. </p>
Chris@1 1036 <p>An output's index in this list is used as its numeric index when looking it up in the FeatureSet returned from the <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a6bd72d6dfb3047524dbe8ae3294527cf" title="Process a single block of input data.">process()</a> call. </p>
Chris@1 1037
Chris@1 1038 <p>Implements <a class="el" href="classVamp_1_1Plugin.html#ad064d5d132b5c9bd7064f429c3309e35">Vamp::Plugin</a>.</p>
Chris@1 1039
Chris@1 1040 <p>Reimplemented in <a class="el" href="classVamp_1_1HostExt_1_1PluginBufferingAdapter.html#af8cc914897a284433de220f1153f3845">Vamp::HostExt::PluginBufferingAdapter</a>.</p>
Chris@1 1041
Chris@1 1042 </div>
Chris@1 1043 </div>
Chris@3 1044 <a class="anchor" id="a2bc8c0992e64f06991fb7cf89f99857e"></a>
Chris@1 1045 <div class="memitem">
Chris@1 1046 <div class="memproto">
Chris@1 1047 <table class="memname">
Chris@1 1048 <tr>
Chris@3 1049 <td class="memname"><a class="el" href="classVamp_1_1Plugin.html#a448fb57dc245d47923ec9eeaf9856c5f">FeatureSet</a> <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a2bc8c0992e64f06991fb7cf89f99857e">Vamp::HostExt::PluginWrapper::getRemainingFeatures</a> </td>
Chris@1 1050 <td>(</td>
Chris@1 1051 <td class="paramname"></td><td>)</td>
Chris@1 1052 <td><code> [virtual, inherited]</code></td>
Chris@1 1053 </tr>
Chris@1 1054 </table>
Chris@1 1055 </div>
Chris@1 1056 <div class="memdoc">
Chris@1 1057
Chris@1 1058 <p>After all blocks have been processed, calculate and return any remaining features derived from the complete input. </p>
Chris@1 1059
Chris@1 1060 <p>Implements <a class="el" href="classVamp_1_1Plugin.html#aeca2a26e658ba0314ba90d25dd2195d6">Vamp::Plugin</a>.</p>
Chris@1 1061
Chris@1 1062 <p>Reimplemented in <a class="el" href="classVamp_1_1HostExt_1_1PluginBufferingAdapter.html#a28423951b2eda1a1fc371485434f417b">Vamp::HostExt::PluginBufferingAdapter</a>, and <a class="el" href="classVamp_1_1HostExt_1_1PluginSummarisingAdapter.html#ae9dcbd1ba8197ff90b4fc6bf7ade7688">Vamp::HostExt::PluginSummarisingAdapter</a>.</p>
Chris@1 1063
Chris@1 1064 </div>
Chris@1 1065 </div>
Chris@3 1066 <a class="anchor" id="a653d0308e8e34881a8749b7631d00f05"></a>
Chris@1 1067 <div class="memitem">
Chris@1 1068 <div class="memproto">
Chris@1 1069 <div class="memtemplate">
Chris@1 1070 template&lt;typename WrapperType &gt; </div>
Chris@1 1071 <table class="memname">
Chris@1 1072 <tr>
Chris@3 1073 <td class="memname">WrapperType* <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#a653d0308e8e34881a8749b7631d00f05">Vamp::HostExt::PluginWrapper::getWrapper</a> </td>
Chris@1 1074 <td>(</td>
Chris@1 1075 <td class="paramname"></td><td>)</td>
Chris@1 1076 <td><code> [inline, inherited]</code></td>
Chris@1 1077 </tr>
Chris@1 1078 </table>
Chris@1 1079 </div>
Chris@1 1080 <div class="memdoc">
Chris@1 1081
Chris@1 1082 <p>Return a pointer to the plugin wrapper of type WrapperType surrounding this wrapper's plugin, if present. </p>
Chris@1 1083 <p>This is useful in situations where a plugin is wrapped by multiple different wrappers (one inside another) and the host wants to call some wrapper-specific function on one of the layers without having to care about the order in which they are wrapped. For example, the plugin returned by <a class="el" href="classVamp_1_1HostExt_1_1PluginLoader.html#a964689eb9688cd7e58e8c82ebb0d305f" title="Load a Vamp plugin, given its identifying key.">PluginLoader::loadPlugin</a> may have more than one wrapper; if the host wanted to query or fine-tune some property of one of them, it would be hard to do so without knowing the order of the wrappers. This function therefore gives direct access to the wrapper of a particular type. </p>
Chris@1 1084
Chris@1 1085 <p>Definition at line <a class="el" href="PluginWrapper_8h_source.html#l00116">116</a> of file <a class="el" href="PluginWrapper_8h_source.html">PluginWrapper.h</a>.</p>
Chris@1 1086
Chris@1 1087 <p>References <a class="el" href="PluginWrapper_8h_source.html#l00116">Vamp::HostExt::PluginWrapper::getWrapper()</a>.</p>
Chris@1 1088
Chris@1 1089 <p>Referenced by <a class="el" href="PluginWrapper_8h_source.html#l00116">Vamp::HostExt::PluginWrapper::getWrapper()</a>, and <a class="el" href="vamp-simple-host_8cpp_source.html#l00265">runPlugin()</a>.</p>
Chris@1 1090
Chris@1 1091 </div>
Chris@1 1092 </div>
Chris@3 1093 <a class="anchor" id="abe13b3997a69fbcc09e2213faa352f91"></a>
Chris@1 1094 <div class="memitem">
Chris@1 1095 <div class="memproto">
Chris@1 1096 <table class="memname">
Chris@1 1097 <tr>
Chris@3 1098 <td class="memname">virtual std::string <a class="el" href="classVamp_1_1Plugin.html#abe13b3997a69fbcc09e2213faa352f91">Vamp::Plugin::getType</a> </td>
Chris@1 1099 <td>(</td>
Chris@1 1100 <td class="paramname"></td><td>)</td>
Chris@1 1101 <td> const<code> [inline, virtual, inherited]</code></td>
Chris@1 1102 </tr>
Chris@1 1103 </table>
Chris@1 1104 </div>
Chris@1 1105 <div class="memdoc">
Chris@1 1106
Chris@1 1107 <p>Used to distinguish between <a class="el" href="classVamp_1_1Plugin.html" title="Vamp::Plugin is a base class for plugin instance classes that provide feature extraction from audio o...">Vamp::Plugin</a> and other potential sibling subclasses of <a class="el" href="classVamp_1_1PluginBase.html" title="A base class for plugins with optional configurable parameters, programs, etc.">PluginBase</a>. </p>
Chris@1 1108 <p>Do not reimplement this function in your subclass. </p>
Chris@1 1109
Chris@1 1110 <p>Implements <a class="el" href="classVamp_1_1PluginBase.html#a2da03e9ced8dc7e4382205e6dc05dbff">Vamp::PluginBase</a>.</p>
Chris@1 1111
Chris@1 1112 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h_source.html#l00430">430</a> of file <a class="el" href="vamp-sdk_2Plugin_8h_source.html">vamp-sdk/Plugin.h</a>.</p>
Chris@1 1113
Chris@1 1114 </div>
Chris@1 1115 </div>
Chris@1 1116 <hr/><h2>Member Data Documentation</h2>
Chris@3 1117 <a class="anchor" id="a9fa8a6b8a4e41b6e3f2fabc0d23678cc"></a>
Chris@1 1118 <div class="memitem">
Chris@1 1119 <div class="memproto">
Chris@1 1120 <table class="memname">
Chris@1 1121 <tr>
Chris@1 1122 <td class="memname">Impl* <a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#a9fa8a6b8a4e41b6e3f2fabc0d23678cc">Vamp::HostExt::PluginInputDomainAdapter::m_impl</a><code> [protected]</code></td>
Chris@1 1123 </tr>
Chris@1 1124 </table>
Chris@1 1125 </div>
Chris@1 1126 <div class="memdoc">
Chris@1 1127
Chris@1 1128 <p>Definition at line <a class="el" href="PluginInputDomainAdapter_8h_source.html#l00226">226</a> of file <a class="el" href="PluginInputDomainAdapter_8h_source.html">PluginInputDomainAdapter.h</a>.</p>
Chris@1 1129
Chris@1 1130 </div>
Chris@1 1131 </div>
Chris@3 1132 <a class="anchor" id="ab4e40ecd98b445e1a2aa9e7baa280ea2"></a>
Chris@1 1133 <div class="memitem">
Chris@1 1134 <div class="memproto">
Chris@1 1135 <table class="memname">
Chris@1 1136 <tr>
Chris@1 1137 <td class="memname"><a class="el" href="classVamp_1_1Plugin.html">Plugin</a>* <a class="el" href="classVamp_1_1HostExt_1_1PluginWrapper.html#ab4e40ecd98b445e1a2aa9e7baa280ea2">Vamp::HostExt::PluginWrapper::m_plugin</a><code> [protected, inherited]</code></td>
Chris@1 1138 </tr>
Chris@1 1139 </table>
Chris@1 1140 </div>
Chris@1 1141 <div class="memdoc">
Chris@1 1142
Chris@1 1143 <p>Definition at line <a class="el" href="PluginWrapper_8h_source.html#l00126">126</a> of file <a class="el" href="PluginWrapper_8h_source.html">PluginWrapper.h</a>.</p>
Chris@1 1144
Chris@1 1145 </div>
Chris@1 1146 </div>
Chris@3 1147 <a class="anchor" id="a59b9dd82a4f4eb946cd0474cc81abc23"></a>
Chris@1 1148 <div class="memitem">
Chris@1 1149 <div class="memproto">
Chris@1 1150 <table class="memname">
Chris@1 1151 <tr>
Chris@1 1152 <td class="memname">float <a class="el" href="classVamp_1_1Plugin.html#a59b9dd82a4f4eb946cd0474cc81abc23">Vamp::Plugin::m_inputSampleRate</a><code> [protected, inherited]</code></td>
Chris@1 1153 </tr>
Chris@1 1154 </table>
Chris@1 1155 </div>
Chris@1 1156 <div class="memdoc">
Chris@1 1157
Chris@1 1158 <p>Definition at line <a class="el" href="vamp-sdk_2Plugin_8h_source.html#l00436">436</a> of file <a class="el" href="vamp-sdk_2Plugin_8h_source.html">vamp-sdk/Plugin.h</a>.</p>
Chris@1 1159
Chris@1 1160 <p>Referenced by <a class="el" href="FixedTempoEstimator_8cpp_source.html#l00481">FixedTempoEstimator::D::assembleFeatures()</a>, <a class="el" href="FixedTempoEstimator_8cpp_source.html#l00375">FixedTempoEstimator::D::calculate()</a>, <a class="el" href="FixedTempoEstimator_8cpp_source.html#l00190">FixedTempoEstimator::D::getOutputDescriptors()</a>, <a class="el" href="ZeroCrossing_8cpp_source.html#l00111">ZeroCrossing::getOutputDescriptors()</a>, <a class="el" href="PercussionOnsetDetector_8cpp_source.html#l00196">PercussionOnsetDetector::getOutputDescriptors()</a>, <a class="el" href="AmplitudeFollower_8cpp_source.html#l00105">AmplitudeFollower::initialise()</a>, <a class="el" href="FixedTempoEstimator_8cpp_source.html#l00252">FixedTempoEstimator::D::initialise()</a>, <a class="el" href="FixedTempoEstimator_8cpp_source.html#l00363">FixedTempoEstimator::D::lag2tempo()</a>, <a class="el" href="SpectralCentroid_8cpp_source.html#l00146">SpectralCentroid::process()</a>, <a class="el" href="ZeroCrossing_8cpp_source.html#l00142">ZeroCrossing::process()</a>, <a class="el" href="PercussionOnsetDetector_8cpp_source.html#l00226">PercussionOnsetDetector::process()</a>, and <a class="el" href="FixedTempoEstimator_8cpp_source.html#l00369">FixedTempoEstimator::D::tempo2lag()</a>.</p>
Chris@1 1161
Chris@1 1162 </div>
Chris@1 1163 </div>
Chris@1 1164 <hr/>The documentation for this class was generated from the following file:<ul>
Chris@1 1165 <li><a class="el" href="PluginInputDomainAdapter_8h_source.html">PluginInputDomainAdapter.h</a></li>
Chris@1 1166 </ul>
Chris@3 1167 </div><!-- contents -->
Chris@1 1168 </div>
Chris@1 1169 <div id="nav-path" class="navpath">
Chris@1 1170 <ul>
Chris@1 1171 <li class="navelem"><a class="el" href="namespaceVamp.html">Vamp</a> </li>
Chris@1 1172 <li class="navelem"><a class="el" href="namespaceVamp_1_1HostExt.html">HostExt</a> </li>
Chris@1 1173 <li class="navelem"><a class="el" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html">PluginInputDomainAdapter</a> </li>
Chris@1 1174
Chris@3 1175 <li class="footer">Generated on Fri Jul 13 2012 13:28:49 for VampPluginSDK by
Chris@1 1176 <a href="http://www.doxygen.org/index.html">
Chris@3 1177 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
Chris@1 1178 </ul>
Chris@1 1179 </div>
Chris@1 1180
Chris@1 1181
Chris@1 1182 </body>
Chris@1 1183 </html>