<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 <ClanLib/sound.h> <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#1464"><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#1472"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> </td><td align=right><a href="CL_SoundBuffer.html#1465"><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#1472"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> </td><td align=right><a href="CL_SoundBuffer.html#1466"><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#1472"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> </td><td align=right><a href="CL_SoundBuffer.html#1467"><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#1468"><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#1469"><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#1470"><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#1471"><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#1472"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_SoundBuffer.html#1472"><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#1473"><tt><font color=black><b>operator</b></font></tt><tt> =</tt></a></td><td><tt>(<tt>const</tt> <a href="CL_SoundBuffer.html#1472"><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#1474"><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#1475"><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#1476"><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#1477"><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#1478"><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#1479"><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#1480"><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#1481"><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#1482"><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#1483"><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#1484"><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#1485"><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#1486"><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#1487"><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> </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="1468"><font size=+1><b>CL_SoundBuffer::CL_SoundBuffer</b></font></a> - Construct unattached sound buffer.<br><tt></tt> <a href="CL_SoundBuffer.html#1468"><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="1469"><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#1469"><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="1470"><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#1470"><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="1471"><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#1471"><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="1472"><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#1472"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a><tt>(<tt>const</tt> <a href="CL_SoundBuffer.html#1472"><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="1466"><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#1472"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> <a href="CL_SoundBuffer.html#1466"><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="1467"><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#1472"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> <a href="CL_SoundBuffer.html#1467"><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="1478"><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#1478"><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="1476"><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#1476"><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="1477"><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#1477"><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="1482"><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#1482"><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="1474"><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#1474"><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="1475"><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#1475"><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="1480"><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#1480"><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="1484"><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#1484"><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="1465"><font size=+1><b>CL_SoundBuffer::load</b></font></a> - Load<br><tt><tt>static</tt> <a href="CL_SoundBuffer.html#1472"><tt><font color=blue><b>CL_SoundBuffer</b></font></tt></a>*</tt> <a href="CL_SoundBuffer.html#1465"><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="1473"><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#1473"><tt><font color=black><b>operator</b></font></tt><tt> =</tt></a><tt>(<tt>const</tt> <a href="CL_SoundBuffer.html#1472"><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="1486"><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#1486"><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="1487"><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#1487"><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="1479"><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#1479"><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="1483"><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#1483"><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="1481"><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#1481"><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="1485"><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#1485"><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="1464"><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#1464"><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>