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