Sophie

Sophie

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

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: SoundList 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="classSoundList-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SoundList Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class allows to have a list of sound that will play sequentially or randomly with each playback.  
 <a href="classSoundList.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="SoundList_8h_source.html">SoundList.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for SoundList:</div>
<div class="dyncontent">
<div class="center"><img src="classSoundList__inherit__graph.png" border="0" usemap="#SoundList_inherit__map" alt="Inheritance graph"/></div>
<map name="SoundList_inherit__map" id="SoundList_inherit__map">
<area shape="rect"  title="This class allows to have a list of sound that will play sequentially or randomly with each playback." alt="" coords="5,80,88,107"/>
<area shape="rect"  href="classISound.html" title="This class represents a type of sound source and saves the necessary values for it." alt="" coords="14,5,79,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:af797802f5386f264ae8a712fe6b0abb9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoundList.html#af797802f5386f264ae8a712fe6b0abb9">SoundList</a> (bool random=false)</td></tr>
<tr class="memdesc:af797802f5386f264ae8a712fe6b0abb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new, empty sound list.  <a href="#af797802f5386f264ae8a712fe6b0abb9">More...</a><br /></td></tr>
<tr class="separator:af797802f5386f264ae8a712fe6b0abb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a3bf4a57db5a8eb60a3f6761f0d1825"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoundList.html#a0a3bf4a57db5a8eb60a3f6761f0d1825">SoundList</a> (std::vector&lt; std::shared_ptr&lt; <a class="el" href="classISound.html">ISound</a> &gt;&gt; &amp;list, bool random=false)</td></tr>
<tr class="memdesc:a0a3bf4a57db5a8eb60a3f6761f0d1825"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new sound list and initializes it.  <a href="#a0a3bf4a57db5a8eb60a3f6761f0d1825">More...</a><br /></td></tr>
<tr class="separator:a0a3bf4a57db5a8eb60a3f6761f0d1825"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b59e798f2e948793c3c50d44314b87d"><td class="memItemLeft" align="right" valign="top">virtual std::shared_ptr&lt; <a class="el" href="classIReader.html">IReader</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoundList.html#a5b59e798f2e948793c3c50d44314b87d">createReader</a> ()</td></tr>
<tr class="memdesc:a5b59e798f2e948793c3c50d44314b87d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a reader for playback of the sound source.  <a href="#a5b59e798f2e948793c3c50d44314b87d">More...</a><br /></td></tr>
<tr class="separator:a5b59e798f2e948793c3c50d44314b87d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab002b9b191357ce955bb6979fe37bae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoundList.html#aab002b9b191357ce955bb6979fe37bae">addSound</a> (std::shared_ptr&lt; <a class="el" href="classISound.html">ISound</a> &gt; sound)</td></tr>
<tr class="memdesc:aab002b9b191357ce955bb6979fe37bae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a sound to the list.  <a href="#aab002b9b191357ce955bb6979fe37bae">More...</a><br /></td></tr>
<tr class="separator:aab002b9b191357ce955bb6979fe37bae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31d734af3c258d6c78e2958b12c9e780"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoundList.html#a31d734af3c258d6c78e2958b12c9e780">setRandomMode</a> (bool random)</td></tr>
<tr class="memdesc:a31d734af3c258d6c78e2958b12c9e780"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the playback mode of the sound list.  <a href="#a31d734af3c258d6c78e2958b12c9e780">More...</a><br /></td></tr>
<tr class="separator:a31d734af3c258d6c78e2958b12c9e780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa577ecc4059484d2ea0363bd03af84ca"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoundList.html#aa577ecc4059484d2ea0363bd03af84ca">getRandomMode</a> ()</td></tr>
<tr class="memdesc:aa577ecc4059484d2ea0363bd03af84ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the playback mode of the sound list.  <a href="#aa577ecc4059484d2ea0363bd03af84ca">More...</a><br /></td></tr>
<tr class="separator:aa577ecc4059484d2ea0363bd03af84ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adca34f16f82ac6d11d35630ec4b9ab2b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSoundList.html#adca34f16f82ac6d11d35630ec4b9ab2b">getSize</a> ()</td></tr>
<tr class="memdesc:adca34f16f82ac6d11d35630ec4b9ab2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the amount of sounds in the list.  <a href="#adca34f16f82ac6d11d35630ec4b9ab2b">More...</a><br /></td></tr>
<tr class="separator:adca34f16f82ac6d11d35630ec4b9ab2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classISound"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classISound')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classISound.html">ISound</a></td></tr>
<tr class="memitem:ad968d59f5fdb16f050b3c74108c693b5 inherit pub_methods_classISound"><td class="memItemLeft" align="right" valign="top"><a id="ad968d59f5fdb16f050b3c74108c693b5"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classISound.html#ad968d59f5fdb16f050b3c74108c693b5">~ISound</a> ()</td></tr>
<tr class="memdesc:ad968d59f5fdb16f050b3c74108c693b5 inherit pub_methods_classISound"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys the sound. <br /></td></tr>
<tr class="separator:ad968d59f5fdb16f050b3c74108c693b5 inherit pub_methods_classISound"><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 class allows to have a list of sound that will play sequentially or randomly with each playback. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="af797802f5386f264ae8a712fe6b0abb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af797802f5386f264ae8a712fe6b0abb9">&#9670;&nbsp;</a></span>SoundList() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SoundList::SoundList </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>random</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new, empty sound list. </p>
<p>Sounds must be added to the list using the <a class="el" href="classSoundList.html#aab002b9b191357ce955bb6979fe37bae" title="Adds a sound to the list.">addSound()</a> method. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">random</td><td>False if the sounds int he list must be played sequentially. True if random. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0a3bf4a57db5a8eb60a3f6761f0d1825"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a3bf4a57db5a8eb60a3f6761f0d1825">&#9670;&nbsp;</a></span>SoundList() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SoundList::SoundList </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classISound.html">ISound</a> &gt;&gt; &amp;&#160;</td>
          <td class="paramname"><em>list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>random</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new sound list and initializes it. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">list</td><td>A vector with sounds to initialize the list. </td></tr>
    <tr><td class="paramname">random</td><td>False if the sounds int he list must be played sequentially. True if random. </td></tr>
  </table>
  </dd>
