#include <arssound.h>
Public Member Functions | |
| Sounds (void) | |
| ~Sounds (void) | |
| const bool | Load (const string &aSection, const string &akey, string aCfgFile="") |
| const bool | Load (const string &aFilename) |
| void | Configure (const int channel=0, const int nr=0, const int ticks=-1) |
| void | Play (const int channel=-2, const int nr=-2, const int ticks=-2) |
| operator Mix_Chunk * (void) | |
| const bool | operator== (const Sounds &snd) |
Protected Attributes | |
| Mix_Chunk * | wave |
| int | channel |
| int | ticks |
| int | loop |
| int | id |
|
|
Definition at line 7 of file arssound.cpp. References Ars::cnt.
|
|
|
Definition at line 12 of file arssound.cpp. References wave.
|
|
||||||||||||||||
|
Definition at line 19 of file arssound.cpp. References channel, loop, and ticks. Referenced by Play().
|
|
|
Definition at line 45 of file arssound.cpp. References wave.
|
|
||||||||||||||||
|
Definition at line 36 of file arssound.cpp. References Cfg::GetCfg(), and Cfg::Handler::GetCfgFile(). Referenced by Ars::AddSound().
00037 {
00038 if( aCfgFile.empty() )
00039 aCfgFile = Cfg::GetCfg().GetCfgFile( "Paths" , "sounds" );
00040 Cfg::Handler &h = Cfg::GetCfg( aCfgFile );
00041
00042 return Load( h.GetCfgFile( aSection , akey ) );
00043 }
|
|
|
Definition at line 42 of file arssound.h. References wave.
00042 { return wave; }
|
|
|
Definition at line 43 of file arssound.h. References id.
00043 { return id == snd.id; }
|
|
||||||||||||||||
|
Definition at line 29 of file arssound.cpp. References channel, Configure(), loop, ticks, and wave. Referenced by Ars::Window::evMouseButtonUp().
|
|
|
Definition at line 25 of file arssound.h. Referenced by Configure(), and Play(). |
|
|
Definition at line 28 of file arssound.h. Referenced by operator==(). |
|
|
Definition at line 27 of file arssound.h. Referenced by Configure(), and Play(). |
|
|
Definition at line 26 of file arssound.h. Referenced by Configure(), and Play(). |
|
|
Definition at line 23 of file arssound.h. Referenced by Load(), operator Mix_Chunk *(), Play(), and ~Sounds(). |
1.3.3