Mercurial > hg > vamp-website
comparison code-doc/vamp-simple-host_8cpp-source.html @ 35:0976232e353b website
* Update for 2.1 release; add wiki link
author | cannam |
---|---|
date | Fri, 25 Sep 2009 15:40:18 +0000 |
parents | cc0be37dc9d3 |
children |
comparison
equal
deleted
inserted
replaced
34:4b4db9230e94 | 35:0976232e353b |
---|---|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
3 <title>VampPluginSDK: vamp-simple-host.cpp Source File</title> | 3 <title>VampPluginSDK: vamp-simple-host.cpp Source File</title> |
4 <link href="tabs.css" rel="stylesheet" type="text/css"> | |
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> | 5 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 <link href="tabs.css" rel="stylesheet" type="text/css"> | |
6 </head><body> | 6 </head><body> |
7 <!-- Generated by Doxygen 1.5.6 --> | 7 <!-- Generated by Doxygen 1.5.8 --> |
8 <div class="navigation" id="top"> | 8 <div class="navigation" id="top"> |
9 <div class="tabs"> | 9 <div class="tabs"> |
10 <ul> | 10 <ul> |
11 <li><a href="main.html"><span>Main Page</span></a></li> | 11 <li><a href="main.html"><span>Main Page</span></a></li> |
12 <li><a href="namespaces.html"><span>Namespaces</span></a></li> | 12 <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
13 <li><a href="annotated.html"><span>Classes</span></a></li> | 13 <li><a href="annotated.html"><span>Classes</span></a></li> |
14 <li class="current"><a href="files.html"><span>Files</span></a></li> | 14 <li class="current"><a href="files.html"><span>Files</span></a></li> |
15 <li><a href="dirs.html"><span>Directories</span></a></li> | 15 <li><a href="dirs.html"><span>Directories</span></a></li> |
16 </ul> | |
17 </div> | |
18 <div class="tabs"> | |
19 <ul> | |
20 <li><a href="files.html"><span>File List</span></a></li> | |
21 <li><a href="globals.html"><span>File Members</span></a></li> | |
16 </ul> | 22 </ul> |
17 </div> | 23 </div> |
18 <div class="navpath"><a class="el" href="dir_dc0199af6955c245f7b5a687135670df.html">host</a> | 24 <div class="navpath"><a class="el" href="dir_dc0199af6955c245f7b5a687135670df.html">host</a> |
19 </div> | 25 </div> |
20 </div> | 26 </div> |
114 <a name="l00093"></a><a class="code" href="vamp-simple-host_8cpp.html#7cac13da282785878351e0a820104851">00093</a> <span class="keywordtype">void</span> <a class="code" href="vamp-simple-host_8cpp.html#7cac13da282785878351e0a820104851">usage</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) | 120 <a name="l00093"></a><a class="code" href="vamp-simple-host_8cpp.html#7cac13da282785878351e0a820104851">00093</a> <span class="keywordtype">void</span> <a class="code" href="vamp-simple-host_8cpp.html#7cac13da282785878351e0a820104851">usage</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name) |
115 <a name="l00094"></a>00094 { | 121 <a name="l00094"></a>00094 { |
116 <a name="l00095"></a>00095 cerr << <span class="stringliteral">"\n"</span> | 122 <a name="l00095"></a>00095 cerr << <span class="stringliteral">"\n"</span> |
117 <a name="l00096"></a>00096 << name << <span class="stringliteral">": A command-line host for Vamp audio analysis plugins.\n\n"</span> | 123 <a name="l00096"></a>00096 << name << <span class="stringliteral">": A command-line host for Vamp audio analysis plugins.\n\n"</span> |
118 <a name="l00097"></a>00097 <span class="stringliteral">"Centre for Digital Music, Queen Mary, University of London.\n"</span> | 124 <a name="l00097"></a>00097 <span class="stringliteral">"Centre for Digital Music, Queen Mary, University of London.\n"</span> |
119 <a name="l00098"></a>00098 <span class="stringliteral">"Copyright 2006-2008 Chris Cannam and QMUL.\n"</span> | 125 <a name="l00098"></a>00098 <span class="stringliteral">"Copyright 2006-2009 Chris Cannam and QMUL.\n"</span> |
120 <a name="l00099"></a>00099 <span class="stringliteral">"Freely redistributable; published under a BSD-style license.\n\n"</span> | 126 <a name="l00099"></a>00099 <span class="stringliteral">"Freely redistributable; published under a BSD-style license.\n\n"</span> |
121 <a name="l00100"></a>00100 <span class="stringliteral">"Usage:\n\n"</span> | 127 <a name="l00100"></a>00100 <span class="stringliteral">"Usage:\n\n"</span> |
122 <a name="l00101"></a>00101 <span class="stringliteral">" "</span> << name << <span class="stringliteral">" [-s] pluginlibrary[."</span> << <a class="code" href="system_8h.html#1efbc9bb9a9f2837d3f7386af8607abf">PLUGIN_SUFFIX</a> << <span class="stringliteral">"]:plugin[:output] file.wav [-o out.txt]\n"</span> | 128 <a name="l00101"></a>00101 <span class="stringliteral">" "</span> << name << <span class="stringliteral">" [-s] pluginlibrary[."</span> << <a class="code" href="system_8h.html#1efbc9bb9a9f2837d3f7386af8607abf">PLUGIN_SUFFIX</a> << <span class="stringliteral">"]:plugin[:output] file.wav [-o out.txt]\n"</span> |
123 <a name="l00102"></a>00102 <span class="stringliteral">" "</span> << name << <span class="stringliteral">" [-s] pluginlibrary[."</span> << <a class="code" href="system_8h.html#1efbc9bb9a9f2837d3f7386af8607abf">PLUGIN_SUFFIX</a> << <span class="stringliteral">"]:plugin file.wav [outputno] [-o out.txt]\n\n"</span> | 129 <a name="l00102"></a>00102 <span class="stringliteral">" "</span> << name << <span class="stringliteral">" [-s] pluginlibrary[."</span> << <a class="code" href="system_8h.html#1efbc9bb9a9f2837d3f7386af8607abf">PLUGIN_SUFFIX</a> << <span class="stringliteral">"]:plugin file.wav [outputno] [-o out.txt]\n\n"</span> |
124 <a name="l00103"></a>00103 <span class="stringliteral">" -- Load plugin id \"plugin\" from \"pluginlibrary\" and run it on the\n"</span> | 130 <a name="l00103"></a>00103 <span class="stringliteral">" -- Load plugin id \"plugin\" from \"pluginlibrary\" and run it on the\n"</span> |
433 <a name="l00412"></a>00412 <a class="code" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input...">PluginInputDomainAdapter</a> *ida = | 439 <a name="l00412"></a>00412 <a class="code" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input...">PluginInputDomainAdapter</a> *ida = |
434 <a name="l00413"></a>00413 wrapper-><a class="code" href="classVamp_1_1HostExt_1_1PluginWrapper.html#e9d79bed7237d55a73018a6b982a55b3" title="Return a pointer to the plugin wrapper of type WrapperType surrounding this wrapper&#39;s...">getWrapper</a><<a class="code" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input...">PluginInputDomainAdapter</a>>(); | 440 <a name="l00413"></a>00413 wrapper-><a class="code" href="classVamp_1_1HostExt_1_1PluginWrapper.html#e9d79bed7237d55a73018a6b982a55b3" title="Return a pointer to the plugin wrapper of type WrapperType surrounding this wrapper&#39;s...">getWrapper</a><<a class="code" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html" title="PluginInputDomainAdapter is a Vamp plugin adapter that converts time-domain input...">PluginInputDomainAdapter</a>>(); |
435 <a name="l00414"></a>00414 <span class="keywordflow">if</span> (ida) adjustment = ida-><a class="code" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#c1ab6af0fcda0a4c3f050c54b2db4769" title="Return the amount by which the timestamps supplied to process() are being incremented...">getTimestampAdjustment</a>(); | 441 <a name="l00414"></a>00414 <span class="keywordflow">if</span> (ida) adjustment = ida-><a class="code" href="classVamp_1_1HostExt_1_1PluginInputDomainAdapter.html#c1ab6af0fcda0a4c3f050c54b2db4769" title="Return the amount by which the timestamps supplied to process() are being incremented...">getTimestampAdjustment</a>(); |
436 <a name="l00415"></a>00415 } | 442 <a name="l00415"></a>00415 } |
437 <a name="l00416"></a>00416 | 443 <a name="l00416"></a>00416 |
438 <a name="l00417"></a>00417 <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < sfinfo.frames; i += stepSize) { | 444 <a name="l00417"></a>00417 <span class="keywordflow">for</span> (sf_count_t i = 0; i < sfinfo.frames; i += stepSize) { |
439 <a name="l00418"></a>00418 | 445 <a name="l00418"></a>00418 |
440 <a name="l00419"></a>00419 <span class="keywordtype">int</span> count; | 446 <a name="l00419"></a>00419 <span class="keywordtype">int</span> count; |
441 <a name="l00420"></a>00420 | 447 <a name="l00420"></a>00420 |
442 <a name="l00421"></a>00421 <span class="keywordflow">if</span> (sf_seek(sndfile, i, SEEK_SET) < 0) { | 448 <a name="l00421"></a>00421 <span class="keywordflow">if</span> (sf_seek(sndfile, i, SEEK_SET) < 0) { |
443 <a name="l00422"></a>00422 cerr << <span class="stringliteral">"ERROR: sf_seek failed: "</span> << sf_strerror(sndfile) << endl; | 449 <a name="l00422"></a>00422 cerr << <span class="stringliteral">"ERROR: sf_seek failed: "</span> << sf_strerror(sndfile) << endl; |
831 <a name="l00810"></a>00810 std::cout << catstr << key << <span class="stringliteral">":::"</span> << plugin-><a class="code" href="classVamp_1_1PluginBase.html#18619d5097e444ecefee0c359da53232" 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#53d9918bf9ef4d12feedf66b2b26c637" 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#59153a02364f75fff46973b2072e9e5a" title="Get a human-readable description for the plugin, typically a line of text that may...">getDescription</a>() << std::endl; | 837 <a name="l00810"></a>00810 std::cout << catstr << key << <span class="stringliteral">":::"</span> << plugin-><a class="code" href="classVamp_1_1PluginBase.html#18619d5097e444ecefee0c359da53232" 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#53d9918bf9ef4d12feedf66b2b26c637" 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#59153a02364f75fff46973b2072e9e5a" title="Get a human-readable description for the plugin, typically a line of text that may...">getDescription</a>() << std::endl; |
832 <a name="l00811"></a>00811 } | 838 <a name="l00811"></a>00811 } |
833 <a name="l00812"></a>00812 } | 839 <a name="l00812"></a>00812 } |
834 <a name="l00813"></a>00813 | 840 <a name="l00813"></a>00813 |
835 </pre></div></div> | 841 </pre></div></div> |
836 <hr size="1"><address style="text-align: right;"><small>Generated on Mon Dec 8 14:37:18 2008 for VampPluginSDK by | 842 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Sep 24 13:40:13 2009 for VampPluginSDK by |
837 <a href="http://www.doxygen.org/index.html"> | 843 <a href="http://www.doxygen.org/index.html"> |
838 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> | 844 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> |
839 </body> | 845 </body> |
840 </html> | 846 </html> |