#include <soundPool.h>
Static Public Member Functions | |
| static CSoundPool * | instance () |
| |
| static void | clear () |
| Remove all sounds. | |
| static int | add (const std::string &str) |
| static bool | play (const int i, int vol=100, int bal=0) |
| static bool | play (ENTITY *pEnt, const int i, int vol=1000) |
Info methods | |
| static int | size () |
| |
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
| int CSoundPool::add | ( | const std::string & | str | ) | [static] |
Add a sound to the pool.
| str | Name of the sound file. |
| bool CSoundPool::play | ( | const int | i, | |
| int | vol = 100, |
|||
| int | bal = 0 | |||
| ) | [static] |
Play the sound with matching index.
| i | Index to sound. | |
| vol | Volume to play the sound at (default to 100). | |
| bal | Left/right balance (defaults to 0). |
| bool CSoundPool::play | ( | ENTITY * | pEnt, | |
| const int | i, | |||
| int | vol = 1000 | |||
| ) | [static] |
Play the sound with matching index.
| pEnt | Entity that will play the sound. | |
| i | Index to sound. | |
| vol | Volume to play the sound at (default to 1000). |
1.5.4