Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 4f48f620eaa1d8b8f904a92a0540d40f > files > 928

audaspace-doc-1.3.0-18.mga7.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Audaspace: DoubleReader Class 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.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 id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Audaspace
   &#160;<span id="projectnumber">1.3.0</span>
   </div>
   <div id="projectbrief">A high level audio library.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

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

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classDoubleReader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">DoubleReader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This reader plays two readers sequently.  
 <a href="classDoubleReader.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="DoubleReader_8h_source.html">DoubleReader.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for DoubleReader:</div>
<div class="dyncontent">
<div class="center"><img src="classDoubleReader__inherit__graph.png" border="0" usemap="#DoubleReader_inherit__map" alt="Inheritance graph"/></div>
<map name="DoubleReader_inherit__map" id="DoubleReader_inherit__map">
<area shape="rect"  title="This reader plays two readers sequently." alt="" coords="5,80,115,107"/>
<area shape="rect"  href="classIReader.html" title="This class represents a sound source as stream or as buffer which can be read for example by another ..." alt="" coords="25,5,95,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a10eba1e6dd89236951a63451acd5a810"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleReader.html#a10eba1e6dd89236951a63451acd5a810">DoubleReader</a> (std::shared_ptr&lt; <a class="el" href="classIReader.html">IReader</a> &gt; reader1, std::shared_ptr&lt; <a class="el" href="classIReader.html">IReader</a> &gt; reader2)</td></tr>
<tr class="memdesc:a10eba1e6dd89236951a63451acd5a810"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new double reader.  <a href="#a10eba1e6dd89236951a63451acd5a810">More...</a><br /></td></tr>
<tr class="separator:a10eba1e6dd89236951a63451acd5a810"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae70418718f36df7bac48babde530dc62"><td class="memItemLeft" align="right" valign="top"><a id="ae70418718f36df7bac48babde530dc62"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleReader.html#ae70418718f36df7bac48babde530dc62">~DoubleReader</a> ()</td></tr>
<tr class="memdesc:ae70418718f36df7bac48babde530dc62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys the reader. <br /></td></tr>
<tr class="separator:ae70418718f36df7bac48babde530dc62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7df8d269402c7dff4f914208f3ee8a2"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleReader.html#ae7df8d269402c7dff4f914208f3ee8a2">isSeekable</a> () const</td></tr>
<tr class="memdesc:ae7df8d269402c7dff4f914208f3ee8a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tells whether the source provides seeking functionality or not.  <a href="#ae7df8d269402c7dff4f914208f3ee8a2">More...</a><br /></td></tr>
<tr class="separator:ae7df8d269402c7dff4f914208f3ee8a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afad44dd3fa7d56a5f7611959df26406b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleReader.html#afad44dd3fa7d56a5f7611959df26406b">seek</a> (int position)</td></tr>
<tr class="memdesc:afad44dd3fa7d56a5f7611959df26406b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Seeks to a specific position in the source.  <a href="#afad44dd3fa7d56a5f7611959df26406b">More...</a><br /></td></tr>
<tr class="separator:afad44dd3fa7d56a5f7611959df26406b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7897720a138addb1ee57181a71d63479"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleReader.html#a7897720a138addb1ee57181a71d63479">getLength</a> () const</td></tr>
<tr class="memdesc:a7897720a138addb1ee57181a71d63479"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an approximated length of the source in samples.  <a href="#a7897720a138addb1ee57181a71d63479">More...</a><br /></td></tr>
<tr class="separator:a7897720a138addb1ee57181a71d63479"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9ca1194d455374f928dd938810ef2ea"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleReader.html#aa9ca1194d455374f928dd938810ef2ea">getPosition</a> () const</td></tr>
<tr class="memdesc:aa9ca1194d455374f928dd938810ef2ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the position of the source as a sample count value.  <a href="#aa9ca1194d455374f928dd938810ef2ea">More...</a><br /></td></tr>
<tr class="separator:aa9ca1194d455374f928dd938810ef2ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ee2213723a8685bdab78ed6d73c2898"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structSpecs.html">Specs</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleReader.html#a2ee2213723a8685bdab78ed6d73c2898">getSpecs</a> () const</td></tr>
<tr class="memdesc:a2ee2213723a8685bdab78ed6d73c2898"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the specification of the reader.  <a href="#a2ee2213723a8685bdab78ed6d73c2898">More...</a><br /></td></tr>
<tr class="separator:a2ee2213723a8685bdab78ed6d73c2898"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21fc63aba93db02b1e9cf2ed41026218"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDoubleReader.html#a21fc63aba93db02b1e9cf2ed41026218">read</a> (int &amp;length, bool &amp;eos, <a class="el" href="Audaspace_8h.html#aa0798f7ea0975b143a1d9deac8c05d43">sample_t</a> *buffer)</td></tr>
<tr class="memdesc:a21fc63aba93db02b1e9cf2ed41026218"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request to read the next length samples out of the source.  <a href="#a21fc63aba93db02b1e9cf2ed41026218">More...</a><br /></td></tr>
<tr class="separator:a21fc63aba93db02b1e9cf2ed41026218"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classIReader"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classIReader')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classIReader.html">IReader</a></td></tr>
<tr class="memitem:a3489c23855da532dd3a10cfae78bc899 inherit pub_methods_classIReader"><td class="memItemLeft" align="right" valign="top"><a id="a3489c23855da532dd3a10cfae78bc899"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIReader.html#a3489c23855da532dd3a10cfae78bc899">~IReader</a> ()</td></tr>
<tr class="memdesc:a3489c23855da532dd3a10cfae78bc899 inherit pub_methods_classIReader"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys the reader. <br /></td></tr>
<tr class="separator:a3489c23855da532dd3a10cfae78bc899 inherit pub_methods_classIReader"><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>This reader plays two readers sequently. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a10eba1e6dd89236951a63451acd5a810"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10eba1e6dd89236951a63451acd5a810">&#9670;&nbsp;</a></span>DoubleReader()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DoubleReader::DoubleReader </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="classIReader.html">IReader</a> &gt;&#160;</td>
          <td class="paramname"><em>reader1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="classIReader.html">IReader</a> &gt;&#160;</td>
          <td class="paramname"><em>reader2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new double reader. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reader1</td><td>The first reader to read from. </td></tr>
    <tr><td class="paramname">reader2</td><td>The second reader to read from. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7897720a138addb1ee57181a71d63479"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7897720a138addb1ee57181a71d63479">&#9670;&nbsp;</a></span>getLength()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int DoubleReader::getLength </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns an approximated length of the source in samples. </p>
