Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 98920281af4e2e96d5ea984cee4f9e2f > files > 3317

clanlib0.8-docs-0.8.1-5mdv2010.1.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_SoundBuffer::CL_SoundBuffer - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>CL_SoundBuffer::CL_SoundBuffer</h1>
<p>  Construct sound buffer.</p>
<pre>
	CL_SoundBuffer();

	CL_SoundBuffer(
		const std::string& res_id, CL_ResourceManager* manager);

	CL_SoundBuffer(
		CL_SoundProvider* provider, bool delete_provider = false);

	CL_SoundBuffer(
		const std::string& filename, bool streamed = false, const std::string& format = "");

	CL_SoundBuffer(
		const CL_SoundBuffer& copy);
</pre>
<p><b>Detailed description:</b></p>  <p>A sound buffer can be constructed either as static or
  streamed. If the sound buffer is loaded from resources, the
  buffer type is determined by the resource option 'stream'
  associated with the resource.</p>

  <p>CL_SoundBuffer's internals are reference counted, so the copy
  constructor will create a new soundbuffer object which shares
  the same buffer as the original one. This means that if the copy
  is modified, the original is affected as well.</p>

  <p>If <i>delete_provider</i> is true, the provider will be
  deleted when the soundbuffer is deleted.</p>
<p><b>See also:</b></p>
<p><a href="CL_ResourceManager.html">CL_ResourceManager</a> | <a href="CL_Resource.html">CL_Resource</a> | <a href="CL_SoundProvider.html">CL_SoundProvider</a> | <a href="CL_Sound.html">CL_Sound</a> | <a href="CL_SoundBuffer.html">CL_SoundBuffer</a></p>


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->