<!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>LIBFFADO: ffado_device_info Struct Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <script type="text/javascript"> function hasClass(ele,cls) { return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); } function addClass(ele,cls) { if (!this.hasClass(ele,cls)) ele.className += " "+cls; } function removeClass(ele,cls) { if (hasClass(ele,cls)) { var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); ele.className=ele.className.replace(reg,' '); } } function toggleVisibility(linkObj) { var base = linkObj.getAttribute('id'); var summary = document.getElementById(base + '-summary'); var content = document.getElementById(base + '-content'); var trigger = document.getElementById(base + '-trigger'); if ( hasClass(linkObj,'closed') ) { summary.style.display = 'none'; content.style.display = 'block'; trigger.src = 'open.png'; removeClass(linkObj,'closed'); addClass(linkObj,'opened'); } else if ( hasClass(linkObj,'opened') ) { summary.style.display = 'block'; content.style.display = 'none'; trigger.src = 'closed.png'; removeClass(linkObj,'opened'); addClass(linkObj,'closed'); } return false; } </script> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-attribs">Public Attributes</a> </div> <div class="headertitle"> <h1>ffado_device_info Struct Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="ffado_device_info" --> <p><code>#include <<a class="el" href="ffado_8h_source.html">ffado.h</a>></code></p> <p><a href="structffado__device__info-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="structffado__device__info.html#a977f42aeec8c3c787f05cd18f6e1c7f0">nb_device_spec_strings</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">char ** </td><td class="memItemRight" valign="bottom"><a class="el" href="structffado__device__info.html#a7540ebbf8601d70dbdc2699b348e2890">device_spec_strings</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="structffado__device__info.html#a0efde4e54c07d275a17a6a95a5221715">reserved</a> [32]</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>This struct serves to define the devices that should be used by the library device_spec_strings is an array of pointers that should contain nb_device_spec_strings valid pointers to strings.</p> <p>The spec strings should be null terminated and can be no longer than FFADO_MAX_SPECSTRINGS.</p> <p>nb_device_spec_strings < FFADO_MAX_SPECSTRING_LENGTH nb_device_spec_strings >= 0</p> <p>If nb_device_spec_strings == 0, all busses are scanned for attached devices, and all found devices that are supported are combined into one large pseudo-device. The device order is defined by the GUID of the device. Devices with lower GUID's will be the first ones.</p> <p>If multiple device specifications are present, the device order is defined as follows:</p> <ul> <li>device(s) that correspond to a spec string with a lower index will be added before devices from higher indexes.</li> <li>if a spec string results in multiple devices, they are sorted by GUID unless the spec format dictates otherwise.</li> </ul> <p>The actual meaning of the device specification should be one of the following:</p> <ul> <li>Format 1: "hw:x[,y[,z]]" x = the firewire bus to use ('port' in raw1394 terminology) (mandatory) y = the node id the device currently has (bus resets might change that, but FFADO will track these changes and keep using the device specified on startup) (optional) z = the stream direction to use. 0 => capture (record) channels only 1 => playback channels only other/unspecified => both playback and capture (optional)</li> </ul> <ul> <li>Format 2: the device alias as defined in the ffado config file (UNIMPLEMENTED) </li> </ul> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a7540ebbf8601d70dbdc2699b348e2890"></a><!-- doxytag: member="ffado_device_info::device_spec_strings" ref="a7540ebbf8601d70dbdc2699b348e2890" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char** <a class="el" href="structffado__device__info.html#a7540ebbf8601d70dbdc2699b348e2890">ffado_device_info::device_spec_strings</a></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a977f42aeec8c3c787f05cd18f6e1c7f0"></a><!-- doxytag: member="ffado_device_info::nb_device_spec_strings" ref="a977f42aeec8c3c787f05cd18f6e1c7f0" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned int <a class="el" href="structffado__device__info.html#a977f42aeec8c3c787f05cd18f6e1c7f0">ffado_device_info::nb_device_spec_strings</a></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a0efde4e54c07d275a17a6a95a5221715"></a><!-- doxytag: member="ffado_device_info::reserved" ref="a0efde4e54c07d275a17a6a95a5221715" args="[32]" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t <a class="el" href="structffado__device__info.html#a0efde4e54c07d275a17a6a95a5221715">ffado_device_info::reserved</a>[32]</td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="ffado_8h_source.html">ffado.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Fri Jul 30 2010 for LIBFFADO by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>