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

src/sound/script_sound.cpp File Reference

#include <string.h>
#include <stdio.h>
#include "stratagus.h"
#include <stdlib.h>
#include "script.h"
#include "sound.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 int CclDefineGameSounds (lua_State *l)
static int CclSetGlobalSoundRange (lua_State *l)
static int CclSetSoundRange (lua_State *l)
void SoundCclRegister ()
 register ccl features

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:
l Lua state.

static CSound* CclGetSound ( lua_State *  l  )  [static]

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

Parameters:
l Lua 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, wiht an associated list of files (the list can be replaced by only one file).

Parameters:
l Lua 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:
l Lua 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:
l Lua state.
Returns:
the sound object

static int CclPlaySound ( lua_State *  l  )  [static]

Ask the sound system to play the specified sound.

Parameters:
l Lua state.

static int CclSetGlobalSoundRange ( lua_State *  l  )  [static]

Set the cut off distance.

Parameters:
l Lua state.

static int CclSetSoundRange ( lua_State *  l  )  [static]

Set the range of a given sound.

Parameters:
l Lua 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:
l Lua state.

void SoundCclRegister (  ) 

register ccl features

Register CCL features for sound.

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