Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > by-pkgid > 34546d63baef3ab2a7675f37737b66ab > files > 265

libalsa2-docs-1.0.23-2.1mdv2010.1.i586.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!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"/>
<title>ALSA project - the C library reference: /home/qateam/rpm/BUILD/alsa-lib-1.0.23/include/seqmid.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.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)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>/home/qateam/rpm/BUILD/alsa-lib-1.0.23/include/seqmid.h</h1><a href="seqmid_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00011"></a>00011 <span class="comment">/*</span>
<a name="l00012"></a>00012 <span class="comment"> *   This library is free software; you can redistribute it and/or modify</span>
<a name="l00013"></a>00013 <span class="comment"> *   it under the terms of the GNU Lesser General Public License as</span>
<a name="l00014"></a>00014 <span class="comment"> *   published by the Free Software Foundation; either version 2.1 of</span>
<a name="l00015"></a>00015 <span class="comment"> *   the License, or (at your option) any later version.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> *   This program is distributed in the hope that it will be useful,</span>
<a name="l00018"></a>00018 <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00019"></a>00019 <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00020"></a>00020 <span class="comment"> *   GNU Lesser General Public License for more details.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> *   You should have received a copy of the GNU Lesser General Public</span>
<a name="l00023"></a>00023 <span class="comment"> *   License along with this library; if not, write to the Free Software</span>
<a name="l00024"></a>00024 <span class="comment"> *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA</span>
<a name="l00025"></a>00025 <span class="comment"> *</span>
<a name="l00026"></a>00026 <span class="comment"> */</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef __ALSA_SEQMID_H</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define __ALSA_SEQMID_H</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00033"></a>00033 <span class="preprocessor">#endif</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00048"></a><a class="code" href="group___seq_middle.html#gafa496482a21b231621b385d1f1675b58">00048</a> <span class="preprocessor">#define snd_seq_ev_clear(ev) \</span>
<a name="l00049"></a>00049 <span class="preprocessor">        memset(ev, 0, sizeof(snd_seq_event_t))</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00058"></a><a class="code" href="group___seq_middle.html#ga2d78011c3d4618ff47f7f60e3553ea02">00058</a> <span class="preprocessor">#define snd_seq_ev_set_tag(ev,t) \</span>
<a name="l00059"></a>00059 <span class="preprocessor">        ((ev)-&gt;tag = (t))</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>
<a name="l00071"></a><a class="code" href="group___seq_middle.html#gaff2d03c7db0d6d5cfeec429d160d9459">00071</a> <span class="preprocessor">#define snd_seq_ev_set_dest(ev,c,p) \</span>
<a name="l00072"></a>00072 <span class="preprocessor">        ((ev)-&gt;dest.client = (c), (ev)-&gt;dest.port = (p))</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span>
<a name="l00082"></a><a class="code" href="group___seq_middle.html#ga1eb546b3a1a23044d0ba7818731ed6d7">00082</a> <span class="preprocessor">#define snd_seq_ev_set_subs(ev) \</span>
<a name="l00083"></a>00083 <span class="preprocessor">        ((ev)-&gt;dest.client = SND_SEQ_ADDRESS_SUBSCRIBERS,\</span>
<a name="l00084"></a>00084 <span class="preprocessor">         (ev)-&gt;dest.port = SND_SEQ_ADDRESS_UNKNOWN)</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span>
<a name="l00094"></a><a class="code" href="group___seq_middle.html#gab06bf27dd5d0c94d78d935311fec1124">00094</a> <span class="preprocessor">#define snd_seq_ev_set_broadcast(ev) \</span>
<a name="l00095"></a>00095 <span class="preprocessor">        ((ev)-&gt;dest.client = SND_SEQ_ADDRESS_BROADCAST,\</span>
<a name="l00096"></a>00096 <span class="preprocessor">         (ev)-&gt;dest.port = SND_SEQ_ADDRESS_BROADCAST)</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span>
<a name="l00105"></a><a class="code" href="group___seq_middle.html#ga457525dcca4a8a7e8cdb599a8ad6e8ff">00105</a> <span class="preprocessor">#define snd_seq_ev_set_source(ev,p) \</span>
<a name="l00106"></a>00106 <span class="preprocessor">        ((ev)-&gt;source.port = (p))</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span>
<a name="l00117"></a><a class="code" href="group___seq_middle.html#gae2674210b5601e8aa3e787c1ddbdcb62">00117</a> <span class="preprocessor">#define snd_seq_ev_set_direct(ev) \</span>
<a name="l00118"></a>00118 <span class="preprocessor">        ((ev)-&gt;queue = SND_SEQ_QUEUE_DIRECT)</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span>
<a name="l00132"></a><a class="code" href="group___seq_middle.html#ga589469c27715bfae205ce26d5801d8b1">00132</a> <span class="preprocessor">#define snd_seq_ev_schedule_tick(ev, q, relative, ttick) \</span>
<a name="l00133"></a>00133 <span class="preprocessor">        ((ev)-&gt;flags &amp;= ~(SND_SEQ_TIME_STAMP_MASK | SND_SEQ_TIME_MODE_MASK),\</span>
<a name="l00134"></a>00134 <span class="preprocessor">         (ev)-&gt;flags |= SND_SEQ_TIME_STAMP_TICK,\</span>
<a name="l00135"></a>00135 <span class="preprocessor">         (ev)-&gt;flags |= (relative) ? SND_SEQ_TIME_MODE_REL : SND_SEQ_TIME_MODE_ABS,\</span>
<a name="l00136"></a>00136 <span class="preprocessor">         (ev)-&gt;time.tick = (ttick),\</span>
<a name="l00137"></a>00137 <span class="preprocessor">         (ev)-&gt;queue = (q))</span>
<a name="l00138"></a>00138 <span class="preprocessor"></span>
<a name="l00151"></a><a class="code" href="group___seq_middle.html#ga713370bf29736477532e791b4ad92530">00151</a> <span class="preprocessor">#define snd_seq_ev_schedule_real(ev, q, relative, rtime) \</span>
<a name="l00152"></a>00152 <span class="preprocessor">        ((ev)-&gt;flags &amp;= ~(SND_SEQ_TIME_STAMP_MASK | SND_SEQ_TIME_MODE_MASK),\</span>
<a name="l00153"></a>00153 <span class="preprocessor">         (ev)-&gt;flags |= SND_SEQ_TIME_STAMP_REAL,\</span>
<a name="l00154"></a>00154 <span class="preprocessor">         (ev)-&gt;flags |= (relative) ? SND_SEQ_TIME_MODE_REL : SND_SEQ_TIME_MODE_ABS,\</span>
<a name="l00155"></a>00155 <span class="preprocessor">         (ev)-&gt;time.time = *(rtime),\</span>
<a name="l00156"></a>00156 <span class="preprocessor">         (ev)-&gt;queue = (q))</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span>
<a name="l00163"></a><a class="code" href="group___seq_middle.html#ga9b6fba99052fb11977559f15192581d4">00163</a> <span class="preprocessor">#define snd_seq_ev_set_priority(ev, high_prior) \</span>
<a name="l00164"></a>00164 <span class="preprocessor">        ((ev)-&gt;flags &amp;= ~SND_SEQ_PRIORITY_MASK,\</span>
<a name="l00165"></a>00165 <span class="preprocessor">         (ev)-&gt;flags |= (high_prior) ? SND_SEQ_PRIORITY_HIGH : SND_SEQ_PRIORITY_NORMAL)</span>
<a name="l00166"></a>00166 <span class="preprocessor"></span>
<a name="l00175"></a><a class="code" href="group___seq_middle.html#ga8c949038f36fd3e27de8b8e419978793">00175</a> <span class="preprocessor">#define snd_seq_ev_set_fixed(ev) \</span>
<a name="l00176"></a>00176 <span class="preprocessor">        ((ev)-&gt;flags &amp;= ~SND_SEQ_EVENT_LENGTH_MASK,\</span>
<a name="l00177"></a>00177 <span class="preprocessor">         (ev)-&gt;flags |= SND_SEQ_EVENT_LENGTH_FIXED)</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span>
<a name="l00189"></a><a class="code" href="group___seq_middle.html#ga12ac15c961d96d3122f7c2f6a0849fb1">00189</a> <span class="preprocessor">#define snd_seq_ev_set_variable(ev, datalen, dataptr) \</span>
<a name="l00190"></a>00190 <span class="preprocessor">        ((ev)-&gt;flags &amp;= ~SND_SEQ_EVENT_LENGTH_MASK,\</span>
<a name="l00191"></a>00191 <span class="preprocessor">         (ev)-&gt;flags |= SND_SEQ_EVENT_LENGTH_VARIABLE,\</span>
<a name="l00192"></a>00192 <span class="preprocessor">         (ev)-&gt;data.ext.len = (datalen),\</span>
<a name="l00193"></a>00193 <span class="preprocessor">         (ev)-&gt;data.ext.ptr = (dataptr))</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span>
<a name="l00205"></a><a class="code" href="group___seq_middle.html#ga993e1f46d8122a227fa0072a73af813e">00205</a> <span class="preprocessor">#define snd_seq_ev_set_varusr(ev, datalen, dataptr) \</span>
<a name="l00206"></a>00206 <span class="preprocessor">        ((ev)-&gt;flags &amp;= ~SND_SEQ_EVENT_LENGTH_MASK,\</span>
<a name="l00207"></a>00207 <span class="preprocessor">         (ev)-&gt;flags |= SND_SEQ_EVENT_LENGTH_VARUSR,\</span>
<a name="l00208"></a>00208 <span class="preprocessor">         (ev)-&gt;data.ext.len = (datalen),\</span>
<a name="l00209"></a>00209 <span class="preprocessor">         (ev)-&gt;data.ext.ptr = (dataptr))</span>
<a name="l00210"></a>00210 <span class="preprocessor"></span>
<a name="l00218"></a><a class="code" href="group___seq_middle.html#gacef573eba71eb2238758f1c178efd1d3">00218</a> <span class="preprocessor">#define snd_seq_ev_set_queue_control(ev, typ, q, val) \</span>
<a name="l00219"></a>00219 <span class="preprocessor">        ((ev)-&gt;type = (typ),\</span>
<a name="l00220"></a>00220 <span class="preprocessor">         snd_seq_ev_set_dest(ev, SND_SEQ_CLIENT_SYSTEM, SND_SEQ_PORT_SYSTEM_TIMER),\</span>
<a name="l00221"></a>00221 <span class="preprocessor">         (ev)-&gt;data.queue.queue = (q),\</span>
<a name="l00222"></a>00222 <span class="preprocessor">         (ev)-&gt;data.queue.param.value = (val))</span>
<a name="l00223"></a>00223 <span class="preprocessor"></span>
<a name="l00231"></a><a class="code" href="group___seq_middle.html#ga4fcbcb1f9e1967a1ec77b569be735d7a">00231</a> <span class="preprocessor">#define snd_seq_ev_set_queue_start(ev, q) \</span>
<a name="l00232"></a>00232 <span class="preprocessor">        snd_seq_ev_set_queue_control(ev, SND_SEQ_EVENT_START, q, 0)</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span>
<a name="l00241"></a><a class="code" href="group___seq_middle.html#ga342554415f9536077408dc1c7331ab36">00241</a> <span class="preprocessor">#define snd_seq_ev_set_queue_stop(ev, q) \</span>
<a name="l00242"></a>00242 <span class="preprocessor">        snd_seq_ev_set_queue_control(ev, SND_SEQ_EVENT_STOP, q, 0)</span>
<a name="l00243"></a>00243 <span class="preprocessor"></span>
<a name="l00251"></a><a class="code" href="group___seq_middle.html#ga32b0ff4c40ffde6e08a7df624193ae40">00251</a> <span class="preprocessor">#define snd_seq_ev_set_queue_continue(ev, q) \</span>
<a name="l00252"></a>00252 <span class="preprocessor">        snd_seq_ev_set_queue_control(ev, SND_SEQ_EVENT_CONTINUE, q, 0)</span>
<a name="l00253"></a>00253 <span class="preprocessor"></span>
<a name="l00260"></a><a class="code" href="group___seq_middle.html#ga3d2a17d5034eb296af311b56374f2b19">00260</a> <span class="preprocessor">#define snd_seq_ev_set_queue_tempo(ev, q, val) \</span>
<a name="l00261"></a>00261 <span class="preprocessor">        snd_seq_ev_set_queue_control(ev, SND_SEQ_EVENT_TEMPO, q, val)</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span>
<a name="l00269"></a><a class="code" href="group___seq_middle.html#gae7cb527a1efa854ba487bb26cfa62c77">00269</a> <span class="preprocessor">#define snd_seq_ev_set_queue_pos_real(ev, q, rtime) \</span>
<a name="l00270"></a>00270 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_SETPOS_TIME,\</span>
<a name="l00271"></a>00271 <span class="preprocessor">         snd_seq_ev_set_dest(ev, SND_SEQ_CLIENT_SYSTEM, SND_SEQ_PORT_SYSTEM_TIMER),\</span>
<a name="l00272"></a>00272 <span class="preprocessor">         (ev)-&gt;data.queue.queue = (q),\</span>
<a name="l00273"></a>00273 <span class="preprocessor">         (ev)-&gt;data.queue.param.time.time = *(rtime))</span>
<a name="l00274"></a>00274 <span class="preprocessor"></span>
<a name="l00281"></a><a class="code" href="group___seq_middle.html#ga8b6057651e037e0df565784f629b5fb8">00281</a> <span class="preprocessor">#define snd_seq_ev_set_queue_pos_tick(ev, q, ttime) \</span>
<a name="l00282"></a>00282 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_SETPOS_TICK,\</span>
<a name="l00283"></a>00283 <span class="preprocessor">         snd_seq_ev_set_dest(ev, SND_SEQ_CLIENT_SYSTEM, SND_SEQ_PORT_SYSTEM_TIMER),\</span>
<a name="l00284"></a>00284 <span class="preprocessor">         (ev)-&gt;data.queue.queue = (q),\</span>
<a name="l00285"></a>00285 <span class="preprocessor">         (ev)-&gt;data.queue.param.time.tick = (ttime))</span>
<a name="l00286"></a>00286 <span class="preprocessor"></span>
<a name="l00287"></a>00287 <span class="comment">/* set and send a queue control event */</span>
<a name="l00288"></a>00288 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga36dee7982baa47ad22ab8437541ea5ef" title="queue controls - start/stop/continue">snd_seq_control_queue</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">int</span> q, <span class="keywordtype">int</span> type, <span class="keywordtype">int</span> value, <a class="code" href="structsnd__seq__event__t.html">snd_seq_event_t</a> *ev);
<a name="l00289"></a>00289 
<a name="l00296"></a><a class="code" href="group___seq_middle.html#ga0c7a86bb19188a00c5a3b4907d558058">00296</a> <span class="preprocessor">#define snd_seq_start_queue(seq, q, ev) \</span>
<a name="l00297"></a>00297 <span class="preprocessor">        snd_seq_control_queue(seq, q, SND_SEQ_EVENT_START, 0, ev)</span>
<a name="l00298"></a>00298 <span class="preprocessor"></span>
<a name="l00305"></a><a class="code" href="group___seq_middle.html#gab62a2e964135fdff96d21835d4cddad6">00305</a> <span class="preprocessor">#define snd_seq_stop_queue(seq, q, ev) \</span>
<a name="l00306"></a>00306 <span class="preprocessor">        snd_seq_control_queue(seq, q, SND_SEQ_EVENT_STOP, 0, ev)</span>
<a name="l00307"></a>00307 <span class="preprocessor"></span>
<a name="l00314"></a><a class="code" href="group___seq_middle.html#gad6b0c90be37eeb583318c9077f095b86">00314</a> <span class="preprocessor">#define snd_seq_continue_queue(seq, q, ev) \</span>
<a name="l00315"></a>00315 <span class="preprocessor">        snd_seq_control_queue(seq, q, SND_SEQ_EVENT_CONTINUE, 0, ev)</span>
<a name="l00316"></a>00316 <span class="preprocessor"></span>
<a name="l00324"></a><a class="code" href="group___seq_middle.html#gab77f13c0b39dec12ef983eb706925d00">00324</a> <span class="preprocessor">#define snd_seq_change_queue_tempo(seq, q, tempo, ev) \</span>
<a name="l00325"></a>00325 <span class="preprocessor">        snd_seq_control_queue(seq, q, SND_SEQ_EVENT_TEMPO, tempo, ev)</span>
<a name="l00326"></a>00326 <span class="preprocessor"></span>
<a name="l00327"></a>00327 <span class="comment">/* create a port - simple version - return the port number */</span>
<a name="l00328"></a>00328 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga9368266bde7b5c0f8d5ddeaf64914719" title="create a port - simple version">snd_seq_create_simple_port</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,
<a name="l00329"></a>00329                                <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> caps, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> type);
<a name="l00330"></a>00330 <span class="comment">/* delete the port */</span>
<a name="l00331"></a>00331 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga8ac4c3a85750550f2978ca720a6329ca" title="delete the port">snd_seq_delete_simple_port</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">int</span> port);
<a name="l00332"></a>00332 
<a name="l00333"></a>00333 <span class="comment">/* simple subscription between this port and another port</span>
<a name="l00334"></a>00334 <span class="comment">   (w/o exclusive &amp; time conversion)</span>
<a name="l00335"></a>00335 <span class="comment">   */</span>
<a name="l00336"></a>00336 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga1382029795fa101a3b8cc0af7b83b639" title="simple subscription (w/o exclusive &amp;amp; time conversion)">snd_seq_connect_from</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">int</span> my_port, <span class="keywordtype">int</span> src_client, <span class="keywordtype">int</span> src_port);
<a name="l00337"></a>00337 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#gab39e210c5d93e96c241644f334c6c9ca" title="simple subscription (w/o exclusive &amp;amp; time conversion)">snd_seq_connect_to</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">int</span> my_port, <span class="keywordtype">int</span> dest_client, <span class="keywordtype">int</span> dest_port);
<a name="l00338"></a>00338 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga931d199c780be30524aa24e58c59f6b9" title="simple disconnection">snd_seq_disconnect_from</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">int</span> my_port, <span class="keywordtype">int</span> src_client, <span class="keywordtype">int</span> src_port);
<a name="l00339"></a>00339 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#gafe5756afcd471b2d6bbd457c7abc5e89" title="simple disconnection">snd_seq_disconnect_to</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">int</span> my_port, <span class="keywordtype">int</span> dest_client, <span class="keywordtype">int</span> dest_port);
<a name="l00340"></a>00340 
<a name="l00341"></a>00341 <span class="comment">/*</span>
<a name="l00342"></a>00342 <span class="comment"> * set client information</span>
<a name="l00343"></a>00343 <span class="comment"> */</span>
<a name="l00344"></a>00344 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#gaec3acab3bfb3df3f0c9ccc4903570b9d" title="set client name">snd_seq_set_client_name</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00345"></a>00345 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga888bf17bbc8141d1624f7bbef52dddce" title="add client event filter">snd_seq_set_client_event_filter</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">int</span> event_type);
<a name="l00346"></a>00346 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga38e40d84154122798c9fad8e56c60a0f" title="change the output pool size of the given client">snd_seq_set_client_pool_output</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">size_t</span> size);
<a name="l00347"></a>00347 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga597d2417e0fd512f56d31464cc2ea7d7" title="change the output room size of the given client">snd_seq_set_client_pool_output_room</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">size_t</span> size);
<a name="l00348"></a>00348 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga1344c7aadb847bd409093c179557732d" title="change the input pool size of the given client">snd_seq_set_client_pool_input</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <span class="keywordtype">size_t</span> size);
<a name="l00349"></a>00349 <span class="comment">/* sync output queue */</span>
<a name="l00350"></a>00350 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga732ad887b457771b7db47908186e8cce" title="wait until all events are processed">snd_seq_sync_output_queue</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq);
<a name="l00351"></a>00351 
<a name="l00352"></a>00352 <span class="comment">/*</span>
<a name="l00353"></a>00353 <span class="comment"> * parse the given string and get the sequencer address</span>
<a name="l00354"></a>00354 <span class="comment"> */</span>
<a name="l00355"></a>00355 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga692043bd9cb709b15513b06cea5bf0e8" title="parse the given string and get the sequencer address">snd_seq_parse_address</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq, <a class="code" href="structsnd__seq__addr__t.html">snd_seq_addr_t</a> *addr, <span class="keyword">const</span> <span class="keywordtype">char</span> *str);
<a name="l00356"></a>00356 
<a name="l00357"></a>00357 <span class="comment">/*</span>
<a name="l00358"></a>00358 <span class="comment"> * reset client input/output pool</span>
<a name="l00359"></a>00359 <span class="comment"> */</span>
<a name="l00360"></a>00360 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#ga49d2acf57c4493a95eaaa19d8199f6f2" title="reset client output pool">snd_seq_reset_pool_output</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq);
<a name="l00361"></a>00361 <span class="keywordtype">int</span> <a class="code" href="group___seq_middle.html#gae90243ea4d4e534bbca2b3965ff8efe9" title="reset client input pool">snd_seq_reset_pool_input</a>(<a class="code" href="group___sequencer.html#gae141149958a7458806152ed5942a1acd">snd_seq_t</a> *seq);
<a name="l00362"></a>00362 
<a name="l00371"></a><a class="code" href="group___seq_middle.html#ga544adc6b2a43edab107962754a772778">00371</a> <span class="preprocessor">#define snd_seq_ev_set_note(ev, ch, key, vel, dur) \</span>
<a name="l00372"></a>00372 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_NOTE,\</span>
<a name="l00373"></a>00373 <span class="preprocessor">         snd_seq_ev_set_fixed(ev),\</span>
<a name="l00374"></a>00374 <span class="preprocessor">         (ev)-&gt;data.note.channel = (ch),\</span>
<a name="l00375"></a>00375 <span class="preprocessor">         (ev)-&gt;data.note.note = (key),\</span>
<a name="l00376"></a>00376 <span class="preprocessor">         (ev)-&gt;data.note.velocity = (vel),\</span>
<a name="l00377"></a>00377 <span class="preprocessor">         (ev)-&gt;data.note.duration = (dur))</span>
<a name="l00378"></a>00378 <span class="preprocessor"></span>
<a name="l00386"></a><a class="code" href="group___seq_middle.html#ga61fbd95aadd4a80f4ff8db5f8f28172f">00386</a> <span class="preprocessor">#define snd_seq_ev_set_noteon(ev, ch, key, vel) \</span>
<a name="l00387"></a>00387 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_NOTEON,\</span>
<a name="l00388"></a>00388 <span class="preprocessor">         snd_seq_ev_set_fixed(ev),\</span>
<a name="l00389"></a>00389 <span class="preprocessor">         (ev)-&gt;data.note.channel = (ch),\</span>
<a name="l00390"></a>00390 <span class="preprocessor">         (ev)-&gt;data.note.note = (key),\</span>
<a name="l00391"></a>00391 <span class="preprocessor">         (ev)-&gt;data.note.velocity = (vel))</span>
<a name="l00392"></a>00392 <span class="preprocessor"></span>
<a name="l00400"></a><a class="code" href="group___seq_middle.html#gab9b466031485504fd5b4300def95de7c">00400</a> <span class="preprocessor">#define snd_seq_ev_set_noteoff(ev, ch, key, vel) \</span>
<a name="l00401"></a>00401 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_NOTEOFF,\</span>
<a name="l00402"></a>00402 <span class="preprocessor">         snd_seq_ev_set_fixed(ev),\</span>
<a name="l00403"></a>00403 <span class="preprocessor">         (ev)-&gt;data.note.channel = (ch),\</span>
<a name="l00404"></a>00404 <span class="preprocessor">         (ev)-&gt;data.note.note = (key),\</span>
<a name="l00405"></a>00405 <span class="preprocessor">         (ev)-&gt;data.note.velocity = (vel))</span>
<a name="l00406"></a>00406 <span class="preprocessor"></span>
<a name="l00414"></a><a class="code" href="group___seq_middle.html#ga09c562a0d1745dc1a73e7347d51af913">00414</a> <span class="preprocessor">#define snd_seq_ev_set_keypress(ev,ch,key,vel) \</span>
<a name="l00415"></a>00415 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_KEYPRESS,\</span>
<a name="l00416"></a>00416 <span class="preprocessor">         snd_seq_ev_set_fixed(ev),\</span>
<a name="l00417"></a>00417 <span class="preprocessor">         (ev)-&gt;data.note.channel = (ch),\</span>
<a name="l00418"></a>00418 <span class="preprocessor">         (ev)-&gt;data.note.note = (key),\</span>
<a name="l00419"></a>00419 <span class="preprocessor">         (ev)-&gt;data.note.velocity = (vel))</span>
<a name="l00420"></a>00420 <span class="preprocessor"></span>
<a name="l00428"></a><a class="code" href="group___seq_middle.html#ga1658bb76bb89c8bac1e7b0140d72c23c">00428</a> <span class="preprocessor">#define snd_seq_ev_set_controller(ev,ch,cc,val) \</span>
<a name="l00429"></a>00429 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_CONTROLLER,\</span>
<a name="l00430"></a>00430 <span class="preprocessor">         snd_seq_ev_set_fixed(ev),\</span>
<a name="l00431"></a>00431 <span class="preprocessor">         (ev)-&gt;data.control.channel = (ch),\</span>
<a name="l00432"></a>00432 <span class="preprocessor">         (ev)-&gt;data.control.param = (cc),\</span>
<a name="l00433"></a>00433 <span class="preprocessor">         (ev)-&gt;data.control.value = (val))</span>
<a name="l00434"></a>00434 <span class="preprocessor"></span>
<a name="l00441"></a><a class="code" href="group___seq_middle.html#gab74005fe3b04460687f88ba79695d631">00441</a> <span class="preprocessor">#define snd_seq_ev_set_pgmchange(ev,ch,val) \</span>
<a name="l00442"></a>00442 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_PGMCHANGE,\</span>
<a name="l00443"></a>00443 <span class="preprocessor">         snd_seq_ev_set_fixed(ev),\</span>
<a name="l00444"></a>00444 <span class="preprocessor">         (ev)-&gt;data.control.channel = (ch),\</span>
<a name="l00445"></a>00445 <span class="preprocessor">         (ev)-&gt;data.control.value = (val))</span>
<a name="l00446"></a>00446 <span class="preprocessor"></span>
<a name="l00453"></a><a class="code" href="group___seq_middle.html#ga8da40bfd56e00ebec775e5241d86a3e3">00453</a> <span class="preprocessor">#define snd_seq_ev_set_pitchbend(ev,ch,val) \</span>
<a name="l00454"></a>00454 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_PITCHBEND,\</span>
<a name="l00455"></a>00455 <span class="preprocessor">         snd_seq_ev_set_fixed(ev),\</span>
<a name="l00456"></a>00456 <span class="preprocessor">         (ev)-&gt;data.control.channel = (ch),\</span>
<a name="l00457"></a>00457 <span class="preprocessor">         (ev)-&gt;data.control.value = (val))</span>
<a name="l00458"></a>00458 <span class="preprocessor"></span>
<a name="l00465"></a><a class="code" href="group___seq_middle.html#gaa475a6778116256734e7da45f4eb7af8">00465</a> <span class="preprocessor">#define snd_seq_ev_set_chanpress(ev,ch,val) \</span>
<a name="l00466"></a>00466 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_CHANPRESS,\</span>
<a name="l00467"></a>00467 <span class="preprocessor">         snd_seq_ev_set_fixed(ev),\</span>
<a name="l00468"></a>00468 <span class="preprocessor">         (ev)-&gt;data.control.channel = (ch),\</span>
<a name="l00469"></a>00469 <span class="preprocessor">         (ev)-&gt;data.control.value = (val))</span>
<a name="l00470"></a>00470 <span class="preprocessor"></span>
<a name="l00479"></a><a class="code" href="group___seq_middle.html#ga104862c436dcc8f23892be44f50bc90f">00479</a> <span class="preprocessor">#define snd_seq_ev_set_sysex(ev,datalen,dataptr) \</span>
<a name="l00480"></a>00480 <span class="preprocessor">        ((ev)-&gt;type = SND_SEQ_EVENT_SYSEX,\</span>
<a name="l00481"></a>00481 <span class="preprocessor">         snd_seq_ev_set_variable(ev, datalen, dataptr))</span>
<a name="l00482"></a>00482 <span class="preprocessor"></span>
<a name="l00485"></a>00485 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00486"></a>00486 <span class="preprocessor"></span>}
<a name="l00487"></a>00487 <span class="preprocessor">#endif</span>
<a name="l00488"></a>00488 <span class="preprocessor"></span>
<a name="l00489"></a>00489 <span class="preprocessor">#endif </span><span class="comment">/* __ALSA_SEQMID_H */</span>
<a name="l00490"></a>00490 
</pre></div></div>
<!--- 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">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on Sat Nov 20 07:42:23 2010 for ALSA project - the C library reference by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>