_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
script_sound.cpp File Reference
#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 CSoundCclGetSound (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...
 

Function Documentation

static int CclDefineGameSounds ( lua_State *  l)
static

Glue between c and scheme. Allows to specify some global game sounds in a ccl file.

Parameters
lLua state.
static CSound* CclGetSound ( lua_State *  l)
static

Get a Game Sound Id from either a lua sound id or a sound name

Parameters
lLua state.
Returns
The C sound id.
static int CclMakeSound ( lua_State *  l)
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).

Parameters
lLua state.
Returns
the sound id of the created sound
static int CclMakeSoundGroup ( lua_State *  l)
static

Glue between c and scheme. This function asks the sound system to build a special sound group.

Parameters
lLua state.
Returns
The sound id of the created sound
static int CclMapSound ( lua_State *  l)
static

Glue between c and scheme. Ask to the sound system to remap a sound id to a given name.

Parameters
lLua state.
Returns
the sound object
static int CclPlaySound ( lua_State *  l)
static

Ask the sound system to play the specified sound.

Parameters
lLua state.
static int CclSetGlobalSoundRange ( lua_State *  l)
static

Set the cut off distance.

Parameters
lLua state.
static int CclSetSoundRange ( lua_State *  l)
static

Set the range of a given sound.

Parameters
lLua state.
static int CclSoundForName ( lua_State *  l)
static

Glue between c and scheme. Ask the sound system to associate a sound id to a sound name.

Parameters
lLua state.
static void SetSoundConfigRace ( lua_State *  l,
int  j,
SoundConfig  soundConfigs[] 
)
static
void SoundCclRegister ( )

register ccl features

Register CCL features for sound.

(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.