Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > c6a4530fb2a89779c232c42c21f3bfa2 > files > 229

pulseaudio-libs-devel-2.1-7.fc18.i686.rpm

<!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.3"/>
<title>PulseAudio: pa_buffer_attr Struct Reference</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</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">PulseAudio
   &#160;<span id="projectnumber">2.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structpa__buffer__attr.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">pa_buffer_attr Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Playback and record buffer metrics.  
 <a href="structpa__buffer__attr.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:abef20d3a6cab53f716846125353e56a4"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpa__buffer__attr.html#abef20d3a6cab53f716846125353e56a4">maxlength</a></td></tr>
<tr class="memdesc:abef20d3a6cab53f716846125353e56a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum length of the buffer in bytes.  <a href="#abef20d3a6cab53f716846125353e56a4"></a><br/></td></tr>
<tr class="separator:abef20d3a6cab53f716846125353e56a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7e8f3348cbda863b6f1dd55a9024b7a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpa__buffer__attr.html#aa7e8f3348cbda863b6f1dd55a9024b7a">tlength</a></td></tr>
<tr class="memdesc:aa7e8f3348cbda863b6f1dd55a9024b7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Playback only: target length of the buffer.  <a href="#aa7e8f3348cbda863b6f1dd55a9024b7a"></a><br/></td></tr>
<tr class="separator:aa7e8f3348cbda863b6f1dd55a9024b7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdbe30979a50075479ee46c56cc724ee"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpa__buffer__attr.html#acdbe30979a50075479ee46c56cc724ee">prebuf</a></td></tr>
<tr class="memdesc:acdbe30979a50075479ee46c56cc724ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Playback only: pre-buffering.  <a href="#acdbe30979a50075479ee46c56cc724ee"></a><br/></td></tr>
<tr class="separator:acdbe30979a50075479ee46c56cc724ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4571c0c0cd4e1561177172497e886000"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpa__buffer__attr.html#a4571c0c0cd4e1561177172497e886000">minreq</a></td></tr>
<tr class="memdesc:a4571c0c0cd4e1561177172497e886000"><td class="mdescLeft">&#160;</td><td class="mdescRight">Playback only: minimum request.  <a href="#a4571c0c0cd4e1561177172497e886000"></a><br/></td></tr>
<tr class="separator:a4571c0c0cd4e1561177172497e886000"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2877c9500727299a2d143ef0af13f908"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpa__buffer__attr.html#a2877c9500727299a2d143ef0af13f908">fragsize</a></td></tr>
<tr class="memdesc:a2877c9500727299a2d143ef0af13f908"><td class="mdescLeft">&#160;</td><td class="mdescRight">Recording only: fragment size.  <a href="#a2877c9500727299a2d143ef0af13f908"></a><br/></td></tr>
<tr class="separator:a2877c9500727299a2d143ef0af13f908"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Playback and record buffer metrics. </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="a2877c9500727299a2d143ef0af13f908"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t pa_buffer_attr::fragsize</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Recording only: fragment size. </p>
<p>The server sends data in blocks of fragsize bytes size. Large values diminish interactivity with other operations on the connection context but decrease control overhead. It is recommended to set this to (uint32_t) -1, which will initialize this to a value that is deemed sensible by the server. However, this value will default to something like 2s, i.e. for applications that have specific latency requirements this value should be set to the maximum latency that the application can deal with. If PA_STREAM_ADJUST_LATENCY is set the overall source latency will be adjusted according to this value. If it is not set the source latency is left unmodified. </p>

</div>
</div>
<a class="anchor" id="abef20d3a6cab53f716846125353e56a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t pa_buffer_attr::maxlength</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Maximum length of the buffer in bytes. </p>
<p>Setting this to (uint32_t) -1 will initialize this to the maximum value supported by server, which is recommended. </p>

</div>
</div>
<a class="anchor" id="a4571c0c0cd4e1561177172497e886000"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t pa_buffer_attr::minreq</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Playback only: minimum request. </p>
<p>The server does not request less than minreq bytes from the client, instead waits until the buffer is free enough to request more bytes at once. It is recommended to set this to (uint32_t) -1, which will initialize this to a value that is deemed sensible by the server. This should be set to a value that gives PulseAudio enough time to move the data from the per-stream playback buffer into the hardware playback buffer. </p>

</div>
</div>
<a class="anchor" id="acdbe30979a50075479ee46c56cc724ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t pa_buffer_attr::prebuf</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Playback only: pre-buffering. </p>
<p>The server does not start with playback before at least prebuf bytes are available in the buffer. It is recommended to set this to (uint32_t) -1, which will initialize this to the same value as tlength, whatever that may be. Initialize to 0 to enable manual start/stop control of the stream. This means that playback will not stop on underrun and playback will not start automatically. Instead <a class="el" href="stream_8h.html#a14e698233ac2d246646651955ab0ec7b" title="Pause (or resume) playback of this stream temporarily.">pa_stream_cork()</a> needs to be called explicitly. If you set this value to 0 you should also set PA_STREAM_START_CORKED. </p>

</div>
</div>
<a class="anchor" id="aa7e8f3348cbda863b6f1dd55a9024b7a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t pa_buffer_attr::tlength</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Playback only: target length of the buffer. </p>
<p>The server tries to assure that at least tlength bytes are always available in the per-stream server-side playback buffer. It is recommended to set this to (uint32_t) -1, which will initialize this to a value that is deemed sensible by the server. However, this value will default to something like 2s, i.e. for applications that have specific latency requirements this value should be set to the maximum latency that the application can deal with. When PA_STREAM_ADJUST_LATENCY is not set this value will influence only the per-stream playback buffer size. When PA_STREAM_ADJUST_LATENCY is set the overall latency of the sink plus the playback buffer size is configured to this value. Set PA_STREAM_ADJUST_LATENCY if you are interested in adjusting the overall latency. Don't set it if you are interested in configuring the server-side per-stream playback buffer size. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="def_8h_source.html">def.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structpa__buffer__attr.html">pa_buffer_attr</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3 </li>
  </ul>
</div>
</body>
</html>