<dl class="section return"><dt>Returns</dt><dd>The length as sample count. May be negative if unknown. </dd></dl>

<p>Implements <a class="el" href="classIReader.html#a384465b5d988cc802702ae4bdc56ea85">IReader</a>.</p>

</div>
</div>
<a id="aa9ca1194d455374f928dd938810ef2ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9ca1194d455374f928dd938810ef2ea">&#9670;&nbsp;</a></span>getPosition()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int DoubleReader::getPosition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the position of the source as a sample count value. </p>
<dl class="section return"><dt>Returns</dt><dd>The current position in the source. A negative value indicates that the position is unknown. </dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>The value returned doesn't always have to be correct for readers, especially after seeking. </dd></dl>

<p>Implements <a class="el" href="classIReader.html#a47a8f86fd242a02ff626eb506cdb319d">IReader</a>.</p>

</div>
</div>
<a id="a2ee2213723a8685bdab78ed6d73c2898"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ee2213723a8685bdab78ed6d73c2898">&#9670;&nbsp;</a></span>getSpecs()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structSpecs.html">Specs</a> DoubleReader::getSpecs </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the specification of the reader. </p>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="structSpecs.html" title="Specification of a sound source.">Specs</a> structure. </dd></dl>

<p>Implements <a class="el" href="classIReader.html#aac4f3a14d42e5c4280488db98dd771b1">IReader</a>.</p>

</div>
</div>
<a id="ae7df8d269402c7dff4f914208f3ee8a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7df8d269402c7dff4f914208f3ee8a2">&#9670;&nbsp;</a></span>isSeekable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool DoubleReader::isSeekable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Tells whether the source provides seeking functionality or not. </p>
<dl class="section warning"><dt>Warning</dt><dd>This doesn't mean that the seeking always has to succeed. </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Always returns true for readers of buffering types. </dd></dl>

<p>Implements <a class="el" href="classIReader.html#acf13bbdc14e680c21122981f7d3bf6be">IReader</a>.</p>

</div>
</div>
<a id="a21fc63aba93db02b1e9cf2ed41026218"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21fc63aba93db02b1e9cf2ed41026218">&#9670;&nbsp;</a></span>read()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DoubleReader::read </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool &amp;&#160;</td>
          <td class="paramname"><em>eos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="Audaspace_8h.html#aa0798f7ea0975b143a1d9deac8c05d43">sample_t</a> *&#160;</td>
          <td class="paramname"><em>buffer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Request to read the next length samples out of the source. </p>
<p>The buffer supplied has the needed size. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">length</td><td>The count of samples that should be read. Shall contain the real count of samples after reading, in case there were only fewer samples available. A smaller value also indicates the end of the reader. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">eos</td><td>End of stream, whether the end is reached or not. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">buffer</td><td>The pointer to the buffer to read into. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classIReader.html#aef6fa21dfb71d3065fb14517bf0f24d5">IReader</a>.</p>

</div>
</div>
<a id="afad44dd3fa7d56a5f7611959df26406b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afad44dd3fa7d56a5f7611959df26406b">&#9670;&nbsp;</a></span>seek()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void DoubleReader::seek </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Seeks to a specific position in the source. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">position</td><td>The position to seek for measured in samples. To get from a given time to the samples you simply have to multiply the time value in seconds with the sample rate of the reader. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>This may work or not, depending on the actual reader. </dd></dl>

<p>Implements <a class="el" href="classIReader.html#ad9fc74bb6f4c2b1ecc0f75b7118c1458">IReader</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>sequence/<a class="el" href="DoubleReader_8h_source.html">DoubleReader.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>