2006-09-27 18:17:01 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2007-03-21 03:06:21 +00:00
|
|
|
/** @file newgrf_sound.h */
|
|
|
|
|
2006-09-27 18:17:01 +00:00
|
|
|
#ifndef NEWGRF_SOUND_H
|
|
|
|
#define NEWGRF_SOUND_H
|
|
|
|
|
2007-12-29 09:24:26 +00:00
|
|
|
#include "sound_type.h"
|
2008-03-31 06:42:26 +00:00
|
|
|
#include "tile_type.h"
|
2007-12-29 09:24:26 +00:00
|
|
|
|
2007-03-07 12:11:48 +00:00
|
|
|
enum VehicleSoundEvent {
|
2006-09-27 18:17:01 +00:00
|
|
|
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,
|
2007-03-07 12:11:48 +00:00
|
|
|
};
|
2006-09-27 18:17:01 +00:00
|
|
|
|
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
FileEntry *AllocateFileEntry();
|
|
|
|
void InitializeSoundPool();
|
2006-09-27 18:17:01 +00:00
|
|
|
FileEntry *GetSound(uint index);
|
2007-03-07 11:47:46 +00:00
|
|
|
uint GetNumSounds();
|
2006-09-27 18:17:01 +00:00
|
|
|
bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event);
|
2007-03-19 11:27:30 +00:00
|
|
|
bool PlayHouseSound(uint16 sound_id, TileIndex tile);
|
2006-09-27 18:17:01 +00:00
|
|
|
|
|
|
|
#endif /* NEWGRF_SOUND_H */
|