Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 4a7a03b9c12105ca7dcc2eab88d3704a > files > 206

clanlib0.6-docs-0.6.5-36mdv2010.1.x86_64.rpm


<html>
<head><title>ClanLib Reference: CL_SoundBuffer</title></head>
<body text=black link=blue vlink=#800080 bgcolor=white topmargin=0 leftmargin=0>
<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td><img border=0 src="../images/eyeheader-main-purple-a.gif" alt="ClanSoft logo" width=525 height=96></td></tr>
<tr bgcolor=#dadada><td align=left valign=top><img border=0 src="../images/eyeheader-main-purple-b.gif" alt="ClanSoft logo" width=190 height=14></td><td align=right valign=top><img border=0 src="../images/clanlib_light.gif" width=42 height=14></td></tr></table>
<table align=center border=0 cellspacing=10> <tr>
<td><a href="entire_class_index.html">Entire Class Index</a></td>
<td><a href="class_index.html">Main Class Index</a></td>
<td><a href="cross_index.html">Cross Index</a></td>
<td><a href="global_index.html">Global Index</a></td>
</table><h1 align=center>Class CL_SoundBuffer</h1><p>
<b>  Sample interface in ClanLib.</b><br>
Contained in: <a href="global_index.html">global</a><br>
Derived from:
<i>none</i>
<br>
Derived by:
<i>none</i>
<br>Group: Sound (Audio Mixing)
<p>
#include &lt;ClanLib/sound.h&gt;
<p>
<hr noshade>
<table border=0>
<tr><td colspan=3><h3>public function member index:</h3></td>
<tr valign=top><td align=left><h3>Construction:</h3></td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="CL_SoundBuffer.html#1657"><tt><font color=blue><b>~CL_SoundBuffer</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>static</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> </td><td align=right><a href="CL_SoundBuffer.html#1658"><tt><font color=blue><b>load</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>res_id</font></tt>, <a href="CL_ResourceManager.html"><tt><font color=navy><b>CL_ResourceManager</b></font></tt></a>* <tt><font color=blue>manager</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>static</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> </td><td align=right><a href="CL_SoundBuffer.html#1659"><tt><font color=blue><b>create</b></font></tt></a></td><td><tt>(<a href="CL_StaticSoundProvider.html"><tt><font color=navy><b>CL_StaticSoundProvider</b></font></tt></a>* <tt><font color=blue>provider</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>delete_provider</font></tt>=false)</tt>;</td>
<tr valign=top><td align=right><tt><tt>static</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> </td><td align=right><a href="CL_SoundBuffer.html#1660"><tt><font color=blue><b>create</b></font></tt></a></td><td><tt>(<a href="CL_StreamSoundProvider.html"><tt><font color=navy><b>CL_StreamSoundProvider</b></font></tt></a>* <tt><font color=blue>provider</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>delete_provider</font></tt>=false)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1661"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1662"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>res_id</font></tt>, <a href="CL_ResourceManager.html"><tt><font color=navy><b>CL_ResourceManager</b></font></tt></a>* <tt><font color=blue>manager</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1663"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a></td><td><tt>(<a href="CL_StaticSoundProvider.html"><tt><font color=navy><b>CL_StaticSoundProvider</b></font></tt></a>* <tt><font color=blue>provider</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>delete_provider</font></tt>=false)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1664"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a></td><td><tt>(<a href="CL_StreamSoundProvider.html"><tt><font color=navy><b>CL_StreamSoundProvider</b></font></tt></a>* <tt><font color=blue>provider</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>delete_provider</font></tt>=false)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>& <tt><font color=blue>copy</font></tt>)</tt>;</td>
<tr valign=top><td align=left><h3>Operators:</h3></td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1666"><tt><font color=black><b>operator</b></font></tt><tt> =</tt></a></td><td><tt>(<tt>const</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>& <tt><font color=blue>copy</font></tt>)</tt>;</td>
<tr valign=top><td align=left><h3>Attributes:</h3></td>
<tr valign=top><td align=right><tt><a href="CL_StaticSoundProvider.html"><tt><font color=navy><b>CL_StaticSoundProvider</b></font></tt></a>*</tt> </td><td align=right><a href="CL_SoundBuffer.html#1667"><tt><font color=blue><b>get_static_provider</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_StreamSoundProvider.html"><tt><font color=navy><b>CL_StreamSoundProvider</b></font></tt></a>*</tt> </td><td align=right><a href="CL_SoundBuffer.html#1668"><tt><font color=blue><b>get_stream_provider</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1669"><tt><font color=blue><b>get_length</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1670"><tt><font color=blue><b>get_num_samples</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1671"><tt><font color=blue><b>get_frequency</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=left><h3>Operations:</h3></td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1672"><tt><font color=blue><b>set_frequency</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>new_freq</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>float</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1673"><tt><font color=blue><b>get_volume</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1674"><tt><font color=blue><b>set_volume</b></font></tt></a></td><td><tt>(<tt><font color=purple>float</font></tt> <tt><font color=blue>new_volume</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>float</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1675"><tt><font color=blue><b>get_pan</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1676"><tt><font color=blue><b>set_pan</b></font></tt></a></td><td><tt>(<tt><font color=purple>float</font></tt> <tt><font color=blue>new_pan</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1677"><tt><font color=blue><b>is_playing</b></font></tt></a></td><td><tt>(<a href="CL_SoundBuffer_Session.html"><tt><font color=navy><b>CL_SoundBuffer_Session</b></font></tt></a>* *<tt><font color=blue>session</font></tt>=NULL, <a href="CL_SoundCard.html"><tt><font color=navy><b>CL_SoundCard</b></font></tt></a>* <tt><font color=blue>card</font></tt>=NULL) <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_SoundBuffer.html#1678"><tt><font color=blue><b>stop</b></font></tt></a></td><td><tt>(<a href="CL_SoundCard.html"><tt><font color=navy><b>CL_SoundCard</b></font></tt></a>* <tt><font color=blue>card</font></tt>=NULL)</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_SoundBuffer_Session.html"><tt><font color=navy><b>CL_SoundBuffer_Session</b></font></tt></a></tt> </td><td align=right><a href="CL_SoundBuffer.html#1679"><tt><font color=blue><b>play</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>looping</font></tt>=false, <a href="CL_SoundCard.html"><tt><font color=navy><b>CL_SoundCard</b></font></tt></a>* <tt><font color=blue>card</font></tt>=NULL)</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_SoundBuffer_Session.html"><tt><font color=navy><b>CL_SoundBuffer_Session</b></font></tt></a></tt> </td><td align=right><a href="CL_SoundBuffer.html#1680"><tt><font color=blue><b>prepare</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>looping</font></tt>=false, <a href="CL_SoundCard.html"><tt><font color=navy><b>CL_SoundCard</b></font></tt></a>* <tt><font color=blue>card</font></tt>=NULL)</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  The <a href="CL_SoundBuffer.html">CL_SoundBuffer</a> class represents a sample in ClanLib. It can either be  static or streamed. The soundbuffer gets its sample data from a  soundprovider, that is passed during construction.<br><br>  A static sample are normally sound effects and other sounds, that do not  change. ClanLib will always load the entire sample into memory, and  possibly upload it to the soundcard.<br><br>  Streamed samples are either large sample that should be loaded a bit at a  time (music for instance), or sounds that change from playback to  playback (a microphone, speech over the net, etc).<br>  See also - <a href="CL_StaticSoundProvider.html">CL_StaticSoundProvider</a> - Static sample data source.<br>  See also -CL_StreamSoundProvider - Streamed sample data source.<br>  See also -CL_SoundBuffer_Session - Sample playback control.<br><p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="1661"><font size=+1><b>CL_SoundBuffer::CL_SoundBuffer</b></font></a> -   Construct unattached sound buffer.<br><tt></tt> <a href="CL_SoundBuffer.html#1661"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1662"><font size=+1><b>CL_SoundBuffer::CL_SoundBuffer</b></font></a> -   Loads a soundbuffer (sample) from a resource.<br><tt></tt> <a href="CL_SoundBuffer.html#1662"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>res_id</font></tt>, <a href="CL_ResourceManager.html"><tt><font color=navy><b>CL_ResourceManager</b></font></tt></a>* <tt><font color=blue>manager</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1663"><font size=+1><b>CL_SoundBuffer::CL_SoundBuffer</b></font></a> -   Creates a static soundbuffer. If 'delete_provider' is true, the provider  will be deleted when the soundbuffer is deleted.<br><tt></tt> <a href="CL_SoundBuffer.html#1663"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a><tt>(<a href="CL_StaticSoundProvider.html"><tt><font color=navy><b>CL_StaticSoundProvider</b></font></tt></a>* <tt><font color=blue>provider</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>delete_provider</font></tt>=false)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1664"><font size=+1><b>CL_SoundBuffer::CL_SoundBuffer</b></font></a> -   Creates a streamed soundbuffer. If 'delete_provider' is true, the provider  will be delete when the soundbuffer is deleted.<br><tt></tt> <a href="CL_SoundBuffer.html#1664"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a><tt>(<a href="CL_StreamSoundProvider.html"><tt><font color=navy><b>CL_StreamSoundProvider</b></font></tt></a>* <tt><font color=blue>provider</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>delete_provider</font></tt>=false)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1665"><font size=+1><b>CL_SoundBuffer::CL_SoundBuffer</b></font></a> -   Create a copy of this soundbuffer. The copy will share the buffer with the  original.<br><tt></tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a><tt>(<tt>const</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>& <tt><font color=blue>copy</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1659"><font size=+1><b>CL_SoundBuffer::create</b></font></a> -   Creates a static soundbuffer. If 'delete_provider' is true, the provider  will be deleted when the soundbuffer is deleted.<br><tt><tt>static</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> <a href="CL_SoundBuffer.html#1659"><tt><font color=blue><b>create</b></font></tt></a><tt>(<a href="CL_StaticSoundProvider.html"><tt><font color=navy><b>CL_StaticSoundProvider</b></font></tt></a>* <tt><font color=blue>provider</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>delete_provider</font></tt>=false)</tt>;<br><blockquote>  Returns - The created soundbuffer.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1660"><font size=+1><b>CL_SoundBuffer::create</b></font></a> -   Creates a streamed soundbuffer. If 'delete_provider' is true, the provider  will be delete when the soundbuffer is deleted.<br><tt><tt>static</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> <a href="CL_SoundBuffer.html#1660"><tt><font color=blue><b>create</b></font></tt></a><tt>(<a href="CL_StreamSoundProvider.html"><tt><font color=navy><b>CL_StreamSoundProvider</b></font></tt></a>* <tt><font color=blue>provider</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>delete_provider</font></tt>=false)</tt>;<br><blockquote>  Returns - The created soundbuffer.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1671"><font size=+1><b>CL_SoundBuffer::get_frequency</b></font></a> -   Returns the start frequency used when the buffer is played.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_SoundBuffer.html#1671"><tt><font color=blue><b>get_frequency</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><blockquote>  Returns - Default/start frequency.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1669"><font size=+1><b>CL_SoundBuffer::get_length</b></font></a> -   Returns the length of the soundbuffer. <br>  That is num_samples * bytes_per_sample.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_SoundBuffer.html#1669"><tt><font color=blue><b>get_length</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><blockquote>  Returns - Length of soundbuffer.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1670"><font size=+1><b>CL_SoundBuffer::get_num_samples</b></font></a> -   Returns the number of samples in the soundbuffer.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_SoundBuffer.html#1670"><tt><font color=blue><b>get_num_samples</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><blockquote>  Returns - Number of samples in soundbuffer.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1675"><font size=+1><b>CL_SoundBuffer::get_pan</b></font></a> -   Returns the default panning position when the buffer is played.<br><tt><tt><font color=purple>float</font></tt></tt> <a href="CL_SoundBuffer.html#1675"><tt><font color=blue><b>get_pan</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><blockquote>  Returns - The panning position.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1667"><font size=+1><b>CL_SoundBuffer::get_static_provider</b></font></a> -   Returns the static soundprovider attached or NULL if it is a streamed  sound buffer.<br><tt><a href="CL_StaticSoundProvider.html"><tt><font color=navy><b>CL_StaticSoundProvider</b></font></tt></a>*</tt> <a href="CL_SoundBuffer.html#1667"><tt><font color=blue><b>get_static_provider</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><blockquote>  Returns - The static soundprovider or NULL if none.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1668"><font size=+1><b>CL_SoundBuffer::get_stream_provider</b></font></a> -   Return the streamed soundprovider attached or NULL if it is a static  sound buffer.<br><tt><a href="CL_StreamSoundProvider.html"><tt><font color=navy><b>CL_StreamSoundProvider</b></font></tt></a>*</tt> <a href="CL_SoundBuffer.html#1668"><tt><font color=blue><b>get_stream_provider</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><blockquote>  Returns - The streamed soundprovider of NULL if none.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1673"><font size=+1><b>CL_SoundBuffer::get_volume</b></font></a> -   Returns the start/default volume used when the buffer is played.<br><tt><tt><font color=purple>float</font></tt></tt> <a href="CL_SoundBuffer.html#1673"><tt><font color=blue><b>get_volume</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><blockquote>  Returns - The volume.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1677"><font size=+1><b>CL_SoundBuffer::is_playing</b></font></a> -   Returns true if an instance of this soundbuffer is playing<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_SoundBuffer.html#1677"><tt><font color=blue><b>is_playing</b></font></tt></a><tt>(<a href="CL_SoundBuffer_Session.html"><tt><font color=navy><b>CL_SoundBuffer_Session</b></font></tt></a>* *<tt><font color=blue>session</font></tt>=NULL, <a href="CL_SoundCard.html"><tt><font color=navy><b>CL_SoundCard</b></font></tt></a>* <tt><font color=blue>card</font></tt>=NULL) <tt>const</tt></tt>;<br><blockquote>  session - Pointer to session-pointer, set to point to the first session <br>            playing this soundbuffer. Return value is only valid if function returns true</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1658"><font size=+1><b>CL_SoundBuffer::load</b></font></a> -   Load<br><tt><tt>static</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> <a href="CL_SoundBuffer.html#1658"><tt><font color=blue><b>load</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>res_id</font></tt>, <a href="CL_ResourceManager.html"><tt><font color=navy><b>CL_ResourceManager</b></font></tt></a>* <tt><font color=blue>manager</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1666"><font size=+1><b>CL_SoundBuffer::operator =</b></font></a> -   Copy assignment.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_SoundBuffer.html#1666"><tt><font color=black><b>operator</b></font></tt><tt> =</tt></a><tt>(<tt>const</tt> <a href="CL_SoundBuffer.html#1665"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>& <tt><font color=blue>copy</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1679"><font size=+1><b>CL_SoundBuffer::play</b></font></a> -   Plays the soundbuffer on the specified soundcard   and using the specified playback description.<br><tt><a href="CL_SoundBuffer_Session.html"><tt><font color=navy><b>CL_SoundBuffer_Session</b></font></tt></a></tt> <a href="CL_SoundBuffer.html#1679"><tt><font color=blue><b>play</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>looping</font></tt>=false, <a href="CL_SoundCard.html"><tt><font color=navy><b>CL_SoundCard</b></font></tt></a>* <tt><font color=blue>card</font></tt>=NULL)</tt>;<br><blockquote>  card - Soundcard to be used - NULL means use the current selected<br>         sound card (CL_Sound::get_selected_card().<br>  Returns - The playback session.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1680"><font size=+1><b>CL_SoundBuffer::prepare</b></font></a> -   Prepares the soundbuffer for playback on the specified soundcard.<br><tt><a href="CL_SoundBuffer_Session.html"><tt><font color=navy><b>CL_SoundBuffer_Session</b></font></tt></a></tt> <a href="CL_SoundBuffer.html#1680"><tt><font color=blue><b>prepare</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>looping</font></tt>=false, <a href="CL_SoundCard.html"><tt><font color=navy><b>CL_SoundCard</b></font></tt></a>* <tt><font color=blue>card</font></tt>=NULL)</tt>;<br><blockquote>  card - Soundcard to be used or NULL to use<br>         CL_Sound::get_selected_card().<br>  Returns - The playback session.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1672"><font size=+1><b>CL_SoundBuffer::set_frequency</b></font></a> -   Sets the start frequency used when the buffer is played.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_SoundBuffer.html#1672"><tt><font color=blue><b>set_frequency</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>new_freq</font></tt>)</tt>;<br><blockquote>  new_freq - The new default frequency.<br>  Returns - True if successful, false otherwise.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1676"><font size=+1><b>CL_SoundBuffer::set_pan</b></font></a> -   Sets the default panning position when the buffer is played.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_SoundBuffer.html#1676"><tt><font color=blue><b>set_pan</b></font></tt></a><tt>(<tt><font color=purple>float</font></tt> <tt><font color=blue>new_pan</font></tt>)</tt>;<br><blockquote>  new_pan - The new default panning position.<br>  Returns - True if successful, false otherwise.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1674"><font size=+1><b>CL_SoundBuffer::set_volume</b></font></a> -   Sets the default volume used when the buffer is played.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_SoundBuffer.html#1674"><tt><font color=blue><b>set_volume</b></font></tt></a><tt>(<tt><font color=purple>float</font></tt> <tt><font color=blue>new_volume</font></tt>)</tt>;<br><blockquote>  new_volume - The new default volume.<br>  Returns - True if successful, false otherwise.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1678"><font size=+1><b>CL_SoundBuffer::stop</b></font></a> -   Stops any sessions playing this soundbuffer<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_SoundBuffer.html#1678"><tt><font color=blue><b>stop</b></font></tt></a><tt>(<a href="CL_SoundCard.html"><tt><font color=navy><b>CL_SoundCard</b></font></tt></a>* <tt><font color=blue>card</font></tt>=NULL)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="1657"><font size=+1><b>CL_SoundBuffer::~CL_SoundBuffer</b></font></a> -   Sound Buffer Destructor<br><tt><tt>virtual</tt> </tt> <a href="CL_SoundBuffer.html#1657"><tt><font color=blue><b>~CL_SoundBuffer</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<hr noshade>
<h2>Variable Member Descriptions:</h2>
<hr noshade>
</body>
</html>