newgrf_sound.h

Go to the documentation of this file.
00001 /* $Id: newgrf_sound.h 12971 2008-05-06 15:11:33Z rubidium $ */
00002 
00005 #ifndef NEWGRF_SOUND_H
00006 #define NEWGRF_SOUND_H
00007 
00008 #include "sound_type.h"
00009 #include "tile_type.h"
00010 
00011 enum VehicleSoundEvent {
00012   VSE_START        = 1,
00013   VSE_TUNNEL       = 2,
00014   VSE_BREAKDOWN    = 3,
00015   VSE_RUNNING      = 4,
00016   VSE_TOUCHDOWN    = 5,
00017   VSE_TRAIN_EFFECT = 6,
00018   VSE_RUNNING_16   = 7,
00019   VSE_STOPPED_16   = 8,
00020   VSE_LOAD_UNLOAD  = 9,
00021 };
00022 
00023 
00024 FileEntry *AllocateFileEntry();
00025 void InitializeSoundPool();
00026 FileEntry *GetSound(uint index);
00027 uint GetNumSounds();
00028 bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event);
00029 bool PlayTileSound(const struct GRFFile *file, uint16 sound_id, TileIndex tile);
00030 
00031 #endif /* NEWGRF_SOUND_H */

Generated on Mon Mar 23 00:25:21 2009 for OpenTTD by  doxygen 1.5.6