2002-11-21 05:40:49 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< html > < head > < meta http-equiv = "Content-Type" content = "text/html;charset=iso-8859-1" >
2002-12-22 04:31:15 +00:00
< title > /include/ZE_ZSound.h Source File< / title >
2002-11-21 05:40:49 +00:00
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" >
< / head > < body >
2002-12-22 04:31:15 +00:00
<!-- Generated by Doxygen 1.3 - rc2 -->
2002-11-21 05:40:49 +00:00
< center >
< a class = "qindex" href = "index.html" > Main Page< / a > < a class = "qindex" href = "namespaces.html" > Namespace List< / a > < a class = "qindex" href = "hierarchy.html" > Class Hierarchy< / 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 >
2002-12-22 04:31:15 +00:00
< 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 >
2002-11-21 05:40:49 +00:00
00002 < span class = "comment" > This file is Part of the ZEngine Library for SDL Game Development.< / span >
00003 < span class = "comment" > Copyright (C) 2002 ConceptOfZero.net< / span >
00004 < span class = "comment" > < / span >
00005 < span class = "comment" > Licensed under the BSD License, see licensing.txt.< / span >
00006 < span class = "comment" > < / span >
00007 < span class = "comment" > The maintainer of this library is James Turk (jturk@conceptofzero.net) < / span >
00008 < span class = "comment" > and the home of this Library is http://www.conceptofzero.net/< / span >
00009 < span class = "comment" > *******************************************************************************/< / span >
00010
00024 < span class = "preprocessor" > #ifndef __ze_zsound_h__< / span >
00025 < span class = "preprocessor" > < / span > < span class = "preprocessor" > #define __ze_zsound_h__< / span >
00026 < span class = "preprocessor" > < / span >
00027 < span class = "preprocessor" > #include "< a class = "code" href = "ZE__ZObject_8h.html" > ZE_ZObject.h< / a > "< / span >
00028
00029 < span class = "preprocessor" > #ifdef USE_SDL_MIXER< / span >
00030 < span class = "preprocessor" > < / span >
00031 < span class = "keyword" > namespace < / span > ZE
00032 {
00033
2002-12-22 04:31:15 +00:00
< a name = "l00039" > < / a > < a class = "code" href = "classZE_1_1ZSound.html" > 00039< / a > < span class = "keyword" > class < / span > < a class = "code" href = "classZE_1_1ZSound.html" > ZSound< / a > : < span class = "keyword" > public< / span > < a class = "code" href = "classZE_1_1ZObject.html" > ZObject< / a >
2002-11-21 05:40:49 +00:00
00040 {
2002-12-01 07:56:17 +00:00
00041 < span class = "keyword" > protected< / span > :
2002-12-22 04:31:15 +00:00
< a name = "l00043" > < / a > < a class = "code" href = "classZE_1_1ZSound.html#n0" > 00043< / a > Mix_Chunk* < a class = "code" href = "classZE_1_1ZSound.html#n0" > rSound< / a > ;
< a name = "l00045" > < / a > < a class = "code" href = "classZE_1_1ZSound.html#n1" > 00045< / a > < span class = "keywordtype" > int< / span > < a class = "code" href = "classZE_1_1ZSound.html#n1" > rChannelID< / a > ;
2002-11-21 05:40:49 +00:00
00046
2002-12-01 07:56:17 +00:00
00047 < span class = "keyword" > public< / span > :
2002-12-22 04:31:15 +00:00
< a name = "l00049" > < / a > < a class = "code" href = "classZE_1_1ZSound.html#p0" > 00049< / 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 > ;
2002-11-21 05:40:49 +00:00
00050
2002-12-01 07:56:17 +00:00
00052 < span class = "comment" > //Opening and Closing//< / span >
2002-11-21 05:40:49 +00:00
00054 < span class = "comment" > < / span >
2002-12-01 07:56:17 +00:00
00060 < span class = "comment" > < / span > < a class = "code" href = "classZE_1_1ZSound.html#a0" > ZSound< / a > ();
2002-11-21 05:40:49 +00:00
00061
2002-12-01 07:56:17 +00:00
00068 < a class = "code" href = "classZE_1_1ZSound.html#a0" > ZSound< / a > (string filename);
2002-11-21 05:40:49 +00:00
00069
2002-12-01 07:56:17 +00:00
00075 < a class = "code" href = "classZE_1_1ZSound.html#a2" > ~ZSound< / a > ();
2002-11-21 05:40:49 +00:00
00076
2002-12-01 07:56:17 +00:00
00083 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZSound.html#a3" > Open< / a > (string filename);
2002-11-21 05:40:49 +00:00
00084
2002-12-01 07:56:17 +00:00
00090 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZSound.html#a4" > Release< / a > ();
2002-11-21 05:40:49 +00:00
00091
2002-12-01 07:56:17 +00:00
00093 < span class = "comment" > //Play Controls//< / span >
2002-11-21 05:40:49 +00:00
00095 < span class = "comment" > < / span >
2002-12-01 07:56:17 +00:00
00104 < span class = "comment" > < / span > < 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);
2002-11-21 05:40:49 +00:00
00105
2002-12-01 07:56:17 +00:00
00111 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZSound.html#a6" > Pause< / a > ();
2002-11-21 05:40:49 +00:00
00112
2002-12-01 07:56:17 +00:00
00118 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZSound.html#a7" > Unpause< / a > ();
2002-11-21 05:40:49 +00:00
00119
2002-12-01 07:56:17 +00:00
00126 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZSound.html#a8" > Stop< / a > (< span class = "keywordtype" > int< / span > fadeTime=0);
2002-11-21 05:40:49 +00:00
00127
2002-12-01 07:56:17 +00:00
00134 < span class = "keywordtype" > void< / span > < a class = "code" href = "classZE_1_1ZSound.html#a9" > SetVolume< / a > (< span class = "keywordtype" > int< / span > volume);
2002-11-21 05:40:49 +00:00
00135
2002-12-01 07:56:17 +00:00
00137 < span class = "comment" > //Accessors//< / span >
2002-11-21 05:40:49 +00:00
00139 < span class = "comment" > < / span >
2002-12-01 07:56:17 +00:00
00146 < span class = "comment" > < / span > < span class = "keywordtype" > bool< / span > < a class = "code" href = "classZE_1_1ZSound.html#a10" > IsLoaded< / a > ();
2002-11-21 05:40:49 +00:00
00147
2002-12-01 07:56:17 +00:00
00154 < span class = "keywordtype" > bool< / span > < a class = "code" href = "classZE_1_1ZSound.html#a11" > IsPlaying< / a > ();
2002-11-21 05:40:49 +00:00
00155
2002-12-01 07:56:17 +00:00
00162 < span class = "keywordtype" > bool< / span > < a class = "code" href = "classZE_1_1ZSound.html#a12" > IsPaused< / a > ();
2002-11-21 05:40:49 +00:00
00163
2002-12-01 07:56:17 +00:00
00170 < span class = "keywordtype" > int< / span > < a class = "code" href = "classZE_1_1ZSound.html#a13" > Volume< / a > ();
2002-11-21 05:40:49 +00:00
00171 };
00172
00173
00174 }
00175
00176 < span class = "preprocessor" > #endif //USE_SDL_MIXER< / span >
00177 < span class = "preprocessor" > < / span >
00178 < span class = "preprocessor" > #endif //__ze_zsound_h__< / span >
2002-12-22 04:31:15 +00:00
< / pre > < / div > < hr > < address style = "align: right;" > < small > Generated on Sat Dec 21 23:20:23 2002 for ZEngine by
2002-11-21 05:40:49 +00:00
< a href = "http://www.doxygen.org/index.html" >
< img src = "doxygen.png" alt = "doxygen" align = "middle" border = 0
2002-12-22 04:31:15 +00:00
width=110 height=53>< / a > 1.3-rc2 < / small > < / address >
2002-11-21 05:40:49 +00:00
< / body >
< / html >