Mercurial > hg > vamp-docs
comparison code-docs/vamp-simple-host_8cpp_source.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 |
comparison
equal
deleted
inserted
replaced
2:52d16fb98e80 | 3:5c2683745b33 |
---|---|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 <html xmlns="http://www.w3.org/1999/xhtml"> | 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | 4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/> | |
5 <title>VampPluginSDK: vamp-simple-host.cpp Source File</title> | 6 <title>VampPluginSDK: vamp-simple-host.cpp Source File</title> |
6 | 7 |
7 <link href="tabs.css" rel="stylesheet" type="text/css"/> | 8 <link href="tabs.css" rel="stylesheet" type="text/css"/> |
8 <link href="doxygen.css" rel="stylesheet" type="text/css" /> | 9 <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
9 <link href="navtree.css" rel="stylesheet" type="text/css"/> | 10 <link href="navtree.css" rel="stylesheet" type="text/css"/> |
26 <tr style="height: 56px;"> | 27 <tr style="height: 56px;"> |
27 | 28 |
28 | 29 |
29 <td style="padding-left: 0.5em;"> | 30 <td style="padding-left: 0.5em;"> |
30 <div id="projectname">VampPluginSDK | 31 <div id="projectname">VampPluginSDK |
31  <span id="projectnumber">2.1</span> | 32  <span id="projectnumber">2.4</span> |
32 </div> | 33 </div> |
33 | 34 |
34 </td> | 35 </td> |
35 | 36 |
36 | 37 |
38 </tr> | 39 </tr> |
39 </tbody> | 40 </tbody> |
40 </table> | 41 </table> |
41 </div> | 42 </div> |
42 | 43 |
43 <!-- Generated by Doxygen 1.7.5.1 --> | 44 <!-- Generated by Doxygen 1.8.0 --> |
44 <div id="navrow1" class="tabs"> | 45 <div id="navrow1" class="tabs"> |
45 <ul class="tablist"> | 46 <ul class="tablist"> |
46 <li><a href="index.html"><span>Main Page</span></a></li> | 47 <li><a href="index.html"><span>Main Page</span></a></li> |
47 <li><a href="namespaces.html"><span>Namespaces</span></a></li> | 48 <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
48 <li><a href="annotated.html"><span>Classes</span></a></li> | 49 <li><a href="annotated.html"><span>Classes</span></a></li> |
71 </script> | 72 </script> |
72 <div id="doc-content"> | 73 <div id="doc-content"> |
73 <div class="header"> | 74 <div class="header"> |
74 <div class="headertitle"> | 75 <div class="headertitle"> |
75 <div class="title">vamp-simple-host.cpp</div> </div> | 76 <div class="title">vamp-simple-host.cpp</div> </div> |
76 </div> | 77 </div><!--header--> |
77 <div class="contents"> | 78 <div class="contents"> |
78 <a href="vamp-simple-host_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */</span> | 79 <a href="vamp-simple-host_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */</span> |
79 <a name="l00002"></a>00002 | 80 <a name="l00002"></a>00002 |
80 <a name="l00003"></a>00003 <span class="comment">/*</span> | 81 <a name="l00003"></a>00003 <span class="comment">/*</span> |
81 <a name="l00004"></a>00004 <span class="comment"> Vamp</span> | 82 <a name="l00004"></a>00004 <span class="comment"> Vamp</span> |
146 <a name="l00069"></a>00069 <span class="keyword">using</span> <a class="code" href="structVamp_1_1RealTime.html" title="RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...">Vamp::RealTime</a>; | 147 <a name="l00069"></a>00069 <span class="keyword">using</span> <a class="code" href="structVamp_1_1RealTime.html" title="RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...">Vamp::RealTime</a>; |
147 <a name="l00070"></a>00070 <span class="keyword">using</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginLoader.html" title="Vamp::HostExt::PluginLoader is a convenience class for discovering and loading Vamp plugins using the...">Vamp::HostExt::PluginLoader</a>; | 148 <a name="l00070"></a>00070 <span class="keyword">using</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginLoader.html" title="Vamp::HostExt::PluginLoader is a convenience class for discovering and loading Vamp plugins using the...">Vamp::HostExt::PluginLoader</a>; |
148 <a name="l00071"></a>00071 <span class="keyword">using</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginWrapper.html" title="PluginWrapper is a simple base class for adapter plugins.">Vamp::HostExt::PluginWrapper</a>; | 149 <a name="l00071"></a>00071 <span class="keyword">using</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginWrapper.html" title="PluginWrapper is a simple base class for adapter plugins.">Vamp::HostExt::PluginWrapper</a>; |
149 <a name="l00072"></a>00072 <span class="keyword">using</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">Vamp::HostExt::PluginInputDomainAdapter</a>; | 150 <a name="l00072"></a>00072 <span class="keyword">using</span> <a class="code" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input into frequency-doma...">Vamp::HostExt::PluginInputDomainAdapter</a>; |
150 <a name="l00073"></a>00073 | 151 <a name="l00073"></a>00073 |
151 <a name="l00074"></a><a class="code" href="vamp-simple-host_8cpp.html#aa8bc193818940a8954ef0e0e5a8e16d6">00074</a> <span class="preprocessor">#define HOST_VERSION "1.4"</span> | 152 <a name="l00074"></a><a class="code" href="vamp-simple-host_8cpp.html#aa8bc193818940a8954ef0e0e5a8e16d6">00074</a> <span class="preprocessor">#define HOST_VERSION "1.5"</span> |
152 <a name="l00075"></a>00075 <span class="preprocessor"></span> | 153 <a name="l00075"></a>00075 <span class="preprocessor"></span> |
153 <a name="l00076"></a><a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313">00076</a> <span class="keyword">enum</span> <a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313">Verbosity</a> { | 154 <a name="l00076"></a><a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313">00076</a> <span class="keyword">enum</span> <a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313">Verbosity</a> { |
154 <a name="l00077"></a><a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a4cf6a0dfdb6864356feab9d9ca230d16">00077</a> <a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a4cf6a0dfdb6864356feab9d9ca230d16">PluginIds</a>, | 155 <a name="l00077"></a><a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a4cf6a0dfdb6864356feab9d9ca230d16">00077</a> <a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a4cf6a0dfdb6864356feab9d9ca230d16">PluginIds</a>, |
155 <a name="l00078"></a><a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a30eab122efa9537df4ecb2fc27fc354e">00078</a> <a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a30eab122efa9537df4ecb2fc27fc354e">PluginOutputIds</a>, | 156 <a name="l00078"></a><a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a30eab122efa9537df4ecb2fc27fc354e">00078</a> <a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a30eab122efa9537df4ecb2fc27fc354e">PluginOutputIds</a>, |
156 <a name="l00079"></a><a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a8acba147ed4716f3baa8546f6dc055a1">00079</a> <a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a8acba147ed4716f3baa8546f6dc055a1">PluginInformation</a>, | 157 <a name="l00079"></a><a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a8acba147ed4716f3baa8546f6dc055a1">00079</a> <a class="code" href="vamp-simple-host_8cpp.html#abf3be10d03894afb391f3a2935e3b313a8acba147ed4716f3baa8546f6dc055a1">PluginInformation</a>, |
227 <a name="l00150"></a>00150 | 228 <a name="l00150"></a>00150 |
228 <a name="l00151"></a>00151 <span class="keywordflow">if</span> (!strcmp(argv[1], <span class="stringliteral">"-v"</span>)) { | 229 <a name="l00151"></a>00151 <span class="keywordflow">if</span> (!strcmp(argv[1], <span class="stringliteral">"-v"</span>)) { |
229 <a name="l00152"></a>00152 | 230 <a name="l00152"></a>00152 |
230 <a name="l00153"></a>00153 cout << <span class="stringliteral">"Simple Vamp plugin host version: "</span> << <a class="code" href="vamp-simple-host_8cpp.html#aa8bc193818940a8954ef0e0e5a8e16d6">HOST_VERSION</a> << endl | 231 <a name="l00153"></a>00153 cout << <span class="stringliteral">"Simple Vamp plugin host version: "</span> << <a class="code" href="vamp-simple-host_8cpp.html#aa8bc193818940a8954ef0e0e5a8e16d6">HOST_VERSION</a> << endl |
231 <a name="l00154"></a>00154 << <span class="stringliteral">"Vamp API version: "</span> << <a class="code" href="vamp_8h.html#a6d6c8c755dbabf161f72712e0e2143c7" title="Plugin API version.">VAMP_API_VERSION</a> << endl | 232 <a name="l00154"></a>00154 << <span class="stringliteral">"Vamp API version: "</span> << <a class="code" href="vamp_8h.html#a6d6c8c755dbabf161f72712e0e2143c7" title="Plugin API version.">VAMP_API_VERSION</a> << endl |
232 <a name="l00155"></a>00155 << <span class="stringliteral">"Vamp SDK version: "</span> << <a class="code" href="vamp-sdk_2PluginBase_8h.html#a9b7a8e1ac1c91366bec5f2f33c137a2f">VAMP_SDK_VERSION</a> << endl; | 233 <a name="l00155"></a>00155 << <span class="stringliteral">"Vamp SDK version: "</span> << <a class="code" href="plugguard_8h.html#a9b7a8e1ac1c91366bec5f2f33c137a2f">VAMP_SDK_VERSION</a> << endl; |
233 <a name="l00156"></a>00156 <span class="keywordflow">return</span> 0; | 234 <a name="l00156"></a>00156 <span class="keywordflow">return</span> 0; |
234 <a name="l00157"></a>00157 | 235 <a name="l00157"></a>00157 |
235 <a name="l00158"></a>00158 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(argv[1], <span class="stringliteral">"-l"</span>) || !strcmp(argv[1], <span class="stringliteral">"--list"</span>)) { | 236 <a name="l00158"></a>00158 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!strcmp(argv[1], <span class="stringliteral">"-l"</span>) || !strcmp(argv[1], <span class="stringliteral">"--list"</span>)) { |
236 <a name="l00159"></a>00159 | 237 <a name="l00159"></a>00159 |
237 <a name="l00160"></a>00160 <a class="code" href="vamp-simple-host_8cpp.html#a4767f8c142ee0b61ba414df1b0376a01">printPluginPath</a>(<span class="keyword">true</span>); | 238 <a name="l00160"></a>00160 <a class="code" href="vamp-simple-host_8cpp.html#a4767f8c142ee0b61ba414df1b0376a01">printPluginPath</a>(<span class="keyword">true</span>); |
905 <a name="l00828"></a>00828 | 906 <a name="l00828"></a>00828 |
906 <a name="l00829"></a>00829 std::cout << catstr << key << <span class="stringliteral">":::"</span> << plugin-><a class="code" href="classVamp_1_1PluginBase.html#a18619d5097e444ecefee0c359da53232" title="Get a human-readable name or title of the plugin.">getName</a>() << <span class="stringliteral">":::"</span> << plugin-><a class="code" href="classVamp_1_1PluginBase.html#a53d9918bf9ef4d12feedf66b2b26c637" title="Get the name of the author or vendor of the plugin in human-readable form.">getMaker</a>() << <span class="stringliteral">":::"</span> << plugin-><a class="code" href="classVamp_1_1PluginBase.html#a59153a02364f75fff46973b2072e9e5a" title="Get a human-readable description for the plugin, typically a line of text that may optionally be disp...">getDescription</a>() << std::endl; | 907 <a name="l00829"></a>00829 std::cout << catstr << key << <span class="stringliteral">":::"</span> << plugin-><a class="code" href="classVamp_1_1PluginBase.html#a18619d5097e444ecefee0c359da53232" title="Get a human-readable name or title of the plugin.">getName</a>() << <span class="stringliteral">":::"</span> << plugin-><a class="code" href="classVamp_1_1PluginBase.html#a53d9918bf9ef4d12feedf66b2b26c637" title="Get the name of the author or vendor of the plugin in human-readable form.">getMaker</a>() << <span class="stringliteral">":::"</span> << plugin-><a class="code" href="classVamp_1_1PluginBase.html#a59153a02364f75fff46973b2072e9e5a" title="Get a human-readable description for the plugin, typically a line of text that may optionally be disp...">getDescription</a>() << std::endl; |
907 <a name="l00830"></a>00830 } | 908 <a name="l00830"></a>00830 } |
908 <a name="l00831"></a>00831 } | 909 <a name="l00831"></a>00831 } |
909 <a name="l00832"></a>00832 | 910 <a name="l00832"></a>00832 |
910 </pre></div></div> | 911 </pre></div></div><!-- contents --> |
911 </div> | 912 </div> |
912 <div id="nav-path" class="navpath"> | 913 <div id="nav-path" class="navpath"> |
913 <ul> | 914 <ul> |
914 <li class="navelem"><a class="el" href="vamp-simple-host_8cpp.html">vamp-simple-host.cpp</a> </li> | 915 <li class="navelem"><a class="el" href="vamp-simple-host_8cpp.html">vamp-simple-host.cpp</a> </li> |
915 | 916 |
916 <li class="footer">Generated on Tue Oct 4 2011 14:38:49 for VampPluginSDK by | 917 <li class="footer">Generated on Fri Jul 13 2012 13:28:48 for VampPluginSDK by |
917 <a href="http://www.doxygen.org/index.html"> | 918 <a href="http://www.doxygen.org/index.html"> |
918 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li> | 919 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li> |
919 </ul> | 920 </ul> |
920 </div> | 921 </div> |
921 | 922 |
922 | 923 |
923 </body> | 924 </body> |