summaryrefslogtreecommitdiff
path: root/doc/html/SoundBuffer_8hpp-source.htm
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/SoundBuffer_8hpp-source.htm')
-rwxr-xr-xdoc/html/SoundBuffer_8hpp-source.htm128
1 files changed, 0 insertions, 128 deletions
diff --git a/doc/html/SoundBuffer_8hpp-source.htm b/doc/html/SoundBuffer_8hpp-source.htm
deleted file mode 100755
index 606abf2..0000000
--- a/doc/html/SoundBuffer_8hpp-source.htm
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
- <head>
- <title>SFML - Simple and Fast Multimedia Library</title>
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- <link href="tabs.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="logo">
- <img src="./logo.jpg" width="770" height="200" title="SFML home" alt="SFML logo" />
- </div>
-<!-- Generated by Doxygen 1.5.8 -->
-<div class="navigation" id="top">
- <div class="tabs">
- <ul>
- <li><a href="index.htm"><span>Main&nbsp;Page</span></a></li>
- <li><a href="namespaces.htm"><span>Namespaces</span></a></li>
- <li><a href="annotated.htm"><span>Classes</span></a></li>
- <li class="current"><a href="files.htm"><span>Files</span></a></li>
- </ul>
- </div>
- <div class="tabs">
- <ul>
- <li><a href="files.htm"><span>File&nbsp;List</span></a></li>
- </ul>
- </div>
-<h1>SoundBuffer.hpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
-<a name="l00002"></a>00002 <span class="comment">//</span>
-<a name="l00003"></a>00003 <span class="comment">// SFML - Simple and Fast Multimedia Library</span>
-<a name="l00004"></a>00004 <span class="comment">// Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)</span>
-<a name="l00005"></a>00005 <span class="comment">//</span>
-<a name="l00006"></a>00006 <span class="comment">// This software is provided 'as-is', without any express or implied warranty.</span>
-<a name="l00007"></a>00007 <span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span>
-<a name="l00008"></a>00008 <span class="comment">//</span>
-<a name="l00009"></a>00009 <span class="comment">// Permission is granted to anyone to use this software for any purpose,</span>
-<a name="l00010"></a>00010 <span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span>
-<a name="l00011"></a>00011 <span class="comment">// subject to the following restrictions:</span>
-<a name="l00012"></a>00012 <span class="comment">//</span>
-<a name="l00013"></a>00013 <span class="comment">// 1. The origin of this software must not be misrepresented;</span>
-<a name="l00014"></a>00014 <span class="comment">// you must not claim that you wrote the original software.</span>
-<a name="l00015"></a>00015 <span class="comment">// If you use this software in a product, an acknowledgment</span>
-<a name="l00016"></a>00016 <span class="comment">// in the product documentation would be appreciated but is not required.</span>
-<a name="l00017"></a>00017 <span class="comment">//</span>
-<a name="l00018"></a>00018 <span class="comment">// 2. Altered source versions must be plainly marked as such,</span>
-<a name="l00019"></a>00019 <span class="comment">// and must not be misrepresented as being the original software.</span>
-<a name="l00020"></a>00020 <span class="comment">//</span>
-<a name="l00021"></a>00021 <span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span>
-<a name="l00022"></a>00022 <span class="comment">//</span>
-<a name="l00024"></a>00024 <span class="comment"></span>
-<a name="l00025"></a>00025 <span class="preprocessor">#ifndef SFML_SOUNDBUFFER_HPP</span>
-<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define SFML_SOUNDBUFFER_HPP</span>
-<a name="l00027"></a>00027 <span class="preprocessor"></span>
-<a name="l00029"></a>00029 <span class="comment">// Headers</span>
-<a name="l00031"></a>00031 <span class="comment"></span><span class="preprocessor">#include &lt;SFML/System/Resource.hpp&gt;</span>
-<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;SFML/Audio/AudioResource.hpp&gt;</span>
-<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;string&gt;</span>
-<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;vector&gt;</span>
-<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;set&gt;</span>
-<a name="l00036"></a>00036
-<a name="l00037"></a>00037
-<a name="l00038"></a>00038 <span class="keyword">namespace </span>sf
-<a name="l00039"></a>00039 {
-<a name="l00040"></a>00040 <span class="keyword">class </span>Sound;
-<a name="l00041"></a>00041
-<a name="l00046"></a><a class="code" href="classsf_1_1SoundBuffer.htm">00046</a> <span class="keyword">class </span>SFML_API <a class="code" href="classsf_1_1SoundBuffer.htm" title="SoundBuffer is the low-level for loading and manipulating sound buffers.">SoundBuffer</a> : <span class="keyword">public</span> <a class="code" href="classsf_1_1AudioResource.htm" title="Abstract base class for every class that owns a device-dependant resource -- allow...">AudioResource</a>, <span class="keyword">public</span> <a class="code" href="classsf_1_1Resource.htm" title="Base class for every resource that needs to notify dependent classes about its destruction...">Resource</a>&lt;SoundBuffer&gt;
-<a name="l00047"></a>00047 {
-<a name="l00048"></a>00048 <span class="keyword">public</span> :
-<a name="l00049"></a>00049
-<a name="l00054"></a>00054 <a class="code" href="classsf_1_1SoundBuffer.htm" title="SoundBuffer is the low-level for loading and manipulating sound buffers.">SoundBuffer</a>();
-<a name="l00055"></a>00055
-<a name="l00062"></a>00062 <a class="code" href="classsf_1_1SoundBuffer.htm" title="SoundBuffer is the low-level for loading and manipulating sound buffers.">SoundBuffer</a>(<span class="keyword">const</span> <a class="code" href="classsf_1_1SoundBuffer.htm" title="SoundBuffer is the low-level for loading and manipulating sound buffers.">SoundBuffer</a>&amp; Copy);
-<a name="l00063"></a>00063
-<a name="l00068"></a>00068 ~<a class="code" href="classsf_1_1SoundBuffer.htm" title="SoundBuffer is the low-level for loading and manipulating sound buffers.">SoundBuffer</a>();
-<a name="l00069"></a>00069
-<a name="l00078"></a>00078 <span class="keywordtype">bool</span> LoadFromFile(<span class="keyword">const</span> std::string&amp; Filename);
-<a name="l00079"></a>00079
-<a name="l00089"></a>00089 <span class="keywordtype">bool</span> LoadFromMemory(<span class="keyword">const</span> <span class="keywordtype">char</span>* Data, std::size_t SizeInBytes);
-<a name="l00090"></a>00090
-<a name="l00103"></a>00103 <span class="keywordtype">bool</span> LoadFromSamples(<span class="keyword">const</span> Int16* Samples, std::size_t SamplesCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ChannelsCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> SampleRate);
-<a name="l00104"></a>00104
-<a name="l00113"></a>00113 <span class="keywordtype">bool</span> SaveToFile(<span class="keyword">const</span> std::string&amp; Filename) <span class="keyword">const</span>;
-<a name="l00114"></a>00114
-<a name="l00121"></a>00121 <span class="keyword">const</span> Int16* GetSamples() <span class="keyword">const</span>;
-<a name="l00122"></a>00122
-<a name="l00129"></a>00129 std::size_t GetSamplesCount() <span class="keyword">const</span>;
-<a name="l00130"></a>00130
-<a name="l00137"></a>00137 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetSampleRate() <span class="keyword">const</span>;
-<a name="l00138"></a>00138
-<a name="l00145"></a>00145 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetChannelsCount() <span class="keyword">const</span>;
-<a name="l00146"></a>00146
-<a name="l00153"></a>00153 <span class="keywordtype">float</span> GetDuration() <span class="keyword">const</span>;
-<a name="l00154"></a>00154
-<a name="l00163"></a>00163 <a class="code" href="classsf_1_1SoundBuffer.htm" title="SoundBuffer is the low-level for loading and manipulating sound buffers.">SoundBuffer</a>&amp; operator =(<span class="keyword">const</span> <a class="code" href="classsf_1_1SoundBuffer.htm" title="SoundBuffer is the low-level for loading and manipulating sound buffers.">SoundBuffer</a>&amp; Other);
-<a name="l00164"></a>00164
-<a name="l00165"></a>00165 <span class="keyword">private</span> :
-<a name="l00166"></a>00166
-<a name="l00167"></a>00167 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classsf_1_1Sound.htm" title="Sound defines the properties of a sound such as position, volume, pitch, etc.">Sound</a>;
-<a name="l00168"></a>00168
-<a name="l00178"></a>00178 <span class="keywordtype">bool</span> Update(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ChannelsCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> SampleRate);
-<a name="l00179"></a>00179
-<a name="l00186"></a>00186 <span class="keywordtype">void</span> AttachSound(<a class="code" href="classsf_1_1Sound.htm" title="Sound defines the properties of a sound such as position, volume, pitch, etc.">Sound</a>* Instance) <span class="keyword">const</span>;
-<a name="l00187"></a>00187
-<a name="l00194"></a>00194 <span class="keywordtype">void</span> DetachSound(<a class="code" href="classsf_1_1Sound.htm" title="Sound defines the properties of a sound such as position, volume, pitch, etc.">Sound</a>* Instance) <span class="keyword">const</span>;
-<a name="l00195"></a>00195
-<a name="l00197"></a>00197 <span class="comment">// Types</span>
-<a name="l00199"></a>00199 <span class="comment"></span> <span class="keyword">typedef</span> std::set&lt;Sound*&gt; SoundList;
-<a name="l00200"></a>00200
-<a name="l00202"></a>00202 <span class="comment">// Member data</span>
-<a name="l00204"></a>00204 <span class="comment"></span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> myBuffer;
-<a name="l00205"></a>00205 std::vector&lt;Int16&gt; mySamples;
-<a name="l00206"></a>00206 <span class="keywordtype">float</span> myDuration;
-<a name="l00207"></a>00207 <span class="keyword">mutable</span> SoundList mySounds;
-<a name="l00208"></a>00208 };
-<a name="l00209"></a>00209
-<a name="l00210"></a>00210 } <span class="comment">// namespace sf</span>
-<a name="l00211"></a>00211
-<a name="l00212"></a>00212
-<a name="l00213"></a>00213 <span class="preprocessor">#endif // SFML_SOUNDBUFFER_HPP</span>
-</pre></div></div>
-
- <p id="footer">
- &nbsp;::&nbsp; Copyright &copy; 2007-2008 Laurent Gomila, all rights reserved &nbsp;::&nbsp;
- Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.5.2</a> &nbsp;::&nbsp;
- </p>
-
- </body>
-</html>