86 lines
6.1 KiB
HTML
86 lines
6.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>/include/ZE_ZSound.h Source File</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.3 -->
|
|
<center>
|
|
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
|
|
<hr><h1>/include/ZE_ZSound.h</h1><a href="ZE__ZSound_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*******************************************************************************</span>
|
|
00002 <span class="comment"> This file is Part of the ZEngine Library for 2D game development.</span>
|
|
00003 <span class="comment"> Copyright (C) 2002, 2003 James Turk</span>
|
|
00004 <span class="comment"></span>
|
|
00005 <span class="comment"> Licensed under a BSD-style license.</span>
|
|
00006 <span class="comment"></span>
|
|
00007 <span class="comment"> The maintainer of this library is James Turk (james@conceptofzero.net) </span>
|
|
00008 <span class="comment"> and the home of this Library is http://www.zengine.sourceforge.net</span>
|
|
00009 <span class="comment">*******************************************************************************/</span>
|
|
00010
|
|
00020 <span class="preprocessor">#ifndef __ze_zsound_h__</span>
|
|
00021 <span class="preprocessor"></span><span class="preprocessor">#define __ze_zsound_h__</span>
|
|
00022 <span class="preprocessor"></span>
|
|
00023 <span class="preprocessor">#include "<a class="code" href="ZE__ZEngine_8h.html">ZE_ZEngine.h</a>"</span>
|
|
00024
|
|
00025 <span class="preprocessor">#ifdef USE_SDL_MIXER</span>
|
|
00026 <span class="preprocessor"></span>
|
|
00027 <span class="keyword">namespace </span>ZE
|
|
00028 {
|
|
00029
|
|
<a name="l00035"></a><a class="code" href="classZE_1_1ZSound.html">00035</a> <span class="keyword">class </span><a class="code" href="classZE_1_1ZSound.html">ZSound</a>
|
|
00036 {
|
|
00037 <span class="keyword">protected</span>:
|
|
<a name="l00039"></a><a class="code" href="classZE_1_1ZSound.html#n0">00039</a> <a class="code" href="classZE_1_1ZEngine.html">ZEngine</a>* <a class="code" href="classZE_1_1ZSound.html#n0">rEngine</a>;
|
|
<a name="l00041"></a><a class="code" href="classZE_1_1ZSound.html#n1">00041</a> Mix_Chunk* <a class="code" href="classZE_1_1ZSound.html#n1">rSound</a>;
|
|
<a name="l00043"></a><a class="code" href="classZE_1_1ZSound.html#n2">00043</a> <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZSound.html#n2">rChannelID</a>;
|
|
00044
|
|
00045 <span class="keyword">public</span>:
|
|
<a name="l00047"></a><a class="code" href="classZE_1_1ZSound.html#p0">00047</a> <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZSound.html#p0">LoopInfinite</a>;
|
|
00048
|
|
00050 <span class="comment">//Opening and Closing//</span>
|
|
00052 <span class="comment"></span>
|
|
00058 <a class="code" href="classZE_1_1ZSound.html#a0">ZSound</a>();
|
|
00059
|
|
00066 <a class="code" href="classZE_1_1ZSound.html#a0">ZSound</a>(std::string filename);
|
|
00067
|
|
00073 <span class="keyword">virtual</span> <a class="code" href="classZE_1_1ZSound.html#a2">~ZSound</a>();
|
|
00074
|
|
00081 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZSound.html#a3">Open</a>(std::string filename);
|
|
00082
|
|
00088 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZSound.html#a4">Release</a>();
|
|
00089
|
|
00091 <span class="comment">//Play Controls//</span>
|
|
00093 <span class="comment"></span>
|
|
00102 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZSound.html#a5">Play</a>(<span class="keywordtype">int</span> loopNum=0, <span class="keywordtype">int</span> fadeTime=0);
|
|
00103
|
|
00109 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZSound.html#a6">Pause</a>() <span class="keyword">const</span>;
|
|
00110
|
|
00116 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZSound.html#a7">Unpause</a>() <span class="keyword">const</span>;
|
|
00117
|
|
00124 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZSound.html#a8">Stop</a>(<span class="keywordtype">int</span> fadeTime=0) <span class="keyword">const</span>;
|
|
00125
|
|
00132 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZSound.html#a9">SetVolume</a>(<span class="keywordtype">int</span> volume);
|
|
00133
|
|
00135 <span class="comment">//Accessors//</span>
|
|
00137 <span class="comment"></span>
|
|
00144 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZSound.html#a10">IsLoaded</a>() <span class="keyword">const</span>;
|
|
00145
|
|
00152 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZSound.html#a11">IsPlaying</a>() <span class="keyword">const</span>;
|
|
00153
|
|
00160 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZSound.html#a12">IsPaused</a>() <span class="keyword">const</span>;
|
|
00161
|
|
00168 <span class="keywordtype">int</span> <a class="code" href="classZE_1_1ZSound.html#a13">Volume</a>() <span class="keyword">const</span>;
|
|
00169 };
|
|
00170
|
|
00171
|
|
00172 }
|
|
00173
|
|
00174 <span class="preprocessor">#endif //USE_SDL_MIXER</span>
|
|
00175 <span class="preprocessor"></span>
|
|
00176 <span class="preprocessor">#endif //__ze_zsound_h__</span>
|
|
</pre></div><hr><address style="align: right;"><small>Generated on Sun Jun 29 14:13:51 2003 for ZEngine by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border=0
|
|
width=110 height=53></a>1.3 </small></address>
|
|
</body>
|
|
</html>
|