|
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.8"/>
- <title>DISTRHO Plugin Framework: DISTRHO Plugin Framework</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/javascript">
- $(document).ready(function() { searchBox.OnSelectItem(0); });
- </script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td style="padding-left: 0.5em;">
- <div id="projectname">DISTRHO Plugin Framework
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.8 -->
- <script type="text/javascript">
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- </script>
- <div id="navrow1" class="tabs">
- <ul class="tablist">
- <li class="current"><a href="index.html"><span>Main Page</span></a></li>
- <li><a href="modules.html"><span>Modules</span></a></li>
- <li><a href="annotated.html"><span>Classes</span></a></li>
- <li><a href="files.html"><span>Files</span></a></li>
- <li>
- <div id="MSearchBox" class="MSearchBoxInactive">
- <span class="left">
- <img id="MSearchSelect" src="search/mag_sel.png"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- alt=""/>
- <input type="text" id="MSearchField" value="Search" accesskey="S"
- onfocus="searchBox.OnSearchFieldFocus(true)"
- onblur="searchBox.OnSearchFieldFocus(false)"
- onkeyup="searchBox.OnSearchFieldChange(event)"/>
- </span><span class="right">
- <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
- </span>
- </div>
- </li>
- </ul>
- </div>
- </div><!-- top -->
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Modules</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Pages</a></div>
-
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
-
- <div class="header">
- <div class="headertitle">
- <div class="title">DISTRHO Plugin Framework </div> </div>
- </div><!--header-->
- <div class="contents">
- <div class="textblock"><p>DISTRHO Plugin Framework (or <b>DPF</b> for short) is a plugin framework designed to make development of new plugins an easy and enjoyable task.<br />
- It allows developers to create plugins with custom UIs using a simple C++ API.</p>
- <h1><a class="anchor" id="Macros"></a>
- Macros</h1>
- <p>You start by creating a "DistrhoPluginInfo.h" file describing the plugin via macros, see <a class="el" href="group__PluginMacros.html">Plugin Macros</a>.<br />
- This file is included in the main DPF code to figure out which features for each plugin format to export.</p>
- <p>For example, a plugin (with UI) that use states will require LV2 hosts to support Atom and Worker extensions for message passing from the UI to the plugin.<br />
- If your plugin does not make use of states, the Worker extension is not set as a required feature.</p>
- <h1><a class="anchor" id="Plugin"></a>
- Plugin</h1>
- <p>The next step is to create your plugin code by subclassing DPF's <a class="el" href="classPlugin.html">Plugin</a> class.<br />
- You need to pass the number of parameters in the constructor and also the number of programs and states, if any.</p>
- <p>Here's an example of an audio plugin that simply mutes the host output: </p><div class="fragment"><div class="line"><span class="keyword">class </span>MutePlugin : <span class="keyword">public</span> <a class="code" href="classPlugin.html">Plugin</a></div>
- <div class="line">{</div>
- <div class="line"><span class="keyword">public</span>:</div>
- <div class="line"> MutePlugin()</div>
- <div class="line"> : <a class="code" href="classPlugin.html">Plugin</a>(0, 0, 0) <span class="comment">// 0 parameters, 0 programs and 0 states</span></div>
- <div class="line"> {</div>
- <div class="line"> }</div>
- <div class="line"></div>
- <div class="line"><span class="keyword">protected</span>:</div>
- <div class="line"> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classPlugin.html#a00f7945c16149db6845fbcc2af729f4f">getLabel</a>()<span class="keyword"> const override</span></div>
- <div class="line"><span class="keyword"> </span>{</div>
- <div class="line"> <span class="keywordflow">return</span> <span class="stringliteral">"Mute"</span>;</div>
- <div class="line"> }</div>
- <div class="line"></div>
- <div class="line"> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classPlugin.html#a955832840de786a7a22798f0ef451c5d">getMaker</a>()<span class="keyword"> const override</span></div>
- <div class="line"><span class="keyword"> </span>{</div>
- <div class="line"> <span class="keywordflow">return</span> <span class="stringliteral">"DPF"</span>;</div>
- <div class="line"> }</div>
- <div class="line"></div>
- <div class="line"> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classPlugin.html#a686a3c92a376a185d6fd97efd59125d1">getLicense</a>()<span class="keyword"> const override</span></div>
- <div class="line"><span class="keyword"> </span>{</div>
- <div class="line"> <span class="keywordflow">return</span> <span class="stringliteral">"MIT"</span>;</div>
- <div class="line"> }</div>
- <div class="line"></div>
- <div class="line"> uint32_t <a class="code" href="classPlugin.html#abae540dd93caf4834270358a8aad334a">getVersion</a>()<span class="keyword"> const override</span></div>
- <div class="line"><span class="keyword"> </span>{</div>
- <div class="line"> <span class="keywordflow">return</span> 0x1000;</div>
- <div class="line"> }</div>
- <div class="line"></div>
- <div class="line"> int64_t <a class="code" href="classPlugin.html#ad6ff8c80227d5ceebd40b96f3be29a66">getUniqueId</a>()<span class="keyword"> const override</span></div>
- <div class="line"><span class="keyword"> </span>{</div>
- <div class="line"> <span class="keywordflow">return</span> cconst(<span class="charliteral">'M'</span>, <span class="charliteral">'u'</span>, <span class="charliteral">'t'</span>, <span class="charliteral">'e'</span>);</div>
- <div class="line"> }</div>
- <div class="line"></div>
- <div class="line"> <span class="keywordtype">void</span> <a class="code" href="classPlugin.html#a0a969c78f8455ac6ba65fa42e8c498f6">run</a>(<span class="keyword">const</span> <span class="keywordtype">float</span>**, <span class="keywordtype">float</span>** outputs, uint32_t frames)<span class="keyword"> override</span></div>
- <div class="line"><span class="keyword"> </span>{</div>
- <div class="line"> <span class="comment">// get the left and right audio outputs</span></div>
- <div class="line"> <span class="keywordtype">float</span>* <span class="keyword">const</span> outL = outputs[0];</div>
- <div class="line"> <span class="keywordtype">float</span>* <span class="keyword">const</span> outR = outputs[1];</div>
- <div class="line"></div>
- <div class="line"> <span class="comment">// mute audio</span></div>
- <div class="line"> std::memset(outL, 0, <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)*frames);</div>
- <div class="line"> std::memset(outR, 0, <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)*frames);</div>
- <div class="line"> }</div>
- <div class="line">};</div>
- </div><!-- fragment --><p>See the <a class="el" href="index.html#Plugin">Plugin</a> class for more information and to understand what each function does.</p>
- <h1><a class="anchor" id="Parameters"></a>
- Parameters</h1>
- <p>describe input and output, automable and rt safe, boolean etc, cv</p>
- <h1><a class="anchor" id="Programs"></a>
- Programs</h1>
- <p>describe them</p>
- <h1><a class="anchor" id="States"></a>
- States</h1>
- <p>describe them</p>
- <h1><a class="anchor" id="MIDI"></a>
- MIDI</h1>
- <p>describe them</p>
- <h1><a class="anchor" id="Latency"></a>
- Latency</h1>
- <p>describe it</p>
- <h1><a class="anchor" id="Time-Position"></a>
- Time-Position</h1>
- <p>describe it</p>
- <h1><a class="anchor" id="UI"></a>
- UI</h1>
- <p>describe them </p>
- </div></div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Sun Apr 26 2015 14:55:15 for DISTRHO Plugin Framework by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.8
- </small></address>
- </body>
- </html>
|