</dl>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SoundList::addSound </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="classISound.html">ISound</a> &gt;&#160;</td>
          <td class="paramname"><em>sound</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a sound to the list. </p>
<p>The added sounds can be played sequentially or randomly dependig on the m_random flag </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sound</td><td>A shared_ptr to the sound. </td></tr>
  </table>
  </dd>
</dl>

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

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::shared_ptr&lt;<a class="el" href="classIReader.html">IReader</a>&gt; SoundList::createReader </td>
          <td>(</td>
          <td class="paramname"></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>Creates a reader for playback of the sound source. </p>
<dl class="section return"><dt>Returns</dt><dd>A pointer to an <a class="el" href="classIReader.html" title="This class represents a sound source as stream or as buffer which can be read for example by another ...">IReader</a> object or nullptr if there has been an error. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classException.html" title="The Exception class is the general exception base class.">Exception</a></td><td>An exception may be thrown if there has been a more unexpected error during reader creation. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classISound.html#a194d09ea3b22f1cb0a49b89cfcf02d63">ISound</a>.</p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SoundList::getRandomMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the playback mode of the sound list. </p>
<p>The two posible modes are random and sequential. </p><dl class="section return"><dt>Returns</dt><dd>True if the random mode is activated, false otherwise. </dd></dl>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SoundList::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the amount of sounds in the list. </p>
<dl class="section return"><dt>Returns</dt><dd>The amount of sounds in the list. </dd></dl>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SoundList::setRandomMode </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>random</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the playback mode of the sound list. </p>
<p>There are two posible modes, random and sequential. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">random</td><td>True to activate the random mode, false to activate sequential mode. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>fx/<a class="el" href="SoundList_8h_source.html">SoundList.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>