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 : /usr/share/doc/libjack-dev/HTML/ |
Current File : //usr/share/doc/libjack-dev/HTML/group__ClientFunctions.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>JACK-AUDIO-CONNECTION-KIT: Creating & manipulating clients</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">JACK-AUDIO-CONNECTION-KIT  <span id="projectnumber">0.122.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.1.2 --> <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="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">Creating & manipulating clients</div> </div> </div><!--header--> <div class="contents"> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:gabbd2041bca191943b6ef29a991a131c5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#gabbd2041bca191943b6ef29a991a131c5">jack_client_open</a> (const char *client_name, <a class="el" href="types_8h.html#a0ef5011e5aab7655ad0d64babf7d91f0">jack_options_t</a> options, <a class="el" href="types_8h.html#a49053418570427a7a99d1bb45fb43f38">jack_status_t</a> *status,...) JACK_OPTIONAL_WEAK_EXPORT</td></tr> <tr class="memitem:ga97482adad8116b76635a63f646a2d2f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#ga97482adad8116b76635a63f646a2d2f5">jack_client_new</a> (const char *client_name) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT</td></tr> <tr class="memitem:ga405646705e600d8bf66327bdbab8e363"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#ga405646705e600d8bf66327bdbab8e363">jack_client_close</a> (<a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> *<a class="el" href="simple__client_8c.html#afed7053cd7bdd1cce33dec7213f340ea">client</a>) JACK_OPTIONAL_WEAK_EXPORT</td></tr> <tr class="memitem:gab8b16ee616207532d0585d04a0bd1d60"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#gab8b16ee616207532d0585d04a0bd1d60">jack_client_name_size</a> (void) JACK_OPTIONAL_WEAK_EXPORT</td></tr> <tr class="memitem:ga49f7d301475b45a8a3cc0da848d81e2f"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#ga49f7d301475b45a8a3cc0da848d81e2f">jack_get_client_name</a> (<a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> *<a class="el" href="simple__client_8c.html#afed7053cd7bdd1cce33dec7213f340ea">client</a>) JACK_OPTIONAL_WEAK_EXPORT</td></tr> <tr class="memitem:ga87be6679700acc40a0da17ac9ba3a31e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#ga87be6679700acc40a0da17ac9ba3a31e">jack_internal_client_new</a> (const char *client_name, const char *load_name, const char *load_init) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT</td></tr> <tr class="memitem:ga0ad890884c983c78ba93ed2d9b8ee8cc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#ga0ad890884c983c78ba93ed2d9b8ee8cc">jack_internal_client_close</a> (const char *client_name) JACK_OPTIONAL_WEAK_DEPRECATED_EXPORT</td></tr> <tr class="memitem:ga9800d5b29bd7670d9944a15f6ea0ecf8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#ga9800d5b29bd7670d9944a15f6ea0ecf8">jack_activate</a> (<a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> *<a class="el" href="simple__client_8c.html#afed7053cd7bdd1cce33dec7213f340ea">client</a>) JACK_OPTIONAL_WEAK_EXPORT</td></tr> <tr class="memitem:ga2c6447b766b13d3aa356aba2b48e51fa"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#ga2c6447b766b13d3aa356aba2b48e51fa">jack_deactivate</a> (<a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> *<a class="el" href="simple__client_8c.html#afed7053cd7bdd1cce33dec7213f340ea">client</a>) JACK_OPTIONAL_WEAK_EXPORT</td></tr> <tr class="memitem:ga4e78f0a2ca6c837709c7ec641afd9954"><td class="memItemLeft" align="right" valign="top"><a class="el" href="types_8h.html#aa1b0573fe4fefa52a5eb4d8c266783b4">jack_native_thread_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ClientFunctions.html#ga4e78f0a2ca6c837709c7ec641afd9954">jack_client_thread_id</a> (<a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> *) JACK_OPTIONAL_WEAK_EXPORT</td></tr> </table> <a name="details" id="details"></a><h2>Detailed Description</h2> <p>Note: More documentation can be found in <a class="el" href="types_8h.html">jack/types.h</a>. </p> <h2>Function Documentation</h2> <a class="anchor" id="ga9800d5b29bd7670d9944a15f6ea0ecf8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int jack_activate </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> * </td> <td class="paramname"><em>client</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Tell the Jack server that the program is ready to start processing audio.</p> <dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise a non-zero error code </dd></dl> <p>Referenced by <a class="el" href="inprocess_8c.html#a872c1ad15ec7ba35574b0bafc91212c9">jack_initialize()</a>, and <a class="el" href="simple__client_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main()</a>.</p> </div> </div> <a class="anchor" id="ga405646705e600d8bf66327bdbab8e363"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int jack_client_close </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> * </td> <td class="paramname"><em>client</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Disconnects an external client from a JACK server.</p> <dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise a non-zero error code </dd></dl> <p>Referenced by <a class="el" href="simple__client_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main()</a>.</p> </div> </div> <a class="anchor" id="gab8b16ee616207532d0585d04a0bd1d60"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int jack_client_name_size </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the maximum number of characters in a JACK client name including the final NULL character. This value is a constant. </dd></dl> </div> </div> <a class="anchor" id="ga97482adad8116b76635a63f646a2d2f5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a>* jack_client_new </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>client_name</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p><b>THIS FUNCTION IS DEPRECATED AND SHOULD NOT BE USED IN NEW JACK CLIENTS</b> </p> </div> </div> <a class="anchor" id="gabbd2041bca191943b6ef29a991a131c5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a>* jack_client_open </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>client_name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#a0ef5011e5aab7655ad0d64babf7d91f0">jack_options_t</a> </td> <td class="paramname"><em>options</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="types_8h.html#a49053418570427a7a99d1bb45fb43f38">jack_status_t</a> * </td> <td class="paramname"><em>status</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"><em>...</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Open an external client session with a JACK server. This interface is more complex but more powerful than <a class="el" href="group__ClientFunctions.html#ga97482adad8116b76635a63f646a2d2f5">jack_client_new()</a>. With it, clients may choose which of several servers to connect, and control whether and how to start the server automatically, if it was not already running. There is also an option for JACK to generate a unique client name, when necessary.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">client_name</td><td>of at most <a class="el" href="group__ClientFunctions.html#gab8b16ee616207532d0585d04a0bd1d60">jack_client_name_size()</a> characters. The name scope is local to each server. Unless forbidden by the <a class="el" href="types_8h.html#a396617de2ef101891c51346f408a375ea352b176ffa092ec946a06b707f6aa21b">JackUseExactName</a> option, the server will modify this name to create a unique variant, if needed.</td></tr> <tr><td class="paramname">options</td><td>formed by OR-ing together <a class="el" href="types_8h.html#a396617de2ef101891c51346f408a375e">JackOptions</a> bits. Only the <a class="el" href="types_8h.html#ab39e7f78dba631f3c0d34ac4cddcf80f">JackOpenOptions</a> bits are allowed.</td></tr> <tr><td class="paramname">status</td><td>(if non-NULL) an address for JACK to return information from the open operation. This status word is formed by OR-ing together the relevant <a class="el" href="types_8h.html#aaf80297bce18297403b99e3d320ac8a8">JackStatus</a> bits.</td></tr> </table> </dd> </dl> <p><b>Optional parameters:</b> depending on corresponding [<em>options</em> bits] additional parameters may follow <em>status</em> (in this order).</p> <ul> <li>[<a class="el" href="types_8h.html#a396617de2ef101891c51346f408a375ea348557bfdc579daed2e35cc41c4f09c7">JackServerName</a>] <em>(char *) server_name</em> selects from among several possible concurrent server instances. Server names are unique to each user. If unspecified, use "default" unless $JACK_DEFAULT_SERVER is defined in the process environment.</li> </ul> <dl class="section return"><dt>Returns</dt><dd>Opaque client handle if successful. If this is NULL, the open operation failed, <em>*status</em> includes <a class="el" href="types_8h.html#aaf80297bce18297403b99e3d320ac8a8a354fbb027d989173f50921d239f3812b">JackFailure</a> and the caller is not a JACK client. </dd></dl> <p>Referenced by <a class="el" href="simple__client_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main()</a>.</p> </div> </div> <a class="anchor" id="ga4e78f0a2ca6c837709c7ec641afd9954"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#aa1b0573fe4fefa52a5eb4d8c266783b4">jack_native_thread_t</a> jack_client_thread_id </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> * </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>the pthread ID of the thread running the JACK client side code. </dd></dl> </div> </div> <a class="anchor" id="ga2c6447b766b13d3aa356aba2b48e51fa"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int jack_deactivate </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> * </td> <td class="paramname"><em>client</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Tell the Jack server to remove this <em>client</em> from the process graph. Also, disconnect all ports belonging to it, since inactive clients have no port connections.</p> <dl class="section return"><dt>Returns</dt><dd>0 on success, otherwise a non-zero error code </dd></dl> </div> </div> <a class="anchor" id="ga49f7d301475b45a8a3cc0da848d81e2f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char* jack_get_client_name </td> <td>(</td> <td class="paramtype"><a class="el" href="types_8h.html#a96cf103940d2ee71b141d4b9d0c116bf">jack_client_t</a> * </td> <td class="paramname"><em>client</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd>pointer to actual client name. This is useful when <a class="el" href="types_8h.html#a396617de2ef101891c51346f408a375ea352b176ffa092ec946a06b707f6aa21b">JackUseExactName</a> is not specified on open and <a class="el" href="types_8h.html#aaf80297bce18297403b99e3d320ac8a8a09a73b951f3601ae9436bd3429ac0691">JackNameNotUnique</a> status was returned. In that case, the actual name will differ from the <em>client_name</em> requested. </dd></dl> <p>Referenced by <a class="el" href="simple__client_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main()</a>.</p> </div> </div> <a class="anchor" id="ga0ad890884c983c78ba93ed2d9b8ee8cc"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void jack_internal_client_close </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>client_name</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Remove an internal client from a JACK server.</p> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>Please use <a class="el" href="intclient_8h.html#adca1931231a03563544281cda1530ca6">jack_internal_client_load()</a>. </dd></dl> </div> </div> <a class="anchor" id="ga87be6679700acc40a0da17ac9ba3a31e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int jack_internal_client_new </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>client_name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>load_name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>load_init</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Load an internal client into the Jack server.</p> <p>Internal clients run inside the JACK server process. They can use most of the same functions as external clients. Each internal client must declare <a class="el" href="inprocess_8c.html#a872c1ad15ec7ba35574b0bafc91212c9">jack_initialize()</a> and <a class="el" href="inprocess_8c.html#a1343309803bc07aacba7f4fd8f46b0a3">jack_finish()</a> entry points, called at load and unload times. See <a class="el" href="inprocess_8c.html" title="This demonstrates the basic concepts for writing a client that runs within the JACK server process...">inprocess.c</a> for an example of how to write an internal client.</p> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>Please use <a class="el" href="intclient_8h.html#adca1931231a03563544281cda1530ca6">jack_internal_client_load()</a>.</dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">client_name</td><td>of at most <a class="el" href="group__ClientFunctions.html#gab8b16ee616207532d0585d04a0bd1d60">jack_client_name_size()</a> characters.</td></tr> <tr><td class="paramname">load_name</td><td>of a shared object file containing the code for the new client.</td></tr> <tr><td class="paramname">load_init</td><td>an arbitary string passed to the <a class="el" href="inprocess_8c.html#a872c1ad15ec7ba35574b0bafc91212c9">jack_initialize()</a> routine of the new client (may be NULL).</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 if successful. </dd></dl> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Sun Sep 30 2012 09:08:39 for JACK-AUDIO-CONNECTION-KIT by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.1.2 </small></address> </body> </html>
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare