Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/share/doc/libclam-doc/html/ |
Current File : //proc/self/root/usr/share/doc/libclam-doc/html/MIDIOut_8hxx_source.html |
<!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"/> <title>CLAM-Development: MIDIOut.hxx Source File</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="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">CLAM-Development  <span id="projectnumber">1.4.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_098894a2b9860dda60979d343b8f7997.html">Processing</a></li><li class="navelem"><a class="el" href="dir_25b2faafbf0af5259cec4848b4ea03d9.html">MIDIIO</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">MIDIOut.hxx</div> </div> </div><!--header--> <div class="contents"> <a href="MIDIOut_8hxx.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * UNIVERSITAT POMPEU FABRA</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * it under the terms of the GNU General Public License as published by</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * (at your option) any later version.</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * This program is distributed in the hope that it will be useful,</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * GNU General Public License for more details.</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * You should have received a copy of the GNU General Public License</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * along with this program; if not, write to the Free Software</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> *</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> */</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> <div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#ifndef __MIDIOut__</span></div> <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor"></span><span class="preprocessor">#define __MIDIOut__</span></div> <div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="Processing_8hxx.html">Processing.hxx</a>"</span></div> <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="MIDIDevice_8hxx.html">MIDIDevice.hxx</a>"</span></div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="MIDIEnums_8hxx.html">MIDIEnums.hxx</a>"</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="MIDIIOConfig_8hxx.html">MIDIIOConfig.hxx</a>"</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span>CLAM {</div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> <div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html"> 35</a></span> <span class="keyword">class </span><a class="code" href="classCLAM_1_1MIDIOut.html" title="This class is the interface to an input of an MIDIDevice.">MIDIOut</a>: <span class="keyword">public</span> <a class="code" href="classCLAM_1_1Processing.html" title="The base class for all the CLAM processing object classes.">Processing</a></div> <div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div> <div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#adb039e7e2db09769f5a559578ddd043e"> 37</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCLAM_1_1MIDIManager.html" title="This class takes care of all the creation of the registration of MIDIIn and MIDIOut objects...">MIDIManager</a>;</div> <div class="line"><a name="l00038"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#aee5e91c54a3222adc0ece2a8ebd1290b"> 38</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classCLAM_1_1MIDIDevice.html" title="This is the abstract base class for an midi device.">MIDIDevice</a>;</div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">protected</span>:</div> <div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#a6209615629bdd5fab2e46eb12770c92d"> 40</a></span>  <a class="code" href="classCLAM_1_1MIDIIOConfig.html" title="Configuration of the MIDIIn and MIDIOut classes.">MIDIIOConfig</a> <a class="code" href="classCLAM_1_1MIDIOut.html#a6209615629bdd5fab2e46eb12770c92d">mConfig</a>;</div> <div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#a54ae8459897bfcfef34f77b01e27d8e7"> 41</a></span>  <a class="code" href="classCLAM_1_1MIDIDevice.html" title="This is the abstract base class for an midi device.">MIDIDevice</a>* <a class="code" href="classCLAM_1_1MIDIOut.html#a54ae8459897bfcfef34f77b01e27d8e7">mpDevice</a>;</div> <div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCLAM_1_1MIDIOut.html#a2212b962c8d21169209640bc4b8891e7" title="Configuration method interface.">ConcreteConfigure</a>(<span class="keyword">const</span> <a class="code" href="classCLAM_1_1ProcessingConfig.html" title="This is an abstract class which serves as interface for configuration classes used as processing obje...">ProcessingConfig</a>& c)</div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">throw</span>(<a class="code" href="classCLAM_1_1ErrProcessingObj.html" title="Derived class of the Err base class Handles errors in Processing Object Routines.">ErrProcessingObj</a>);</div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div> <div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#ae2e8baeec73bd1c8575a60e8808ed9b5"> 56</a></span>  <span class="keyword">const</span> <a class="code" href="classCLAM_1_1ProcessingConfig.html" title="This is an abstract class which serves as interface for configuration classes used as processing obje...">ProcessingConfig</a> &<a class="code" href="classCLAM_1_1MIDIOut.html#ae2e8baeec73bd1c8575a60e8808ed9b5" title="Getter for the configuration of the class.">GetConfig</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCLAM_1_1MIDIOut.html#a6209615629bdd5fab2e46eb12770c92d">mConfig</a>;}</div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">protected</span>:</div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1MIDIOut.html#a5596f1344e89e46496a214538881f237">Handle</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* msg,<span class="keywordtype">int</span> size) = 0;</div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="keyword">public</span>:</div> <div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#a02cc1b0deee2a4b755b061dcf5b09200"> 74</a></span>  <a class="code" href="classCLAM_1_1MIDIOut.html#a02cc1b0deee2a4b755b061dcf5b09200" title="Constructor of the class with a boolean as parameter to choose whether to configure the object...">MIDIOut</a>(<span class="keywordtype">bool</span> configure = <span class="keyword">true</span>)</div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  { </div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="classCLAM_1_1MIDIOut.html#a54ae8459897bfcfef34f77b01e27d8e7">mpDevice</a> = 0;</div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">if</span> (configure)</div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {</div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="classCLAM_1_1Processing.html#a586222b159a5b27b5bbb830a125fccc0" title="Configuration change method.">Configure</a>(<a class="code" href="classCLAM_1_1MIDIIOConfig.html" title="Configuration of the MIDIIn and MIDIOut classes.">MIDIIOConfig</a>());</div> <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  }</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div> <div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#a155415e4458c7d126c95c69892dfb1f7"> 88</a></span>  <a class="code" href="classCLAM_1_1MIDIOut.html#a02cc1b0deee2a4b755b061dcf5b09200" title="Constructor of the class with a boolean as parameter to choose whether to configure the object...">MIDIOut</a>(<span class="keyword">const</span> <a class="code" href="classCLAM_1_1MIDIIOConfig.html" title="Configuration of the MIDIIn and MIDIOut classes.">MIDIIOConfig</a> &c)</div> <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  {</div> <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="classCLAM_1_1MIDIOut.html#a54ae8459897bfcfef34f77b01e27d8e7">mpDevice</a> = 0;</div> <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <a class="code" href="classCLAM_1_1Processing.html#a586222b159a5b27b5bbb830a125fccc0" title="Configuration change method.">Configure</a>(c);</div> <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div> <div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div> <div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#a3548da0774bbb5ce0be11007035c8c9e"> 96</a></span>  <a class="code" href="classCLAM_1_1MIDIOut.html#a3548da0774bbb5ce0be11007035c8c9e" title="Destructor unregisters this MIDIOut instance from the associated device.">~MIDIOut</a>() { <span class="keywordflow">if</span> (<a class="code" href="classCLAM_1_1MIDIOut.html#a54ae8459897bfcfef34f77b01e27d8e7">mpDevice</a>) <a class="code" href="classCLAM_1_1MIDIOut.html#a54ae8459897bfcfef34f77b01e27d8e7">mpDevice</a>-><a class="code" href="classCLAM_1_1MIDIDevice.html#a2cd25de60ea63fa0d9816c92484c74e8">Unregister</a>(*<span class="keyword">this</span>); }</div> <div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div> <div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#aca953a1f1708ce6ffd5e7f0468a47a9e"> 98</a></span>  <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="classCLAM_1_1MIDIOut.html#aca953a1f1708ce6ffd5e7f0468a47a9e" title="Override it in every subclass and retur the name of that class.">GetClassName</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <span class="stringliteral">"MIDIOut"</span>;}</div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div> <div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="classCLAM_1_1MIDIOut.html#aed330f69d0b579674db9348db46068d4"> 102</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classCLAM_1_1MIDIOut.html#aed330f69d0b579674db9348db46068d4" title="Non supervised mode of Do function.">Do</a>(<span class="keywordtype">void</span>)</div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  { </div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordtype">void</span> <a class="code" href="classCLAM_1_1MIDIOut.html#af36de4b0e5073464b53f6b23988ba18f" title="Getter for the Info of Device Object attached to this MIDIOut instantiation.">GetDeviceInfo</a>(<a class="code" href="structCLAM_1_1MIDIDevice_1_1TInfo.html" title="This class is used to respond to device information request using the GetInfo method.">MIDIDevice::TInfo</a> &) <span class="keyword">const</span>;</div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="keyword">protected</span>:</div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordtype">bool</span> <a class="code" href="classCLAM_1_1MIDIOut.html#aa205b209dada3ddf5bbb13cfe56da9be" title="Processing objects have to redefine this method when starting them implies some internal changes...">ConcreteStart</a>(<span class="keywordtype">void</span>);</div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span> };</div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div> <div class="line"><a name="l00118"></a><span class="lineno"> 118</span> } <span class="comment">// namespace CLAM</span></div> <div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="preprocessor"></span></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1 </small></address> </body> </html>
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare