Files @ r10684:2065375f27ac
Branch filter:

Location: cpp/openttd-patchpack/source/src/newgrf_sound.h

translators
(svn r14996) -Update: WebTranslator2 update to 2009-01-11 18:44:49
afrikaans - 22 fixed by burgerd (22)
arabic_egypt - 18 fixed by khaloofah (18)
catalan - 16 fixed by arnaullv (16)
czech - 12 fixed by Hadez (12)
dutch - 13 fixed by Excel20 (13)
finnish - 1 fixed by UltimateSephiroth (1)
french - 1 fixed, 1 changed by glx (2)
greek - 8 fixed by paolitotas (8)
hungarian - 16 fixed by alyr (16)
italian - 16 fixed, 8 changed by lorenzodv (24)
lithuanian - 21 fixed by Enternald (21)
polish - 11 fixed by xaxa (11)
slovenian - 41 fixed by Necrolyte (41)
turkish - 22 fixed by Emin (22)
/* $Id$ */

/** @file newgrf_sound.h Functions related to NewGRF provided sounds. */

#ifndef NEWGRF_SOUND_H
#define NEWGRF_SOUND_H

#include "sound_type.h"
#include "tile_type.h"

enum VehicleSoundEvent {
	VSE_START        = 1,
	VSE_TUNNEL       = 2,
	VSE_BREAKDOWN    = 3,
	VSE_RUNNING      = 4,
	VSE_TOUCHDOWN    = 5,
	VSE_TRAIN_EFFECT = 6,
	VSE_RUNNING_16   = 7,
	VSE_STOPPED_16   = 8,
	VSE_LOAD_UNLOAD  = 9,
};


FileEntry *AllocateFileEntry();
void InitializeSoundPool();
FileEntry *GetSound(uint index);
uint GetNumSounds();
bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event);
bool PlayTileSound(const struct GRFFile *file, uint16 sound_id, TileIndex tile);

#endif /* NEWGRF_SOUND_H */