_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include "stratagus.h"#include "sound.h"#include "player.h"#include "script.h"#include "sound_server.h"Functions | |
script_sound.cpp - The sound ccl functions. | |
| static int | CclSoundForName (lua_State *l) |
| static CSound * | CclGetSound (lua_State *l) |
| static int | CclMakeSound (lua_State *l) |
| static int | CclMakeSoundGroup (lua_State *l) |
| static int | CclMapSound (lua_State *l) |
| static int | CclPlaySound (lua_State *l) |
| static void | SetSoundConfigRace (lua_State *l, int j, SoundConfig soundConfigs[]) |
| static int | CclDefineGameSounds (lua_State *l) |
| static int | CclSetGlobalSoundRange (lua_State *l) |
| static int | CclSetSoundRange (lua_State *l) |
| void | SoundCclRegister () |
| register ccl features More... | |
|
static |
Glue between c and scheme. Allows to specify some global game sounds in a ccl file.
| l | Lua state. |
|
static |
Get a Game Sound Id from either a lua sound id or a sound name
| l | Lua state. |
|
static |
Create a sound.
Glue between c and scheme. This function asks the sound system to register a sound under a given name, with an associated list of files (the list can be replaced by only one file).
| l | Lua state. |
|
static |
Glue between c and scheme. This function asks the sound system to build a special sound group.
| l | Lua state. |
|
static |
Glue between c and scheme. Ask to the sound system to remap a sound id to a given name.
| l | Lua state. |
|
static |
Description
Ask the sound system to play the specified sound.
| l | Lua state. |
Example:
PlaySound("rescue (orc)")
|
static |
Description
Set the cut off distance.
| l | Lua state. |
Example:
SetGlobalSoundRange(200)
|
static |
Set the range of a given sound.
| l | Lua state. |
|
static |
Glue between c and scheme. Ask the sound system to associate a sound id to a sound name.
| l | Lua state. |
|
static |
| void SoundCclRegister | ( | ) |
register ccl features
Register CCL features for sound.
1.8.17
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.